Title: [289308] branches/safari-613-branch
Revision
289308
Author
[email protected]
Date
2022-02-07 18:55:31 -0800 (Mon, 07 Feb 2022)

Log Message

Cherry-pick r288590. rdar://problem/87984277

    Disable input-security CSS property
    https://bugs.webkit.org/show_bug.cgi?id=235557
    rdar://87984277

    Reviewed by Dean Jackson.

    Source/WebCore:

    CSSWG is planning to remove input-security from CSS UI 4
    (https://github.com/w3c/csswg-drafts/issues/6788).

    Keep the property around as an experimental feature, so that
    it can be used in the UA stylesheet, and easily turned on if the
    resolution is not finalized.

    * css/CSSComputedStyleDeclaration.cpp:
    (WebCore::ComputedStyleExtractor::valueForPropertyInStyle):
    * css/CSSProperties.json:
    * css/parser/CSSParserContext.cpp:
    (WebCore::CSSParserContext::CSSParserContext):

    Enable input-security when parsing the UA stylesheet, as it is used to
    obscure text in password inputs.

    (WebCore::operator==):
    (WebCore::add):
    (WebCore::CSSParserContext::isPropertyRuntimeDisabled const):
    * css/parser/CSSParserContext.h:
    * css/parser/CSSParserFastPaths.cpp:
    (WebCore::CSSParserFastPaths::isValidKeywordPropertyAndValue):

    Source/WebKitLegacy/win:

    Add support for tests enabling the CSSInputSecurityEnabled preference.

    * WebPreferences.cpp:
    (WebPreferences::cssInputSecurityEnabled):
    * WebPreferences.h:
    * WebView.cpp:
    (WebView::notifyPreferencesChanged):

    Source/WTF:

    * Scripts/Preferences/WebPreferencesExperimental.yaml:

    Make input-security a disabled-by-default experimental feature.

    Tools:

    * DumpRenderTree/TestOptions.cpp:
    (WTR::TestOptions::defaults):

    Add default for WebKitLegacy on Windows.

    LayoutTests:

    * fast/css/computed-text-security-for-input-security.html:

    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@288590 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Modified Paths

Diff

Modified: branches/safari-613-branch/LayoutTests/ChangeLog (289307 => 289308)


--- branches/safari-613-branch/LayoutTests/ChangeLog	2022-02-08 02:55:25 UTC (rev 289307)
+++ branches/safari-613-branch/LayoutTests/ChangeLog	2022-02-08 02:55:31 UTC (rev 289308)
@@ -1,5 +1,80 @@
 2022-02-07  Russell Epstein  <[email protected]>
 
+        Cherry-pick r288590. rdar://problem/87984277
+
+    Disable input-security CSS property
+    https://bugs.webkit.org/show_bug.cgi?id=235557
+    rdar://87984277
+    
+    Reviewed by Dean Jackson.
+    
+    Source/WebCore:
+    
+    CSSWG is planning to remove input-security from CSS UI 4
+    (https://github.com/w3c/csswg-drafts/issues/6788).
+    
+    Keep the property around as an experimental feature, so that
+    it can be used in the UA stylesheet, and easily turned on if the
+    resolution is not finalized.
+    
+    * css/CSSComputedStyleDeclaration.cpp:
+    (WebCore::ComputedStyleExtractor::valueForPropertyInStyle):
+    * css/CSSProperties.json:
+    * css/parser/CSSParserContext.cpp:
+    (WebCore::CSSParserContext::CSSParserContext):
+    
+    Enable input-security when parsing the UA stylesheet, as it is used to
+    obscure text in password inputs.
+    
+    (WebCore::operator==):
+    (WebCore::add):
+    (WebCore::CSSParserContext::isPropertyRuntimeDisabled const):
+    * css/parser/CSSParserContext.h:
+    * css/parser/CSSParserFastPaths.cpp:
+    (WebCore::CSSParserFastPaths::isValidKeywordPropertyAndValue):
+    
+    Source/WebKitLegacy/win:
+    
+    Add support for tests enabling the CSSInputSecurityEnabled preference.
+    
+    * WebPreferences.cpp:
+    (WebPreferences::cssInputSecurityEnabled):
+    * WebPreferences.h:
+    * WebView.cpp:
+    (WebView::notifyPreferencesChanged):
+    
+    Source/WTF:
+    
+    * Scripts/Preferences/WebPreferencesExperimental.yaml:
+    
+    Make input-security a disabled-by-default experimental feature.
+    
+    Tools:
+    
+    * DumpRenderTree/TestOptions.cpp:
+    (WTR::TestOptions::defaults):
+    
+    Add default for WebKitLegacy on Windows.
+    
+    LayoutTests:
+    
+    * fast/css/computed-text-security-for-input-security.html:
+    
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@288590 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2022-01-25  Aditya Keerthi  <[email protected]>
+
+            Disable input-security CSS property
+            https://bugs.webkit.org/show_bug.cgi?id=235557
+            rdar://87984277
+
+            Reviewed by Dean Jackson.
+
+            * fast/css/computed-text-security-for-input-security.html:
+
+2022-02-07  Russell Epstein  <[email protected]>
+
         Cherry-pick r288547. rdar://problem/87824766
 
     (REGRESSION r287485) [LFC][IFC] Incorrect RTL content position when intrusive float is present

Modified: branches/safari-613-branch/LayoutTests/fast/css/computed-text-security-for-input-security.html (289307 => 289308)


--- branches/safari-613-branch/LayoutTests/fast/css/computed-text-security-for-input-security.html	2022-02-08 02:55:25 UTC (rev 289307)
+++ branches/safari-613-branch/LayoutTests/fast/css/computed-text-security-for-input-security.html	2022-02-08 02:55:31 UTC (rev 289308)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html><!-- webkit-test-runner [ CSSInputSecurityEnabled=true ] -->
 <html>
 <head>
     <script src=""

Modified: branches/safari-613-branch/Source/WTF/ChangeLog (289307 => 289308)


--- branches/safari-613-branch/Source/WTF/ChangeLog	2022-02-08 02:55:25 UTC (rev 289307)
+++ branches/safari-613-branch/Source/WTF/ChangeLog	2022-02-08 02:55:31 UTC (rev 289308)
@@ -1,3 +1,80 @@
+2022-02-07  Russell Epstein  <[email protected]>
+
+        Cherry-pick r288590. rdar://problem/87984277
+
+    Disable input-security CSS property
+    https://bugs.webkit.org/show_bug.cgi?id=235557
+    rdar://87984277
+    
+    Reviewed by Dean Jackson.
+    
+    Source/WebCore:
+    
+    CSSWG is planning to remove input-security from CSS UI 4
+    (https://github.com/w3c/csswg-drafts/issues/6788).
+    
+    Keep the property around as an experimental feature, so that
+    it can be used in the UA stylesheet, and easily turned on if the
+    resolution is not finalized.
+    
+    * css/CSSComputedStyleDeclaration.cpp:
+    (WebCore::ComputedStyleExtractor::valueForPropertyInStyle):
+    * css/CSSProperties.json:
+    * css/parser/CSSParserContext.cpp:
+    (WebCore::CSSParserContext::CSSParserContext):
+    
+    Enable input-security when parsing the UA stylesheet, as it is used to
+    obscure text in password inputs.
+    
+    (WebCore::operator==):
+    (WebCore::add):
+    (WebCore::CSSParserContext::isPropertyRuntimeDisabled const):
+    * css/parser/CSSParserContext.h:
+    * css/parser/CSSParserFastPaths.cpp:
+    (WebCore::CSSParserFastPaths::isValidKeywordPropertyAndValue):
+    
+    Source/WebKitLegacy/win:
+    
+    Add support for tests enabling the CSSInputSecurityEnabled preference.
+    
+    * WebPreferences.cpp:
+    (WebPreferences::cssInputSecurityEnabled):
+    * WebPreferences.h:
+    * WebView.cpp:
+    (WebView::notifyPreferencesChanged):
+    
+    Source/WTF:
+    
+    * Scripts/Preferences/WebPreferencesExperimental.yaml:
+    
+    Make input-security a disabled-by-default experimental feature.
+    
+    Tools:
+    
+    * DumpRenderTree/TestOptions.cpp:
+    (WTR::TestOptions::defaults):
+    
+    Add default for WebKitLegacy on Windows.
+    
+    LayoutTests:
+    
+    * fast/css/computed-text-security-for-input-security.html:
+    
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@288590 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2022-01-25  Aditya Keerthi  <[email protected]>
+
+            Disable input-security CSS property
+            https://bugs.webkit.org/show_bug.cgi?id=235557
+            rdar://87984277
+
+            Reviewed by Dean Jackson.
+
+            * Scripts/Preferences/WebPreferencesExperimental.yaml:
+
+            Make input-security a disabled-by-default experimental feature.
+
 2022-01-28  Russell Epstein  <[email protected]>
 
         Cherry-pick r287961. rdar://problem/86282584

Modified: branches/safari-613-branch/Source/WTF/Scripts/Preferences/WebPreferencesExperimental.yaml (289307 => 289308)


--- branches/safari-613-branch/Source/WTF/Scripts/Preferences/WebPreferencesExperimental.yaml	2022-02-08 02:55:25 UTC (rev 289307)
+++ branches/safari-613-branch/Source/WTF/Scripts/Preferences/WebPreferencesExperimental.yaml	2022-02-08 02:55:31 UTC (rev 289308)
@@ -321,6 +321,18 @@
     WebCore:
       default: true
 
+CSSInputSecurityEnabled:
+  type: bool
+  humanReadableName: "CSS Input Security"
+  humanReadableDescription: "Enable input-security CSS property"
+  defaultValue:
+    WebKitLegacy:
+      default: false
+    WebKit:
+      default: false
+    WebCore:
+      default: false
+
 CSSMotionPathEnabled:
   type: bool
   humanReadableName: "CSS Motion Path"

Modified: branches/safari-613-branch/Source/WebCore/ChangeLog (289307 => 289308)


--- branches/safari-613-branch/Source/WebCore/ChangeLog	2022-02-08 02:55:25 UTC (rev 289307)
+++ branches/safari-613-branch/Source/WebCore/ChangeLog	2022-02-08 02:55:31 UTC (rev 289308)
@@ -1,5 +1,101 @@
 2022-02-07  Russell Epstein  <[email protected]>
 
+        Cherry-pick r288590. rdar://problem/87984277
+
+    Disable input-security CSS property
+    https://bugs.webkit.org/show_bug.cgi?id=235557
+    rdar://87984277
+    
+    Reviewed by Dean Jackson.
+    
+    Source/WebCore:
+    
+    CSSWG is planning to remove input-security from CSS UI 4
+    (https://github.com/w3c/csswg-drafts/issues/6788).
+    
+    Keep the property around as an experimental feature, so that
+    it can be used in the UA stylesheet, and easily turned on if the
+    resolution is not finalized.
+    
+    * css/CSSComputedStyleDeclaration.cpp:
+    (WebCore::ComputedStyleExtractor::valueForPropertyInStyle):
+    * css/CSSProperties.json:
+    * css/parser/CSSParserContext.cpp:
+    (WebCore::CSSParserContext::CSSParserContext):
+    
+    Enable input-security when parsing the UA stylesheet, as it is used to
+    obscure text in password inputs.
+    
+    (WebCore::operator==):
+    (WebCore::add):
+    (WebCore::CSSParserContext::isPropertyRuntimeDisabled const):
+    * css/parser/CSSParserContext.h:
+    * css/parser/CSSParserFastPaths.cpp:
+    (WebCore::CSSParserFastPaths::isValidKeywordPropertyAndValue):
+    
+    Source/WebKitLegacy/win:
+    
+    Add support for tests enabling the CSSInputSecurityEnabled preference.
+    
+    * WebPreferences.cpp:
+    (WebPreferences::cssInputSecurityEnabled):
+    * WebPreferences.h:
+    * WebView.cpp:
+    (WebView::notifyPreferencesChanged):
+    
+    Source/WTF:
+    
+    * Scripts/Preferences/WebPreferencesExperimental.yaml:
+    
+    Make input-security a disabled-by-default experimental feature.
+    
+    Tools:
+    
+    * DumpRenderTree/TestOptions.cpp:
+    (WTR::TestOptions::defaults):
+    
+    Add default for WebKitLegacy on Windows.
+    
+    LayoutTests:
+    
+    * fast/css/computed-text-security-for-input-security.html:
+    
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@288590 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2022-01-25  Aditya Keerthi  <[email protected]>
+
+            Disable input-security CSS property
+            https://bugs.webkit.org/show_bug.cgi?id=235557
+            rdar://87984277
+
+            Reviewed by Dean Jackson.
+
+            CSSWG is planning to remove input-security from CSS UI 4
+            (https://github.com/w3c/csswg-drafts/issues/6788).
+
+            Keep the property around as an experimental feature, so that
+            it can be used in the UA stylesheet, and easily turned on if the
+            resolution is not finalized.
+
+            * css/CSSComputedStyleDeclaration.cpp:
+            (WebCore::ComputedStyleExtractor::valueForPropertyInStyle):
+            * css/CSSProperties.json:
+            * css/parser/CSSParserContext.cpp:
+            (WebCore::CSSParserContext::CSSParserContext):
+
+            Enable input-security when parsing the UA stylesheet, as it is used to
+            obscure text in password inputs.
+
+            (WebCore::operator==):
+            (WebCore::add):
+            (WebCore::CSSParserContext::isPropertyRuntimeDisabled const):
+            * css/parser/CSSParserContext.h:
+            * css/parser/CSSParserFastPaths.cpp:
+            (WebCore::CSSParserFastPaths::isValidKeywordPropertyAndValue):
+
+2022-02-07  Russell Epstein  <[email protected]>
+
         Cherry-pick r288564. rdar://problem/87268956
 
     REGRESSION(r281419): iCloud.com Notes web app fonts render incorrectly

Modified: branches/safari-613-branch/Source/WebCore/css/CSSComputedStyleDeclaration.cpp (289307 => 289308)


--- branches/safari-613-branch/Source/WebCore/css/CSSComputedStyleDeclaration.cpp	2022-02-08 02:55:25 UTC (rev 289307)
+++ branches/safari-613-branch/Source/WebCore/css/CSSComputedStyleDeclaration.cpp	2022-02-08 02:55:31 UTC (rev 289308)
@@ -3239,6 +3239,8 @@
             return cssValuePool.createValue(style.imageResolution(), CSSUnitType::CSS_DPPX);
 #endif
         case CSSPropertyInputSecurity:
+            if (!m_element->document().settings().cssInputSecurityEnabled())
+                return nullptr;
             return cssValuePool.createValue(style.inputSecurity());
         case CSSPropertyLeft:
             return positionOffsetValue(style, CSSPropertyLeft, renderer);

Modified: branches/safari-613-branch/Source/WebCore/css/CSSProperties.json (289307 => 289308)


--- branches/safari-613-branch/Source/WebCore/css/CSSProperties.json	2022-02-08 02:55:25 UTC (rev 289307)
+++ branches/safari-613-branch/Source/WebCore/css/CSSProperties.json	2022-02-08 02:55:31 UTC (rev 289308)
@@ -2824,6 +2824,9 @@
             }
         },
         "input-security": {
+            "codegen-properties": {
+                "settings-flag": "cssInputSecurityEnabled"
+            },
             "values": [
                 "auto",
                 "none"

Modified: branches/safari-613-branch/Source/WebCore/css/parser/CSSParserContext.cpp (289307 => 289308)


--- branches/safari-613-branch/Source/WebCore/css/parser/CSSParserContext.cpp	2022-02-08 02:55:25 UTC (rev 289307)
+++ branches/safari-613-branch/Source/WebCore/css/parser/CSSParserContext.cpp	2022-02-08 02:55:31 UTC (rev 289308)
@@ -50,6 +50,7 @@
     if (mode == UASheetMode) {
         individualTransformPropertiesEnabled = true;
         focusVisibleEnabled = true;
+        inputSecurityEnabled = true;
 #if ENABLE(CSS_TRANSFORM_STYLE_OPTIMIZED_3D)
         transformStyleOptimized3DEnabled = true;
 #endif
@@ -109,6 +110,7 @@
     , overflowClipEnabled { document.settings().overflowClipEnabled() }
     , gradientPremultipliedAlphaInterpolationEnabled { document.settings().cssGradientPremultipliedAlphaInterpolationEnabled() }
     , gradientInterpolationColorSpacesEnabled { document.settings().cssGradientInterpolationColorSpacesEnabled() }
+    , inputSecurityEnabled { document.settings().cssInputSecurityEnabled() }
 #if ENABLE(ATTACHMENT_ELEMENT)
     , attachmentEnabled { RuntimeEnabledFeatures::sharedFeatures().attachmentElementEnabled() }
 #endif
@@ -158,6 +160,7 @@
         && a.overflowClipEnabled == b.overflowClipEnabled
         && a.gradientPremultipliedAlphaInterpolationEnabled == b.gradientPremultipliedAlphaInterpolationEnabled
         && a.gradientInterpolationColorSpacesEnabled == b.gradientInterpolationColorSpacesEnabled
+        && a.inputSecurityEnabled == b.inputSecurityEnabled
 #if ENABLE(ATTACHMENT_ELEMENT)
         && a.attachmentEnabled == b.attachmentEnabled
 #endif
@@ -204,7 +207,8 @@
         | context.attachmentEnabled                         << 28
 #endif
         | context.accentColorEnabled                        << 29
-        | context.mode                                      << 30; // This is multiple bits, so keep it last.
+        | context.inputSecurityEnabled                      << 30
+        | context.mode                                      << 31; // This is multiple bits, so keep it last.
     add(hasher, context.baseURL, context.charset, bits);
 }
 
@@ -229,6 +233,8 @@
         return !containmentEnabled;
     case CSSPropertyAppleColorFilter:
         return !colorFilterEnabled;
+    case CSSPropertyInputSecurity:
+        return !inputSecurityEnabled;
     case CSSPropertyTranslate:
     case CSSPropertyRotate:
     case CSSPropertyScale:

Modified: branches/safari-613-branch/Source/WebCore/css/parser/CSSParserContext.h (289307 => 289308)


--- branches/safari-613-branch/Source/WebCore/css/parser/CSSParserContext.h	2022-02-08 02:55:25 UTC (rev 289307)
+++ branches/safari-613-branch/Source/WebCore/css/parser/CSSParserContext.h	2022-02-08 02:55:31 UTC (rev 289308)
@@ -88,6 +88,7 @@
     bool overflowClipEnabled { false };
     bool gradientPremultipliedAlphaInterpolationEnabled { false };
     bool gradientInterpolationColorSpacesEnabled { false };
+    bool inputSecurityEnabled { false };
 
     // RuntimeEnabledFeatures.
 #if ENABLE(ATTACHMENT_ELEMENT)

Modified: branches/safari-613-branch/Source/WebCore/css/parser/CSSParserFastPaths.cpp (289307 => 289308)


--- branches/safari-613-branch/Source/WebCore/css/parser/CSSParserFastPaths.cpp	2022-02-08 02:55:25 UTC (rev 289307)
+++ branches/safari-613-branch/Source/WebCore/css/parser/CSSParserFastPaths.cpp	2022-02-08 02:55:31 UTC (rev 289308)
@@ -648,6 +648,8 @@
     case CSSPropertyImageRendering: // auto | optimizeContrast | pixelated | optimizeSpeed | crispEdges | optimizeQuality | webkit-crispEdges
         return valueID == CSSValueAuto || valueID == CSSValueOptimizeSpeed || valueID == CSSValueOptimizeQuality || valueID == CSSValueWebkitCrispEdges || valueID == CSSValueWebkitOptimizeContrast || valueID == CSSValueCrispEdges || valueID == CSSValuePixelated;
     case CSSPropertyInputSecurity:
+        if (!context.inputSecurityEnabled)
+            return false;
         return valueID == CSSValueAuto || valueID == CSSValueNone;
 #if ENABLE(CSS_COMPOSITING)
     case CSSPropertyIsolation: // auto | isolate

Modified: branches/safari-613-branch/Source/WebKitLegacy/win/ChangeLog (289307 => 289308)


--- branches/safari-613-branch/Source/WebKitLegacy/win/ChangeLog	2022-02-08 02:55:25 UTC (rev 289307)
+++ branches/safari-613-branch/Source/WebKitLegacy/win/ChangeLog	2022-02-08 02:55:31 UTC (rev 289308)
@@ -1,3 +1,84 @@
+2022-02-07  Russell Epstein  <[email protected]>
+
+        Cherry-pick r288590. rdar://problem/87984277
+
+    Disable input-security CSS property
+    https://bugs.webkit.org/show_bug.cgi?id=235557
+    rdar://87984277
+    
+    Reviewed by Dean Jackson.
+    
+    Source/WebCore:
+    
+    CSSWG is planning to remove input-security from CSS UI 4
+    (https://github.com/w3c/csswg-drafts/issues/6788).
+    
+    Keep the property around as an experimental feature, so that
+    it can be used in the UA stylesheet, and easily turned on if the
+    resolution is not finalized.
+    
+    * css/CSSComputedStyleDeclaration.cpp:
+    (WebCore::ComputedStyleExtractor::valueForPropertyInStyle):
+    * css/CSSProperties.json:
+    * css/parser/CSSParserContext.cpp:
+    (WebCore::CSSParserContext::CSSParserContext):
+    
+    Enable input-security when parsing the UA stylesheet, as it is used to
+    obscure text in password inputs.
+    
+    (WebCore::operator==):
+    (WebCore::add):
+    (WebCore::CSSParserContext::isPropertyRuntimeDisabled const):
+    * css/parser/CSSParserContext.h:
+    * css/parser/CSSParserFastPaths.cpp:
+    (WebCore::CSSParserFastPaths::isValidKeywordPropertyAndValue):
+    
+    Source/WebKitLegacy/win:
+    
+    Add support for tests enabling the CSSInputSecurityEnabled preference.
+    
+    * WebPreferences.cpp:
+    (WebPreferences::cssInputSecurityEnabled):
+    * WebPreferences.h:
+    * WebView.cpp:
+    (WebView::notifyPreferencesChanged):
+    
+    Source/WTF:
+    
+    * Scripts/Preferences/WebPreferencesExperimental.yaml:
+    
+    Make input-security a disabled-by-default experimental feature.
+    
+    Tools:
+    
+    * DumpRenderTree/TestOptions.cpp:
+    (WTR::TestOptions::defaults):
+    
+    Add default for WebKitLegacy on Windows.
+    
+    LayoutTests:
+    
+    * fast/css/computed-text-security-for-input-security.html:
+    
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@288590 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2022-01-25  Aditya Keerthi  <[email protected]>
+
+            Disable input-security CSS property
+            https://bugs.webkit.org/show_bug.cgi?id=235557
+            rdar://87984277
+
+            Reviewed by Dean Jackson.
+
+            Add support for tests enabling the CSSInputSecurityEnabled preference.
+
+            * WebPreferences.cpp:
+            (WebPreferences::cssInputSecurityEnabled):
+            * WebPreferences.h:
+            * WebView.cpp:
+            (WebView::notifyPreferencesChanged):
+
 2022-01-09  Sam Weinig  <[email protected]>
 
         Remove support for Direct2D

Modified: branches/safari-613-branch/Source/WebKitLegacy/win/WebPreferences.cpp (289307 => 289308)


--- branches/safari-613-branch/Source/WebKitLegacy/win/WebPreferences.cpp	2022-02-08 02:55:25 UTC (rev 289307)
+++ branches/safari-613-branch/Source/WebKitLegacy/win/WebPreferences.cpp	2022-02-08 02:55:31 UTC (rev 289308)
@@ -2647,3 +2647,7 @@
     return boolValueForKey("WebKitMockScrollbarsControllerEnabled");
 }
 
+bool WebPreferences::cssInputSecurityEnabled()
+{
+    return boolValueForKey("WebKitCSSInputSecurityEnabled");
+}

Modified: branches/safari-613-branch/Source/WebKitLegacy/win/WebPreferences.h (289307 => 289308)


--- branches/safari-613-branch/Source/WebKitLegacy/win/WebPreferences.h	2022-02-08 02:55:25 UTC (rev 289307)
+++ branches/safari-613-branch/Source/WebKitLegacy/win/WebPreferences.h	2022-02-08 02:55:31 UTC (rev 289308)
@@ -348,6 +348,7 @@
     bool canvasColorSpaceEnabled();
     bool cssGradientPremultipliedAlphaInterpolationEnabled();
     bool mockScrollbarsControllerEnabled();
+    bool cssInputSecurityEnabled();
 
 private:
     WebPreferences();

Modified: branches/safari-613-branch/Source/WebKitLegacy/win/WebView.cpp (289307 => 289308)


--- branches/safari-613-branch/Source/WebKitLegacy/win/WebView.cpp	2022-02-08 02:55:25 UTC (rev 289307)
+++ branches/safari-613-branch/Source/WebKitLegacy/win/WebView.cpp	2022-02-08 02:55:31 UTC (rev 289308)
@@ -5444,6 +5444,7 @@
     settings.setCanvasColorSpaceEnabled(m_preferences->canvasColorSpaceEnabled());
     settings.setCSSGradientPremultipliedAlphaInterpolationEnabled(m_preferences->cssGradientPremultipliedAlphaInterpolationEnabled());
     settings.setMockScrollbarsControllerEnabled(m_preferences->mockScrollbarsControllerEnabled());
+    settings.setCSSInputSecurityEnabled(m_preferences->cssInputSecurityEnabled());
 
     return S_OK;
 }

Modified: branches/safari-613-branch/Tools/ChangeLog (289307 => 289308)


--- branches/safari-613-branch/Tools/ChangeLog	2022-02-08 02:55:25 UTC (rev 289307)
+++ branches/safari-613-branch/Tools/ChangeLog	2022-02-08 02:55:31 UTC (rev 289308)
@@ -1,5 +1,83 @@
 2022-02-07  Russell Epstein  <[email protected]>
 
+        Cherry-pick r288590. rdar://problem/87984277
+
+    Disable input-security CSS property
+    https://bugs.webkit.org/show_bug.cgi?id=235557
+    rdar://87984277
+    
+    Reviewed by Dean Jackson.
+    
+    Source/WebCore:
+    
+    CSSWG is planning to remove input-security from CSS UI 4
+    (https://github.com/w3c/csswg-drafts/issues/6788).
+    
+    Keep the property around as an experimental feature, so that
+    it can be used in the UA stylesheet, and easily turned on if the
+    resolution is not finalized.
+    
+    * css/CSSComputedStyleDeclaration.cpp:
+    (WebCore::ComputedStyleExtractor::valueForPropertyInStyle):
+    * css/CSSProperties.json:
+    * css/parser/CSSParserContext.cpp:
+    (WebCore::CSSParserContext::CSSParserContext):
+    
+    Enable input-security when parsing the UA stylesheet, as it is used to
+    obscure text in password inputs.
+    
+    (WebCore::operator==):
+    (WebCore::add):
+    (WebCore::CSSParserContext::isPropertyRuntimeDisabled const):
+    * css/parser/CSSParserContext.h:
+    * css/parser/CSSParserFastPaths.cpp:
+    (WebCore::CSSParserFastPaths::isValidKeywordPropertyAndValue):
+    
+    Source/WebKitLegacy/win:
+    
+    Add support for tests enabling the CSSInputSecurityEnabled preference.
+    
+    * WebPreferences.cpp:
+    (WebPreferences::cssInputSecurityEnabled):
+    * WebPreferences.h:
+    * WebView.cpp:
+    (WebView::notifyPreferencesChanged):
+    
+    Source/WTF:
+    
+    * Scripts/Preferences/WebPreferencesExperimental.yaml:
+    
+    Make input-security a disabled-by-default experimental feature.
+    
+    Tools:
+    
+    * DumpRenderTree/TestOptions.cpp:
+    (WTR::TestOptions::defaults):
+    
+    Add default for WebKitLegacy on Windows.
+    
+    LayoutTests:
+    
+    * fast/css/computed-text-security-for-input-security.html:
+    
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@288590 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2022-01-25  Aditya Keerthi  <[email protected]>
+
+            Disable input-security CSS property
+            https://bugs.webkit.org/show_bug.cgi?id=235557
+            rdar://87984277
+
+            Reviewed by Dean Jackson.
+
+            * DumpRenderTree/TestOptions.cpp:
+            (WTR::TestOptions::defaults):
+
+            Add default for WebKitLegacy on Windows.
+
+2022-02-07  Russell Epstein  <[email protected]>
+
         Cherry-pick r288478. rdar://problem/72567903
 
     Regression (r286936): SessionStorage data is not cleared when deleting website data by modification time

Modified: branches/safari-613-branch/Tools/DumpRenderTree/TestOptions.cpp (289307 => 289308)


--- branches/safari-613-branch/Tools/DumpRenderTree/TestOptions.cpp	2022-02-08 02:55:25 UTC (rev 289307)
+++ branches/safari-613-branch/Tools/DumpRenderTree/TestOptions.cpp	2022-02-08 02:55:31 UTC (rev 289308)
@@ -136,6 +136,7 @@
             { "CSSCounterStyleAtRuleImageSymbolsEnabled", false },
             { "CSSCounterStyleAtRulesEnabled", false },
             { "CSSGradientPremultipliedAlphaInterpolationEnabled", true },
+            { "CSSInputSecurityEnabled", true },
             { "CSSLogicalEnabled", false },
             { "CSSOMViewSmoothScrollingEnabled", false },
             { "CanvasColorSpaceEnabled", true },
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to