Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 08460408523d325ada0ba27a5e9022c4665e4b10
      
https://github.com/WebKit/WebKit/commit/08460408523d325ada0ba27a5e9022c4665e4b10
  Author: Brent Fulgham <[email protected]>
  Date:   2026-07-02 (Thu, 02 Jul 2026)

  Changed paths:
    M LayoutTests/fast/forms/box-shadow-override.html
    M LayoutTests/fast/forms/change-input-type-and-submit-form-crash.html
    M LayoutTests/fast/forms/disabled-search-input.html
    M 
LayoutTests/fast/forms/ios/form-control-refresh/search/search-decoration-appearance-expected-mismatch.html
    M 
LayoutTests/fast/forms/ios/form-control-refresh/search/search-decoration-appearance.html
    M LayoutTests/fast/forms/placeholder-position.html
    M LayoutTests/fast/forms/search-abs-pos-cancel-button.html
    M 
LayoutTests/fast/forms/search-field-buttons-do-not-have-focus-rings-expected.html
    M
LayoutTests/fast/forms/search-field-buttons-do-not-have-focus-rings.html
    M LayoutTests/fast/forms/search-input-rtl.html
    M LayoutTests/fast/forms/search-rtl.html
    M LayoutTests/fast/forms/search-styled.html
    M LayoutTests/fast/forms/search-transformed.html
    M LayoutTests/fast/forms/search-zoomed.html
    M LayoutTests/fast/forms/search/search-padding-cancel-results-buttons.html
    M LayoutTests/fast/forms/search/search-recent-searches.html
    A 
LayoutTests/fast/forms/search/search-results-attribute-disabled-by-default-expected.txt
    A 
LayoutTests/fast/forms/search/search-results-attribute-disabled-by-default.html
    M LayoutTests/fast/forms/search/search-results-hidden-crash.html
    M LayoutTests/fast/forms/search/search-size-with-decorations.html
    M LayoutTests/fast/replaced/width100percent-searchfield.html
    M LayoutTests/imported/blink/fast/forms/search-popup-crasher.html
    M LayoutTests/pdf/crash-with-embed-hidden.html
    M
LayoutTests/platform/gtk/fast/css/focus-ring-exists-for-search-field-expected.txt
    M LayoutTests/platform/gtk/fast/css/input-search-padding-expected.png
    M LayoutTests/platform/gtk/fast/css/input-search-padding-expected.txt
    M 
LayoutTests/platform/gtk/fast/css/text-input-with-webkit-border-radius-expected.png
    M 
LayoutTests/platform/gtk/fast/css/text-input-with-webkit-border-radius-expected.txt
    M LayoutTests/platform/gtk/fast/css/text-overflow-input-expected.txt
    M 
LayoutTests/platform/gtk/fast/forms/control-restrict-line-height-expected.png
    M 
LayoutTests/platform/gtk/fast/forms/control-restrict-line-height-expected.txt
    M LayoutTests/platform/gtk/fast/forms/input-appearance-height-expected.png
    M LayoutTests/platform/gtk/fast/forms/input-appearance-height-expected.txt
    M LayoutTests/platform/gtk/fast/forms/placeholder-pseudo-style-expected.png
    M LayoutTests/platform/gtk/fast/forms/placeholder-pseudo-style-expected.txt
    M
LayoutTests/platform/gtk/fast/forms/search-cancel-button-style-sharing-expected.png
    M 
LayoutTests/platform/gtk/fast/forms/search-cancel-button-style-sharing-expected.txt
    M 
LayoutTests/platform/gtk/fast/forms/search-display-none-cancel-button-expected.png
    M 
LayoutTests/platform/gtk/fast/forms/search-display-none-cancel-button-expected.txt
    M LayoutTests/platform/gtk/fast/forms/search-vertical-alignment-expected.png
    M LayoutTests/platform/gtk/fast/forms/search-vertical-alignment-expected.txt
    M LayoutTests/platform/gtk/fast/forms/searchfield-heights-expected.png
    M LayoutTests/platform/gtk/fast/forms/searchfield-heights-expected.txt
    M 
LayoutTests/platform/ios/fast/css/focus-ring-exists-for-search-field-expected.txt
    M LayoutTests/platform/ios/fast/css/input-search-padding-expected.txt
    M 
LayoutTests/platform/ios/fast/css/text-input-with-webkit-border-radius-expected.txt
    M
LayoutTests/platform/ios/fast/css/text-overflow-input-expected.txt
    M 
LayoutTests/platform/ios/fast/forms/control-restrict-line-height-expected.txt
    M 
LayoutTests/platform/ios/fast/forms/datalist/datalist-searchinput-appearance-expected.txt
    M LayoutTests/platform/ios/fast/forms/input-appearance-height-expected.txt
    M LayoutTests/platform/ios/fast/forms/placeholder-pseudo-style-expected.txt
    M 
LayoutTests/platform/ios/fast/forms/search-cancel-button-style-sharing-expected.txt
    M 
LayoutTests/platform/ios/fast/forms/search-display-none-cancel-button-expected.txt
    A 
LayoutTests/platform/mac-sequoia-wk2/fast/css/focus-ring-exists-for-search-field-expected.png
    M 
LayoutTests/platform/mac-sequoia-wk2/fast/css/focus-ring-exists-for-search-field-expected.txt
    A 
LayoutTests/platform/mac-sequoia-wk2/fast/css/text-input-with-webkit-border-radius-expected.png
    M
LayoutTests/platform/mac-sequoia-wk2/fast/css/text-input-with-webkit-border-radius-expected.txt
    A 
LayoutTests/platform/mac-sequoia-wk2/fast/css/text-overflow-input-expected.png
    M 
LayoutTests/platform/mac-sequoia-wk2/fast/css/text-overflow-input-expected.txt
    A 
LayoutTests/platform/mac-sequoia-wk2/fast/forms/control-restrict-line-height-expected.png
    M 
LayoutTests/platform/mac-sequoia-wk2/fast/forms/control-restrict-line-height-expected.txt
    M 
LayoutTests/platform/mac-sequoia-wk2/fast/forms/datalist/datalist-searchinput-appearance-expected.txt
    A 
LayoutTests/platform/mac-sequoia-wk2/fast/forms/input-appearance-height-expected.png
    M 
LayoutTests/platform/mac-sequoia-wk2/fast/forms/input-appearance-height-expected.txt
    A 
LayoutTests/platform/mac-sequoia-wk2/fast/forms/placeholder-pseudo-style-expected.png
    M 
LayoutTests/platform/mac-sequoia-wk2/fast/forms/placeholder-pseudo-style-expected.txt
    M
LayoutTests/platform/mac-sequoia-wk2/fast/forms/search-cancel-button-style-sharing-expected.txt
    M 
LayoutTests/platform/mac-sequoia-wk2/fast/forms/search-display-none-cancel-button-expected.txt
    M 
LayoutTests/platform/mac-sequoia-wk2/fast/forms/search-vertical-alignment-expected.txt
    M 
LayoutTests/platform/mac-sequoia-wk2/fast/repaint/search-field-cancel-expected.txt
    M 
LayoutTests/platform/mac-wk2/fast/css/focus-ring-exists-for-search-field-expected.txt
    M 
LayoutTests/platform/mac-wk2/fast/css/text-input-with-webkit-border-radius-expected.txt
    M LayoutTests/platform/mac-wk2/fast/css/text-overflow-input-expected.txt
    M 
LayoutTests/platform/mac-wk2/fast/forms/datalist/datalist-searchinput-appearance-expected.txt
    M 
LayoutTests/platform/mac-wk2/fast/forms/input-appearance-height-expected.txt
    M 
LayoutTests/platform/mac-wk2/fast/forms/placeholder-pseudo-style-expected.txt
    M
LayoutTests/platform/mac-wk2/fast/forms/search-cancel-button-style-sharing-expected.txt
    M 
LayoutTests/platform/mac-wk2/fast/forms/search-display-none-cancel-button-expected.txt
    M 
LayoutTests/platform/mac-wk2/fast/forms/search-vertical-alignment-expected.txt
    M LayoutTests/platform/mac-wk2/fast/repaint/search-field-cancel-expected.txt
    M 
LayoutTests/platform/mac/fast/css/focus-ring-exists-for-search-field-expected.png
    M 
LayoutTests/platform/mac/fast/css/text-input-with-webkit-border-radius-expected.png
    M LayoutTests/platform/mac/fast/css/text-overflow-input-expected.png
    M 
LayoutTests/platform/mac/fast/forms/control-restrict-line-height-expected.png
    M 
LayoutTests/platform/mac/fast/forms/control-restrict-line-height-expected.txt
    M 
LayoutTests/platform/mac/fast/forms/datalist/datalist-searchinput-appearance-expected.png
    M LayoutTests/platform/mac/fast/forms/input-appearance-height-expected.png
    M
LayoutTests/platform/mac/fast/forms/placeholder-pseudo-style-expected.png
    M 
LayoutTests/platform/mac/fast/forms/search-cancel-button-style-sharing-expected.png
    M 
LayoutTests/platform/mac/fast/forms/search-display-none-cancel-button-expected.png
    M LayoutTests/platform/mac/fast/forms/search-vertical-alignment-expected.png
    M LayoutTests/platform/mac/fast/repaint/search-field-cancel-expected.png
    M 
LayoutTests/platform/wpe/fast/css/focus-ring-exists-for-search-field-expected.png
    M 
LayoutTests/platform/wpe/fast/css/focus-ring-exists-for-search-field-expected.txt
    M LayoutTests/platform/wpe/fast/css/input-search-padding-expected.txt
    M 
LayoutTests/platform/wpe/fast/css/text-input-with-webkit-border-radius-expected.txt
    M LayoutTests/platform/wpe/fast/css/text-overflow-input-expected.png
    M LayoutTests/platform/wpe/fast/css/text-overflow-input-expected.txt
    M 
LayoutTests/platform/wpe/fast/forms/control-restrict-line-height-expected.txt
    M
LayoutTests/platform/wpe/fast/forms/input-appearance-height-expected.txt
    M LayoutTests/platform/wpe/fast/forms/placeholder-pseudo-style-expected.txt
    M 
LayoutTests/platform/wpe/fast/forms/search-cancel-button-style-sharing-expected.txt
    M 
LayoutTests/platform/wpe/fast/forms/search-display-none-cancel-button-expected.txt
    M LayoutTests/platform/wpe/fast/forms/search-vertical-alignment-expected.txt
    M LayoutTests/platform/wpe/fast/forms/searchfield-heights-expected.txt
    M Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml
    M Source/WTF/wtf/cocoa/RuntimeApplicationChecksCocoa.h
    M Source/WebCore/html/HTMLInputElement.cpp
    M Source/WebCore/html/SearchInputType.cpp
    M Source/WebCore/rendering/RenderSearchField.cpp
    M Source/WebKit/Shared/WebPreferencesDefaultValues.cpp
    M Source/WebKit/Shared/WebPreferencesDefaultValues.h
    M Source/WebKitLegacy/mac/WebView/WebPreferencesDefaultValues.h
    M
Source/WebKitLegacy/mac/WebView/WebPreferencesDefaultValues.mm

  Log Message:
  -----------
  roland.com: Double search icon in search field (works in Chrome)
https://bugs.webkit.org/show_bug.cgi?id=317437
<rdar://problem/179949639>

Reviewed by Tim Nguyen.

The Roland support site (static.roland.com) shows two magnifying glass icons in 
Safari's
search field where Chrome shows only one.

The HTML is:

  <input class="form-control" type="search" name="q" results="10" ...>

with CSS `appearance: none` and a `background-image: url(search.svg)` that 
paints the
site's own magnifying glass. The legacy WebKit-only `results=N` attribute opts 
the input
into ::-webkit-search-results-button, which caused WebKit to paint a search 
icon.

The fix is to match Chrome and Firefox behavior by removing the `results=N` 
feature
when WebKit is used for web browsing. We retain it for backwards compatibility 
with
apps that may depend on it.

We gate the deprecation on a
Linked-On-Or-After check so we avoid changing behavior
unexpectedly. Developers can re-enable the feature using the new feature flag.

I have also rebaselined the tests that were not specifically testing this 
deprecated
feature, but had layout impact now that the deprecated decoration is no longer 
automatically
added to search fields.

Tests: fast/forms/search/search-decorations-suppressed-with-appearance-none.html
       
fast/forms/search/search-results-button-suppressed-with-appearance-none.html

* LayoutTests/fast/forms/box-shadow-override.html:
* LayoutTests/fast/forms/change-input-type-and-submit-form-crash.html:
* LayoutTests/fast/forms/disabled-search-input.html:
* 
LayoutTests/fast/forms/ios/form-control-refresh/search/search-decoration-appearance-expected-mismatch.html:
* 
LayoutTests/fast/forms/ios/form-control-refresh/search/search-decoration-appearance.html:
* LayoutTests/fast/forms/placeholder-position.html:
*
LayoutTests/fast/forms/search-abs-pos-cancel-button.html:
* 
LayoutTests/fast/forms/search-field-buttons-do-not-have-focus-rings-expected.html:
* LayoutTests/fast/forms/search-field-buttons-do-not-have-focus-rings.html:
* LayoutTests/fast/forms/search-input-rtl.html:
* LayoutTests/fast/forms/search-rtl.html:
* LayoutTests/fast/forms/search-styled.html:
* LayoutTests/fast/forms/search-transformed.html:
* LayoutTests/fast/forms/search-zoomed.html:
* LayoutTests/fast/forms/search/search-padding-cancel-results-buttons.html:
* LayoutTests/fast/forms/search/search-recent-searches.html:
* 
LayoutTests/fast/forms/search/search-results-attribute-disabled-by-default-expected.txt:
 Added.
* 
LayoutTests/fast/forms/search/search-results-attribute-disabled-by-default.html:
 Added.
* LayoutTests/fast/forms/search/search-results-hidden-crash.html:
* LayoutTests/fast/forms/search/search-size-with-decorations.html:
* LayoutTests/fast/replaced/width100percent-searchfield.html:
*
LayoutTests/imported/blink/fast/forms/search-popup-crasher.html:
* LayoutTests/pdf/crash-with-embed-hidden.html:
* 
LayoutTests/platform/gtk/fast/css/focus-ring-exists-for-search-field-expected.txt:
* LayoutTests/platform/gtk/fast/css/input-search-padding-expected.png:
* LayoutTests/platform/gtk/fast/css/input-search-padding-expected.txt:
* 
LayoutTests/platform/gtk/fast/css/text-input-with-webkit-border-radius-expected.png:
* 
LayoutTests/platform/gtk/fast/css/text-input-with-webkit-border-radius-expected.txt:
* LayoutTests/platform/gtk/fast/css/text-overflow-input-expected.txt:
* LayoutTests/platform/gtk/fast/forms/control-restrict-line-height-expected.png:
* LayoutTests/platform/gtk/fast/forms/control-restrict-line-height-expected.txt:
* LayoutTests/platform/gtk/fast/forms/input-appearance-height-expected.png:
* LayoutTests/platform/gtk/fast/forms/input-appearance-height-expected.txt:
* LayoutTests/platform/gtk/fast/forms/placeholder-pseudo-style-expected.png:
*
LayoutTests/platform/gtk/fast/forms/placeholder-pseudo-style-expected.txt:
* 
LayoutTests/platform/gtk/fast/forms/search-cancel-button-style-sharing-expected.png:
* 
LayoutTests/platform/gtk/fast/forms/search-cancel-button-style-sharing-expected.txt:
* 
LayoutTests/platform/gtk/fast/forms/search-display-none-cancel-button-expected.png:
* 
LayoutTests/platform/gtk/fast/forms/search-display-none-cancel-button-expected.txt:
* LayoutTests/platform/gtk/fast/forms/search-vertical-alignment-expected.png:
* LayoutTests/platform/gtk/fast/forms/search-vertical-alignment-expected.txt:
* LayoutTests/platform/gtk/fast/forms/searchfield-heights-expected.png:
* LayoutTests/platform/gtk/fast/forms/searchfield-heights-expected.txt:
* 
LayoutTests/platform/ios/fast/css/focus-ring-exists-for-search-field-expected.txt:
* LayoutTests/platform/ios/fast/css/input-search-padding-expected.txt:
* 
LayoutTests/platform/ios/fast/css/text-input-with-webkit-border-radius-expected.txt:
*
LayoutTests/platform/ios/fast/css/text-overflow-input-expected.txt:
* LayoutTests/platform/ios/fast/forms/control-restrict-line-height-expected.txt:
* 
LayoutTests/platform/ios/fast/forms/datalist/datalist-searchinput-appearance-expected.txt:
* LayoutTests/platform/ios/fast/forms/input-appearance-height-expected.txt:
* LayoutTests/platform/ios/fast/forms/placeholder-pseudo-style-expected.txt:
* 
LayoutTests/platform/ios/fast/forms/search-cancel-button-style-sharing-expected.txt:
* 
LayoutTests/platform/ios/fast/forms/search-display-none-cancel-button-expected.txt:
* 
LayoutTests/platform/mac-sequoia-wk2/fast/css/focus-ring-exists-for-search-field-expected.png:
 Added.
* 
LayoutTests/platform/mac-sequoia-wk2/fast/css/focus-ring-exists-for-search-field-expected.txt:
* 
LayoutTests/platform/mac-sequoia-wk2/fast/css/text-input-with-webkit-border-radius-expected.png:
 Added.
* 
LayoutTests/platform/mac-sequoia-wk2/fast/css/text-input-with-webkit-border-radius-expected.txt:
*
LayoutTests/platform/mac-sequoia-wk2/fast/css/text-overflow-input-expected.png: 
Added.
* 
LayoutTests/platform/mac-sequoia-wk2/fast/css/text-overflow-input-expected.txt:
* 
LayoutTests/platform/mac-sequoia-wk2/fast/forms/control-restrict-line-height-expected.png:
 Added.
* 
LayoutTests/platform/mac-sequoia-wk2/fast/forms/control-restrict-line-height-expected.txt:
* 
LayoutTests/platform/mac-sequoia-wk2/fast/forms/datalist/datalist-searchinput-appearance-expected.txt:
* 
LayoutTests/platform/mac-sequoia-wk2/fast/forms/input-appearance-height-expected.png:
 Added.
* 
LayoutTests/platform/mac-sequoia-wk2/fast/forms/input-appearance-height-expected.txt:
* 
LayoutTests/platform/mac-sequoia-wk2/fast/forms/placeholder-pseudo-style-expected.png:
 Added.
* 
LayoutTests/platform/mac-sequoia-wk2/fast/forms/placeholder-pseudo-style-expected.txt:
* 
LayoutTests/platform/mac-sequoia-wk2/fast/forms/search-cancel-button-style-sharing-expected.txt:
*
LayoutTests/platform/mac-sequoia-wk2/fast/forms/search-display-none-cancel-button-expected.txt:
* 
LayoutTests/platform/mac-sequoia-wk2/fast/forms/search-vertical-alignment-expected.txt:
* 
LayoutTests/platform/mac-sequoia-wk2/fast/repaint/search-field-cancel-expected.txt:
* 
LayoutTests/platform/mac-wk2/fast/css/focus-ring-exists-for-search-field-expected.txt:
* 
LayoutTests/platform/mac-wk2/fast/css/text-input-with-webkit-border-radius-expected.txt:
* LayoutTests/platform/mac-wk2/fast/css/text-overflow-input-expected.txt:
* 
LayoutTests/platform/mac-wk2/fast/forms/datalist/datalist-searchinput-appearance-expected.txt:
* LayoutTests/platform/mac-wk2/fast/forms/input-appearance-height-expected.txt:
* LayoutTests/platform/mac-wk2/fast/forms/placeholder-pseudo-style-expected.txt:
* 
LayoutTests/platform/mac-wk2/fast/forms/search-cancel-button-style-sharing-expected.txt:
* 
LayoutTests/platform/mac-wk2/fast/forms/search-display-none-cancel-button-expected.txt:
*
LayoutTests/platform/mac-wk2/fast/forms/search-vertical-alignment-expected.txt:
* LayoutTests/platform/mac-wk2/fast/repaint/search-field-cancel-expected.txt:
* 
LayoutTests/platform/mac/fast/css/focus-ring-exists-for-search-field-expected.png:
* 
LayoutTests/platform/mac/fast/css/text-input-with-webkit-border-radius-expected.png:
* LayoutTests/platform/mac/fast/css/text-overflow-input-expected.png:
* LayoutTests/platform/mac/fast/forms/control-restrict-line-height-expected.png:
* LayoutTests/platform/mac/fast/forms/control-restrict-line-height-expected.txt:
* 
LayoutTests/platform/mac/fast/forms/datalist/datalist-searchinput-appearance-expected.png:
* LayoutTests/platform/mac/fast/forms/input-appearance-height-expected.png:
* LayoutTests/platform/mac/fast/forms/placeholder-pseudo-style-expected.png:
* 
LayoutTests/platform/mac/fast/forms/search-cancel-button-style-sharing-expected.png:
* 
LayoutTests/platform/mac/fast/forms/search-display-none-cancel-button-expected.png:
*
LayoutTests/platform/mac/fast/forms/search-vertical-alignment-expected.png:
* LayoutTests/platform/mac/fast/repaint/search-field-cancel-expected.png:
* 
LayoutTests/platform/wpe/fast/css/focus-ring-exists-for-search-field-expected.png:
* 
LayoutTests/platform/wpe/fast/css/focus-ring-exists-for-search-field-expected.txt:
* LayoutTests/platform/wpe/fast/css/input-search-padding-expected.txt:
* 
LayoutTests/platform/wpe/fast/css/text-input-with-webkit-border-radius-expected.txt:
* LayoutTests/platform/wpe/fast/css/text-overflow-input-expected.png:
* LayoutTests/platform/wpe/fast/css/text-overflow-input-expected.txt:
* LayoutTests/platform/wpe/fast/forms/control-restrict-line-height-expected.txt:
* LayoutTests/platform/wpe/fast/forms/input-appearance-height-expected.txt:
* LayoutTests/platform/wpe/fast/forms/placeholder-pseudo-style-expected.txt:
* 
LayoutTests/platform/wpe/fast/forms/search-cancel-button-style-sharing-expected.txt:
*
LayoutTests/platform/wpe/fast/forms/search-display-none-cancel-button-expected.txt:
* LayoutTests/platform/wpe/fast/forms/search-vertical-alignment-expected.txt:
* LayoutTests/platform/wpe/fast/forms/searchfield-heights-expected.txt:
* Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml:
* Source/WTF/wtf/cocoa/RuntimeApplicationChecksCocoa.h:
* Source/WebCore/html/HTMLInputElement.cpp:
(WebCore::HTMLInputElement::attributeChanged):
* Source/WebCore/html/SearchInputType.cpp:
(WebCore::SearchInputType::createShadowSubtree):
* Source/WebCore/rendering/RenderSearchField.cpp:
(WebCore::RenderSearchField::showPopup):
* Source/WebKit/Shared/WebPreferencesDefaultValues.cpp:
(WebKit::defaultSearchInputResultsAttributeEnabled):
* Source/WebKit/Shared/WebPreferencesDefaultValues.h:
* Source/WebKitLegacy/mac/WebView/WebPreferencesDefaultValues.h:
*
Source/WebKitLegacy/mac/WebView/WebPreferencesDefaultValues.mm:
(WebKit::defaultSearchInputResultsAttributeEnabled):

Canonical link: 
https://flagged.apple.com:443/proxy?t2=dJ3G1y0tD4&o=aHR0cHM6Ly9jb21taXRzLndlYmtpdC5vcmcvMzE2NDIyQG1haW4=&emid=f8d8614d-ed3b-4010-96ab-c3805607e776&c=11



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to