<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[285610] trunk</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/285610">285610</a></dd>
<dt>Author</dt> <dd>drousso@apple.com</dd>
<dt>Date</dt> <dd>2021-11-10 16:14:36 -0800 (Wed, 10 Nov 2021)</dd>
</dl>
<h3>Log Message</h3>
<pre>Add support for marking an `<input>` as being autofilled with obscured content
https://bugs.webkit.org/show_bug.cgi?id=232903
<rdar://problem/84276999>
Reviewed by Aditya Keerthi.
Source/WebCore:
Test: fast/forms/auto-fill-button/input-auto-filled-and-obscured.html
* html/HTMLInputElement.h:
(WebCore::HTMLInputElement::isAutoFilledAndObscured const): Added.
* html/HTMLInputElement.cpp:
(WebCore::HTMLInputElement::HTMLInputElement):
(WebCore::HTMLInputElement::reset):
(WebCore::HTMLInputElement::setAutoFilledAndObscured): Added.
Add a new boolean state member that is used by injected bundle code (and tests).
* css/CSSSelector.h:
* css/CSSSelector.cpp:
(WebCore::CSSSelector::selectorText const):
* css/SelectorChecker.cpp:
(WebCore::SelectorChecker::checkOne const):
* css/SelectorCheckerTestFunctions.h:
(WebCore::isAutofilledAndObscured): Added.
* css/SelectorPseudoClassAndCompatibilityElementMap.in:
* cssjit/SelectorCompiler.cpp:
(WebCore::SelectorCompiler::JSC_DEFINE_JIT_OPERATION):
(WebCore::SelectorCompiler::addPseudoClassType):
Create a new `-webkit-autofill-and-obscured` pseudo-class.
* css/html.css:
(input:-webkit-autofill-and-obscured): Added.
(input:-webkit-autofill, input:-webkit-autofill-strong-password, input:-webkit-autofill-strong-password-viewable, input:-webkit-autofill-and-obscured): Renamed from `input:-webkit-autofill, input:-webkit-autofill-strong-password, input:-webkit-autofill-strong-password-viewable`.
Use `-webkit-autofill-and-obscured` to change the `<input>` text into non-interactable discs.
* testing/Internals.idl:
* testing/Internals.h:
* testing/Internals.cpp:
(WebCore::Internals::setAutoFilledAndObscured): Added.
Source/WebKit:
* WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.h:
* WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
(WebKit::InjectedBundleNodeHandle::isHTMLInputElementAutoFilledAndObscured const): Added.
(WebKit::InjectedBundleNodeHandle::setHTMLInputElementAutoFilledAndObscured): Added.
* WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandle.h:
* WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandle.mm:
(-[WKWebProcessPlugInNodeHandle HTMLInputElementIsAutoFilledAndObscured]): Added.
(-[WKWebProcessPlugInNodeHandle setHTMLInputElementIsAutoFilledAndObscured:]): Added.
* WebProcess/InjectedBundle/API/c/WKBundleNodeHandlePrivate.h:
* WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp:
(WKBundleNodeHandleSetHTMLInputElementAutoFilledAndObscured): Added.
Expose a way to get/set the CSS `-webkit-autofill-and-obscured` pseudo-class on an `<input>`.
LayoutTests:
* fast/forms/auto-fill-button/input-auto-filled-and-obscured.html: Added.
* fast/forms/auto-fill-button/input-auto-filled-and-obscured-expected.html: Added.
* platform/win/TestExpectations:</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsplatformwinTestExpectations">trunk/LayoutTests/platform/win/TestExpectations</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorecssCSSSelectorcpp">trunk/Source/WebCore/css/CSSSelector.cpp</a></li>
<li><a href="#trunkSourceWebCorecssCSSSelectorh">trunk/Source/WebCore/css/CSSSelector.h</a></li>
<li><a href="#trunkSourceWebCorecssSelectorCheckercpp">trunk/Source/WebCore/css/SelectorChecker.cpp</a></li>
<li><a href="#trunkSourceWebCorecssSelectorCheckerTestFunctionsh">trunk/Source/WebCore/css/SelectorCheckerTestFunctions.h</a></li>
<li><a href="#trunkSourceWebCorecssSelectorPseudoClassAndCompatibilityElementMapin">trunk/Source/WebCore/css/SelectorPseudoClassAndCompatibilityElementMap.in</a></li>
<li><a href="#trunkSourceWebCorecsshtmlcss">trunk/Source/WebCore/css/html.css</a></li>
<li><a href="#trunkSourceWebCorecssjitSelectorCompilercpp">trunk/Source/WebCore/cssjit/SelectorCompiler.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLInputElementcpp">trunk/Source/WebCore/html/HTMLInputElement.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLInputElementh">trunk/Source/WebCore/html/HTMLInputElement.h</a></li>
<li><a href="#trunkSourceWebCoretestingInternalscpp">trunk/Source/WebCore/testing/Internals.cpp</a></li>
<li><a href="#trunkSourceWebCoretestingInternalsh">trunk/Source/WebCore/testing/Internals.h</a></li>
<li><a href="#trunkSourceWebCoretestingInternalsidl">trunk/Source/WebCore/testing/Internals.idl</a></li>
<li><a href="#trunkSourceWebKitChangeLog">trunk/Source/WebKit/ChangeLog</a></li>
<li><a href="#trunkSourceWebKitWebProcessInjectedBundleAPICocoaWKWebProcessPlugInNodeHandleh">trunk/Source/WebKit/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandle.h</a></li>
<li><a href="#trunkSourceWebKitWebProcessInjectedBundleAPICocoaWKWebProcessPlugInNodeHandlemm">trunk/Source/WebKit/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandle.mm</a></li>
<li><a href="#trunkSourceWebKitWebProcessInjectedBundleAPIcWKBundleNodeHandlecpp">trunk/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp</a></li>
<li><a href="#trunkSourceWebKitWebProcessInjectedBundleAPIcWKBundleNodeHandlePrivateh">trunk/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundleNodeHandlePrivate.h</a></li>
<li><a href="#trunkSourceWebKitWebProcessInjectedBundleDOMInjectedBundleNodeHandlecpp">trunk/Source/WebKit/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp</a></li>
<li><a href="#trunkSourceWebKitWebProcessInjectedBundleDOMInjectedBundleNodeHandleh">trunk/Source/WebKit/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.h</a></li>
</ul>
<h3>Added Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsfastformsautofillbuttoninputautofilledandobscuredexpectedhtml">trunk/LayoutTests/fast/forms/auto-fill-button/input-auto-filled-and-obscured-expected.html</a></li>
<li><a href="#trunkLayoutTestsfastformsautofillbuttoninputautofilledandobscuredhtml">trunk/LayoutTests/fast/forms/auto-fill-button/input-auto-filled-and-obscured.html</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (285609 => 285610)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog 2021-11-11 00:03:06 UTC (rev 285609)
+++ trunk/LayoutTests/ChangeLog 2021-11-11 00:14:36 UTC (rev 285610)
</span><span class="lines">@@ -1,3 +1,16 @@
</span><ins>+2021-11-10 Devin Rousso <drousso@apple.com>
+
+ Add support for marking an `<input>` as being autofilled with obscured content
+ https://bugs.webkit.org/show_bug.cgi?id=232903
+ <rdar://problem/84276999>
+
+ Reviewed by Aditya Keerthi.
+
+ * fast/forms/auto-fill-button/input-auto-filled-and-obscured.html: Added.
+ * fast/forms/auto-fill-button/input-auto-filled-and-obscured-expected.html: Added.
+
+ * platform/win/TestExpectations:
+
</ins><span class="cx"> 2021-11-10 Wenson Hsieh <wenson_hsieh@apple.com>
</span><span class="cx">
</span><span class="cx"> Refactor some image overlay logic to work with built-in media controls
</span></span></pre></div>
<a id="trunkLayoutTestsfastformsautofillbuttoninputautofilledandobscuredexpectedhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/forms/auto-fill-button/input-auto-filled-and-obscured-expected.html (0 => 285610)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/forms/auto-fill-button/input-auto-filled-and-obscured-expected.html (rev 0)
+++ trunk/LayoutTests/fast/forms/auto-fill-button/input-auto-filled-and-obscured-expected.html 2021-11-11 00:14:36 UTC (rev 285610)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+<!DOCTYPE html>
+<html>
+<body>
+<p>This tests that the Obscured AutoFill and viewable visual treatment renders in an auto-filled input. It can only be tested in the test tool.</p>
+<div id="container">
+ <input value="1234567890" style="-webkit-text-security: disc; background-color: #FAFFBD">
+ <input value="1234567890" style="-webkit-text-security: disc; background-color: #FAFFBD">
+ <input value="1234567890" style="width: 300px; -webkit-text-security: disc; background-color: #FAFFBD">
+ <input value="1234567890" style="width: 20px; -webkit-text-security: disc; background-color: #FAFFBD">
+ <input value="1234567890" style="height: 100px; -webkit-text-security: disc; background-color: #FAFFBD">
+ <input value="1234567890" style="width: 20px; height:100px; -webkit-text-security: disc; background-color: #FAFFBD">
+ <input style="background-color: #FAFFBD">
+</div>
+</body>
+</html>
+
</ins></span></pre></div>
<a id="trunkLayoutTestsfastformsautofillbuttoninputautofilledandobscuredhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/forms/auto-fill-button/input-auto-filled-and-obscured.html (0 => 285610)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/forms/auto-fill-button/input-auto-filled-and-obscured.html (rev 0)
+++ trunk/LayoutTests/fast/forms/auto-fill-button/input-auto-filled-and-obscured.html 2021-11-11 00:14:36 UTC (rev 285610)
</span><span class="lines">@@ -0,0 +1,27 @@
</span><ins>+<!DOCTYPE html>
+<html>
+<body>
+<p>This tests that the Obscured AutoFill and viewable visual treatment renders in an auto-filled input. It can only be tested in the test tool.</p>
+<div id="container">
+ <input value="1234567890">
+ <input value="1234567890">
+ <input value="1234567890" style="width: 300px">
+ <input value="1234567890" style="width: 20px">
+ <input value="1234567890" style="height: 100px">
+ <input value="1234567890" style="width: 20px; height: 100px">
+</div>
+<script>
+if (window.internals) {
+ var inputs = document.querySelectorAll("input");
+ for (var i = 0; i < inputs.length; ++i) {
+ window.internals.setAutoFilledAndObscured(inputs[i], true);
+ }
+
+ var dynamicInput = document.createElement("input");
+ window.internals.setAutoFilledAndObscured(dynamicInput, true);
+ document.querySelector("#container").appendChild(dynamicInput);
+}
+</script>
+</body>
+</html>
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformwinTestExpectations"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/win/TestExpectations (285609 => 285610)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/win/TestExpectations 2021-11-11 00:03:06 UTC (rev 285609)
+++ trunk/LayoutTests/platform/win/TestExpectations 2021-11-11 00:14:36 UTC (rev 285610)
</span><span class="lines">@@ -3895,6 +3895,7 @@
</span><span class="cx"> webkit.org/b/181662 fast/forms/auto-fill-button/input-strong-password-auto-fill-button.html [ Failure ]
</span><span class="cx"> webkit.org/b/200037 fast/forms/auto-fill-button/hide-auto-fill-strong-password-viewable-treatment-when-form-is-reset.html [ Missing Failure ]
</span><span class="cx"> webkit.org/b/200037 fast/forms/auto-fill-button/input-strong-password-viewable.html [ Missing Failure ]
</span><ins>+webkit.org/b/232967 fast/forms/auto-fill-button/input-auto-filled-and-obscured.html [ Missing Failure ]
</ins><span class="cx">
</span><span class="cx"> webkit.org/b/181854 svg/filters/feDiffuseLighting-bottomRightPixel.html [ ImageOnlyFailure ]
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (285609 => 285610)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog 2021-11-11 00:03:06 UTC (rev 285609)
+++ trunk/Source/WebCore/ChangeLog 2021-11-11 00:14:36 UTC (rev 285610)
</span><span class="lines">@@ -1,3 +1,44 @@
</span><ins>+2021-11-10 Devin Rousso <drousso@apple.com>
+
+ Add support for marking an `<input>` as being autofilled with obscured content
+ https://bugs.webkit.org/show_bug.cgi?id=232903
+ <rdar://problem/84276999>
+
+ Reviewed by Aditya Keerthi.
+
+ Test: fast/forms/auto-fill-button/input-auto-filled-and-obscured.html
+
+ * html/HTMLInputElement.h:
+ (WebCore::HTMLInputElement::isAutoFilledAndObscured const): Added.
+ * html/HTMLInputElement.cpp:
+ (WebCore::HTMLInputElement::HTMLInputElement):
+ (WebCore::HTMLInputElement::reset):
+ (WebCore::HTMLInputElement::setAutoFilledAndObscured): Added.
+ Add a new boolean state member that is used by injected bundle code (and tests).
+
+ * css/CSSSelector.h:
+ * css/CSSSelector.cpp:
+ (WebCore::CSSSelector::selectorText const):
+ * css/SelectorChecker.cpp:
+ (WebCore::SelectorChecker::checkOne const):
+ * css/SelectorCheckerTestFunctions.h:
+ (WebCore::isAutofilledAndObscured): Added.
+ * css/SelectorPseudoClassAndCompatibilityElementMap.in:
+ * cssjit/SelectorCompiler.cpp:
+ (WebCore::SelectorCompiler::JSC_DEFINE_JIT_OPERATION):
+ (WebCore::SelectorCompiler::addPseudoClassType):
+ Create a new `-webkit-autofill-and-obscured` pseudo-class.
+
+ * css/html.css:
+ (input:-webkit-autofill-and-obscured): Added.
+ (input:-webkit-autofill, input:-webkit-autofill-strong-password, input:-webkit-autofill-strong-password-viewable, input:-webkit-autofill-and-obscured): Renamed from `input:-webkit-autofill, input:-webkit-autofill-strong-password, input:-webkit-autofill-strong-password-viewable`.
+ Use `-webkit-autofill-and-obscured` to change the `<input>` text into non-interactable discs.
+
+ * testing/Internals.idl:
+ * testing/Internals.h:
+ * testing/Internals.cpp:
+ (WebCore::Internals::setAutoFilledAndObscured): Added.
+
</ins><span class="cx"> 2021-11-10 Wenson Hsieh <wenson_hsieh@apple.com>
</span><span class="cx">
</span><span class="cx"> Refactor some image overlay logic to work with built-in media controls
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSSelectorcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSSelector.cpp (285609 => 285610)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSSelector.cpp 2021-11-11 00:03:06 UTC (rev 285609)
+++ trunk/Source/WebCore/css/CSSSelector.cpp 2021-11-11 00:14:36 UTC (rev 285610)
</span><span class="lines">@@ -422,6 +422,9 @@
</span><span class="cx"> case CSSSelector::PseudoClassAutofill:
</span><span class="cx"> builder.append(":autofill");
</span><span class="cx"> break;
</span><ins>+ case CSSSelector::PseudoClassAutofillAndObscured:
+ builder.append(":-webkit-autofill-and-obscured");
+ break;
</ins><span class="cx"> case CSSSelector::PseudoClassAutofillStrongPassword:
</span><span class="cx"> builder.append(":-webkit-autofill-strong-password");
</span><span class="cx"> break;
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSSelectorh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSSelector.h (285609 => 285610)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSSelector.h 2021-11-11 00:03:06 UTC (rev 285609)
+++ trunk/Source/WebCore/css/CSSSelector.h 2021-11-11 00:14:36 UTC (rev 285610)
</span><span class="lines">@@ -110,6 +110,7 @@
</span><span class="cx"> PseudoClassAnyLink,
</span><span class="cx"> PseudoClassAnyLinkDeprecated,
</span><span class="cx"> PseudoClassAutofill,
</span><ins>+ PseudoClassAutofillAndObscured,
</ins><span class="cx"> PseudoClassAutofillStrongPassword,
</span><span class="cx"> PseudoClassAutofillStrongPasswordViewable,
</span><span class="cx"> PseudoClassHover,
</span></span></pre></div>
<a id="trunkSourceWebCorecssSelectorCheckercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/SelectorChecker.cpp (285609 => 285610)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/SelectorChecker.cpp 2021-11-11 00:03:06 UTC (rev 285609)
+++ trunk/Source/WebCore/css/SelectorChecker.cpp 2021-11-11 00:14:36 UTC (rev 285610)
</span><span class="lines">@@ -982,6 +982,8 @@
</span><span class="cx"> break;
</span><span class="cx"> case CSSSelector::PseudoClassAutofill:
</span><span class="cx"> return isAutofilled(element);
</span><ins>+ case CSSSelector::PseudoClassAutofillAndObscured:
+ return isAutofilledAndObscured(element);
</ins><span class="cx"> case CSSSelector::PseudoClassAutofillStrongPassword:
</span><span class="cx"> return isAutofilledStrongPassword(element);
</span><span class="cx"> case CSSSelector::PseudoClassAutofillStrongPasswordViewable:
</span></span></pre></div>
<a id="trunkSourceWebCorecssSelectorCheckerTestFunctionsh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/SelectorCheckerTestFunctions.h (285609 => 285610)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/SelectorCheckerTestFunctions.h 2021-11-11 00:03:06 UTC (rev 285609)
+++ trunk/Source/WebCore/css/SelectorCheckerTestFunctions.h 2021-11-11 00:14:36 UTC (rev 285610)
</span><span class="lines">@@ -72,6 +72,11 @@
</span><span class="cx"> return is<HTMLInputElement>(element) && downcast<HTMLInputElement>(element).isAutoFilledAndViewable();
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+ALWAYS_INLINE bool isAutofilledAndObscured(const Element& element)
+{
+ return is<HTMLInputElement>(element) && downcast<HTMLInputElement>(element).isAutoFilledAndObscured();
+}
+
</ins><span class="cx"> ALWAYS_INLINE bool matchesDefaultPseudoClass(const Element& element)
</span><span class="cx"> {
</span><span class="cx"> return element.matchesDefaultPseudoClass();
</span></span></pre></div>
<a id="trunkSourceWebCorecssSelectorPseudoClassAndCompatibilityElementMapin"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/SelectorPseudoClassAndCompatibilityElementMap.in (285609 => 285610)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/SelectorPseudoClassAndCompatibilityElementMap.in 2021-11-11 00:03:06 UTC (rev 285609)
+++ trunk/Source/WebCore/css/SelectorPseudoClassAndCompatibilityElementMap.in 2021-11-11 00:14:36 UTC (rev 285610)
</span><span class="lines">@@ -4,6 +4,7 @@
</span><span class="cx"> -webkit-any
</span><span class="cx"> -webkit-any-link, PseudoClassAnyLinkDeprecated, PseudoElementUnknown
</span><span class="cx"> -webkit-autofill
</span><ins>+-webkit-autofill-and-obscured
</ins><span class="cx"> -webkit-autofill-strong-password
</span><span class="cx"> -webkit-autofill-strong-password-viewable
</span><span class="cx"> -webkit-drag
</span></span></pre></div>
<a id="trunkSourceWebCorecsshtmlcss"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/html.css (285609 => 285610)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/html.css 2021-11-11 00:03:06 UTC (rev 285609)
+++ trunk/Source/WebCore/css/html.css 2021-11-11 00:14:36 UTC (rev 285610)
</span><span class="lines">@@ -772,6 +772,13 @@
</span><span class="cx"> text-align: start !important;
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+input:-webkit-autofill-and-obscured {
+ -webkit-text-security: disc !important;
+ -webkit-user-select: none !important;
+ pointer-events: none !important;
+ cursor: default !important;
+}
+
</ins><span class="cx"> input:-webkit-autofill-strong-password {
</span><span class="cx"> -webkit-user-select: none !important;
</span><span class="cx"> }
</span><span class="lines">@@ -782,7 +789,7 @@
</span><span class="cx"> font-family: monospace;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-input:-webkit-autofill, input:-webkit-autofill-strong-password, input:-webkit-autofill-strong-password-viewable {
</del><ins>+input:-webkit-autofill, input:-webkit-autofill-strong-password, input:-webkit-autofill-strong-password-viewable, input:-webkit-autofill-and-obscured {
</ins><span class="cx"> background-color: #FAFFBD !important;
</span><span class="cx"> background-image: none !important;
</span><span class="cx"> color: #000000 !important;
</span></span></pre></div>
<a id="trunkSourceWebCorecssjitSelectorCompilercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/cssjit/SelectorCompiler.cpp (285609 => 285610)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/cssjit/SelectorCompiler.cpp 2021-11-11 00:03:06 UTC (rev 285609)
+++ trunk/Source/WebCore/cssjit/SelectorCompiler.cpp 2021-11-11 00:14:36 UTC (rev 285610)
</span><span class="lines">@@ -77,6 +77,7 @@
</span><span class="cx"> static JSC_DECLARE_JIT_OPERATION_WITHOUT_WTF_INTERNAL(operationSynchronizeStyleAttributeInternal, void, (StyledElement* styledElement));
</span><span class="cx"> static JSC_DECLARE_JIT_OPERATION_WITHOUT_WTF_INTERNAL(operationEqualIgnoringASCIICaseNonNull, bool, (const StringImpl*, const StringImpl*));
</span><span class="cx"> static JSC_DECLARE_JIT_OPERATION_WITHOUT_WTF_INTERNAL(operationIsAutofilled, bool, (const Element&));
</span><ins>+static JSC_DECLARE_JIT_OPERATION_WITHOUT_WTF_INTERNAL(operationIsAutofilledAndObscured, bool, (const Element&));
</ins><span class="cx"> static JSC_DECLARE_JIT_OPERATION_WITHOUT_WTF_INTERNAL(operationIsAutofilledStrongPassword, bool, (const Element&));
</span><span class="cx"> static JSC_DECLARE_JIT_OPERATION_WITHOUT_WTF_INTERNAL(operationIsAutofilledStrongPasswordViewable, bool, (const Element&));
</span><span class="cx"> static JSC_DECLARE_JIT_OPERATION_WITHOUT_WTF_INTERNAL(operationIsChecked, bool, (const Element&));
</span><span class="lines">@@ -600,6 +601,11 @@
</span><span class="cx"> return isAutofilled(element);
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+JSC_DEFINE_JIT_OPERATION(operationIsAutofilledAndObscured, bool, (const Element& element))
+{
+ return isAutofilledAndObscured(element);
+}
+
</ins><span class="cx"> JSC_DEFINE_JIT_OPERATION(operationIsAutofilledStrongPassword, bool, (const Element& element))
</span><span class="cx"> {
</span><span class="cx"> return isAutofilledStrongPassword(element);
</span><span class="lines">@@ -816,6 +822,9 @@
</span><span class="cx"> case CSSSelector::PseudoClassAutofill:
</span><span class="cx"> fragment.unoptimizedPseudoClasses.append(JSC::FunctionPtr<JSC::OperationPtrTag>(operationIsAutofilled));
</span><span class="cx"> return FunctionType::SimpleSelectorChecker;
</span><ins>+ case CSSSelector::PseudoClassAutofillAndObscured:
+ fragment.unoptimizedPseudoClasses.append(JSC::FunctionPtr<JSC::OperationPtrTag>(operationIsAutofilledAndObscured));
+ return FunctionType::SimpleSelectorChecker;
</ins><span class="cx"> case CSSSelector::PseudoClassAutofillStrongPassword:
</span><span class="cx"> fragment.unoptimizedPseudoClasses.append(JSC::FunctionPtr<JSC::OperationPtrTag>(operationIsAutofilledStrongPassword));
</span><span class="cx"> return FunctionType::SimpleSelectorChecker;
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLInputElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLInputElement.cpp (285609 => 285610)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLInputElement.cpp 2021-11-11 00:03:06 UTC (rev 285609)
+++ trunk/Source/WebCore/html/HTMLInputElement.cpp 2021-11-11 00:14:36 UTC (rev 285610)
</span><span class="lines">@@ -115,6 +115,7 @@
</span><span class="cx"> , m_autocomplete(Uninitialized)
</span><span class="cx"> , m_isAutoFilled(false)
</span><span class="cx"> , m_isAutoFilledAndViewable(false)
</span><ins>+ , m_isAutoFilledAndObscured(false)
</ins><span class="cx"> , m_autoFillButtonType(static_cast<uint8_t>(AutoFillButtonType::None))
</span><span class="cx"> , m_lastAutoFillButtonType(static_cast<uint8_t>(AutoFillButtonType::None))
</span><span class="cx"> , m_isAutoFillAvailable(false)
</span><span class="lines">@@ -959,6 +960,7 @@
</span><span class="cx">
</span><span class="cx"> setAutoFilled(false);
</span><span class="cx"> setAutoFilledAndViewable(false);
</span><ins>+ setAutoFilledAndObscured(false);
</ins><span class="cx"> setShowAutoFillButton(AutoFillButtonType::None);
</span><span class="cx"> setChecked(hasAttributeWithoutSynchronization(checkedAttr));
</span><span class="cx"> m_dirtyCheckednessFlag = false;
</span><span class="lines">@@ -1396,6 +1398,15 @@
</span><span class="cx"> invalidateStyleForSubtree();
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+void HTMLInputElement::setAutoFilledAndObscured(bool autoFilledAndObscured)
+{
+ if (autoFilledAndObscured == m_isAutoFilledAndObscured)
+ return;
+
+ m_isAutoFilledAndObscured = autoFilledAndObscured;
+ invalidateStyleForSubtree();
+}
+
</ins><span class="cx"> void HTMLInputElement::setShowAutoFillButton(AutoFillButtonType autoFillButtonType)
</span><span class="cx"> {
</span><span class="cx"> if (static_cast<uint8_t>(autoFillButtonType) == m_autoFillButtonType)
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLInputElementh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLInputElement.h (285609 => 285610)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLInputElement.h 2021-11-11 00:03:06 UTC (rev 285609)
+++ trunk/Source/WebCore/html/HTMLInputElement.h 2021-11-11 00:14:36 UTC (rev 285610)
</span><span class="lines">@@ -242,6 +242,9 @@
</span><span class="cx"> bool isAutoFilledAndViewable() const { return m_isAutoFilledAndViewable; }
</span><span class="cx"> WEBCORE_EXPORT void setAutoFilledAndViewable(bool = true);
</span><span class="cx">
</span><ins>+ bool isAutoFilledAndObscured() const { return m_isAutoFilledAndObscured; }
+ WEBCORE_EXPORT void setAutoFilledAndObscured(bool = true);
+
</ins><span class="cx"> AutoFillButtonType lastAutoFillButtonType() const { return static_cast<AutoFillButtonType>(m_lastAutoFillButtonType); }
</span><span class="cx"> AutoFillButtonType autoFillButtonType() const { return static_cast<AutoFillButtonType>(m_autoFillButtonType); }
</span><span class="cx"> WEBCORE_EXPORT void setShowAutoFillButton(AutoFillButtonType);
</span><span class="lines">@@ -474,6 +477,7 @@
</span><span class="cx"> unsigned m_autocomplete : 2; // AutoCompleteSetting
</span><span class="cx"> bool m_isAutoFilled : 1;
</span><span class="cx"> bool m_isAutoFilledAndViewable : 1;
</span><ins>+ bool m_isAutoFilledAndObscured : 1;
</ins><span class="cx"> unsigned m_autoFillButtonType : 3; // AutoFillButtonType
</span><span class="cx"> unsigned m_lastAutoFillButtonType : 3; // AutoFillButtonType
</span><span class="cx"> bool m_isAutoFillAvailable : 1;
</span></span></pre></div>
<a id="trunkSourceWebCoretestingInternalscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/testing/Internals.cpp (285609 => 285610)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/testing/Internals.cpp 2021-11-11 00:03:06 UTC (rev 285609)
+++ trunk/Source/WebCore/testing/Internals.cpp 2021-11-11 00:14:36 UTC (rev 285610)
</span><span class="lines">@@ -2102,6 +2102,11 @@
</span><span class="cx"> element.setAutoFilledAndViewable(enabled);
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+void Internals::setAutoFilledAndObscured(HTMLInputElement& element, bool enabled)
+{
+ element.setAutoFilledAndObscured(enabled);
+}
+
</ins><span class="cx"> static AutoFillButtonType toAutoFillButtonType(Internals::AutoFillButtonType type)
</span><span class="cx"> {
</span><span class="cx"> switch (type) {
</span></span></pre></div>
<a id="trunkSourceWebCoretestingInternalsh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/testing/Internals.h (285609 => 285610)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/testing/Internals.h 2021-11-11 00:03:06 UTC (rev 285609)
+++ trunk/Source/WebCore/testing/Internals.h 2021-11-11 00:14:36 UTC (rev 285610)
</span><span class="lines">@@ -320,6 +320,7 @@
</span><span class="cx"> bool elementShouldAutoComplete(HTMLInputElement&);
</span><span class="cx"> void setAutofilled(HTMLInputElement&, bool enabled);
</span><span class="cx"> void setAutoFilledAndViewable(HTMLInputElement&, bool enabled);
</span><ins>+ void setAutoFilledAndObscured(HTMLInputElement&, bool enabled);
</ins><span class="cx"> enum class AutoFillButtonType { None, Contacts, Credentials, StrongPassword, CreditCard };
</span><span class="cx"> void setShowAutoFillButton(HTMLInputElement&, AutoFillButtonType);
</span><span class="cx"> AutoFillButtonType autoFillButtonType(const HTMLInputElement&);
</span></span></pre></div>
<a id="trunkSourceWebCoretestingInternalsidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/testing/Internals.idl (285609 => 285610)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/testing/Internals.idl 2021-11-11 00:03:06 UTC (rev 285609)
+++ trunk/Source/WebCore/testing/Internals.idl 2021-11-11 00:14:36 UTC (rev 285610)
</span><span class="lines">@@ -409,6 +409,7 @@
</span><span class="cx"> boolean elementShouldAutoComplete(HTMLInputElement inputElement);
</span><span class="cx"> undefined setAutofilled(HTMLInputElement inputElement, boolean enabled);
</span><span class="cx"> undefined setAutoFilledAndViewable(HTMLInputElement inputElement, boolean enabled);
</span><ins>+ undefined setAutoFilledAndObscured(HTMLInputElement inputElement, boolean enabled);
</ins><span class="cx"> undefined setShowAutoFillButton(HTMLInputElement inputElement, AutoFillButtonType autoFillButtonType);
</span><span class="cx"> AutoFillButtonType autoFillButtonType(HTMLInputElement inputElement);
</span><span class="cx"> AutoFillButtonType lastAutoFillButtonType(HTMLInputElement inputElement);
</span></span></pre></div>
<a id="trunkSourceWebKitChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/ChangeLog (285609 => 285610)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/ChangeLog 2021-11-11 00:03:06 UTC (rev 285609)
+++ trunk/Source/WebKit/ChangeLog 2021-11-11 00:14:36 UTC (rev 285610)
</span><span class="lines">@@ -1,3 +1,24 @@
</span><ins>+2021-11-10 Devin Rousso <drousso@apple.com>
+
+ Add support for marking an `<input>` as being autofilled with obscured content
+ https://bugs.webkit.org/show_bug.cgi?id=232903
+ <rdar://problem/84276999>
+
+ Reviewed by Aditya Keerthi.
+
+ * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.h:
+ * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
+ (WebKit::InjectedBundleNodeHandle::isHTMLInputElementAutoFilledAndObscured const): Added.
+ (WebKit::InjectedBundleNodeHandle::setHTMLInputElementAutoFilledAndObscured): Added.
+ * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandle.h:
+ * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandle.mm:
+ (-[WKWebProcessPlugInNodeHandle HTMLInputElementIsAutoFilledAndObscured]): Added.
+ (-[WKWebProcessPlugInNodeHandle setHTMLInputElementIsAutoFilledAndObscured:]): Added.
+ * WebProcess/InjectedBundle/API/c/WKBundleNodeHandlePrivate.h:
+ * WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp:
+ (WKBundleNodeHandleSetHTMLInputElementAutoFilledAndObscured): Added.
+ Expose a way to get/set the CSS `-webkit-autofill-and-obscured` pseudo-class on an `<input>`.
+
</ins><span class="cx"> 2021-11-10 Wenson Hsieh <wenson_hsieh@apple.com>
</span><span class="cx">
</span><span class="cx"> Refactor some image overlay logic to work with built-in media controls
</span></span></pre></div>
<a id="trunkSourceWebKitWebProcessInjectedBundleAPICocoaWKWebProcessPlugInNodeHandleh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandle.h (285609 => 285610)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandle.h 2021-11-11 00:03:06 UTC (rev 285609)
+++ trunk/Source/WebKit/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandle.h 2021-11-11 00:14:36 UTC (rev 285610)
</span><span class="lines">@@ -52,6 +52,7 @@
</span><span class="cx"> @property (nonatomic, readonly) CGRect elementBounds;
</span><span class="cx"> @property (nonatomic) BOOL HTMLInputElementIsAutoFilled;
</span><span class="cx"> @property (nonatomic) BOOL HTMLInputElementIsAutoFilledAndViewable;
</span><ins>+@property (nonatomic) BOOL HTMLInputElementIsAutoFilledAndObscured WK_API_AVAILABLE(macos(WK_MAC_TBA), ios(WK_IOS_TBA));
</ins><span class="cx"> @property (nonatomic, readonly) BOOL HTMLInputElementIsUserEdited;
</span><span class="cx"> @property (nonatomic, readonly) BOOL HTMLTextAreaElementIsUserEdited;
</span><span class="cx"> @property (nonatomic, readonly) WKWebProcessPlugInNodeHandle *HTMLTableCellElementCellAbove;
</span></span></pre></div>
<a id="trunkSourceWebKitWebProcessInjectedBundleAPICocoaWKWebProcessPlugInNodeHandlemm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandle.mm (285609 => 285610)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandle.mm 2021-11-11 00:03:06 UTC (rev 285609)
+++ trunk/Source/WebKit/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandle.mm 2021-11-11 00:14:36 UTC (rev 285610)
</span><span class="lines">@@ -95,6 +95,11 @@
</span><span class="cx"> return _nodeHandle->isHTMLInputElementAutoFilledAndViewable();
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+- (BOOL)HTMLInputElementIsAutoFilledAndObscured
+{
+ return _nodeHandle->isHTMLInputElementAutoFilledAndObscured();
+}
+
</ins><span class="cx"> - (void)setHTMLInputElementIsAutoFilled:(BOOL)isAutoFilled
</span><span class="cx"> {
</span><span class="cx"> _nodeHandle->setHTMLInputElementAutoFilled(isAutoFilled);
</span><span class="lines">@@ -105,6 +110,11 @@
</span><span class="cx"> _nodeHandle->setHTMLInputElementAutoFilledAndViewable(isAutoFilledAndViewable);
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+- (void)setHTMLInputElementIsAutoFilledAndObscured:(BOOL)isAutoFilledAndObscured
+{
+ _nodeHandle->setHTMLInputElementAutoFilledAndObscured(isAutoFilledAndObscured);
+}
+
</ins><span class="cx"> - (BOOL)isHTMLInputElementAutoFillButtonEnabled
</span><span class="cx"> {
</span><span class="cx"> return _nodeHandle->isHTMLInputElementAutoFillButtonEnabled();
</span></span></pre></div>
<a id="trunkSourceWebKitWebProcessInjectedBundleAPIcWKBundleNodeHandlecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp (285609 => 285610)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp 2021-11-11 00:03:06 UTC (rev 285609)
+++ trunk/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp 2021-11-11 00:14:36 UTC (rev 285610)
</span><span class="lines">@@ -136,6 +136,11 @@
</span><span class="cx"> WebKit::toImpl(htmlInputElementHandleRef)->setHTMLInputElementAutoFilledAndViewable(autoFilledAndViewable);
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+void WKBundleNodeHandleSetHTMLInputElementAutoFilledAndObscured(WKBundleNodeHandleRef htmlInputElementHandleRef, bool autoFilledAndObscured)
+{
+ WebKit::toImpl(htmlInputElementHandleRef)->setHTMLInputElementAutoFilledAndObscured(autoFilledAndObscured);
+}
+
</ins><span class="cx"> bool WKBundleNodeHandleGetHTMLInputElementAutoFillButtonEnabled(WKBundleNodeHandleRef)
</span><span class="cx"> {
</span><span class="cx"> ASSERT_NOT_REACHED();
</span></span></pre></div>
<a id="trunkSourceWebKitWebProcessInjectedBundleAPIcWKBundleNodeHandlePrivateh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundleNodeHandlePrivate.h (285609 => 285610)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundleNodeHandlePrivate.h 2021-11-11 00:03:06 UTC (rev 285609)
+++ trunk/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundleNodeHandlePrivate.h 2021-11-11 00:14:36 UTC (rev 285610)
</span><span class="lines">@@ -65,6 +65,7 @@
</span><span class="cx"> WK_EXPORT bool WKBundleNodeHandleGetHTMLInputElementAutoFilled(WKBundleNodeHandleRef htmlInputElementHandle);
</span><span class="cx"> WK_EXPORT void WKBundleNodeHandleSetHTMLInputElementAutoFilled(WKBundleNodeHandleRef htmlInputElementHandle, bool filled);
</span><span class="cx"> WK_EXPORT void WKBundleNodeHandleSetHTMLInputElementAutoFilledAndViewable(WKBundleNodeHandleRef htmlInputElementHandle, bool autoFilledAndViewable);
</span><ins>+WK_EXPORT void WKBundleNodeHandleSetHTMLInputElementAutoFilledAndObscured(WKBundleNodeHandleRef htmlInputElementHandle, bool autoFilledAndObscured);
</ins><span class="cx"> WK_EXPORT bool WKBundleNodeHandleGetHTMLInputElementAutoFillButtonEnabled(WKBundleNodeHandleRef htmlInputElementHandle);
</span><span class="cx"> WK_EXPORT void WKBundleNodeHandleSetHTMLInputElementAutoFillButtonEnabledWithButtonType(WKBundleNodeHandleRef htmlInputElementHandle, WKAutoFillButtonType autoFillButtonType);
</span><span class="cx"> WK_EXPORT WKAutoFillButtonType WKBundleNodeHandleGetHTMLInputElementAutoFillButtonType(WKBundleNodeHandleRef htmlInputElementHandle);
</span></span></pre></div>
<a id="trunkSourceWebKitWebProcessInjectedBundleDOMInjectedBundleNodeHandlecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp (285609 => 285610)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp 2021-11-11 00:03:06 UTC (rev 285609)
+++ trunk/Source/WebKit/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp 2021-11-11 00:14:36 UTC (rev 285610)
</span><span class="lines">@@ -273,6 +273,14 @@
</span><span class="cx"> return downcast<HTMLInputElement>(*m_node).isAutoFilledAndViewable();
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+bool InjectedBundleNodeHandle::isHTMLInputElementAutoFilledAndObscured() const
+{
+ if (!is<HTMLInputElement>(m_node))
+ return false;
+
+ return downcast<HTMLInputElement>(*m_node).isAutoFilledAndObscured();
+}
+
</ins><span class="cx"> void InjectedBundleNodeHandle::setHTMLInputElementAutoFilled(bool filled)
</span><span class="cx"> {
</span><span class="cx"> if (!is<HTMLInputElement>(m_node))
</span><span class="lines">@@ -289,6 +297,14 @@
</span><span class="cx"> downcast<HTMLInputElement>(*m_node).setAutoFilledAndViewable(autoFilledAndViewable);
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+void InjectedBundleNodeHandle::setHTMLInputElementAutoFilledAndObscured(bool autoFilledAndObscured)
+{
+ if (!is<HTMLInputElement>(m_node))
+ return;
+
+ downcast<HTMLInputElement>(*m_node).setAutoFilledAndObscured(autoFilledAndObscured);
+}
+
</ins><span class="cx"> bool InjectedBundleNodeHandle::isHTMLInputElementAutoFillButtonEnabled() const
</span><span class="cx"> {
</span><span class="cx"> if (!is<HTMLInputElement>(m_node))
</span></span></pre></div>
<a id="trunkSourceWebKitWebProcessInjectedBundleDOMInjectedBundleNodeHandleh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.h (285609 => 285610)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.h 2021-11-11 00:03:06 UTC (rev 285609)
+++ trunk/Source/WebKit/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.h 2021-11-11 00:14:36 UTC (rev 285610)
</span><span class="lines">@@ -68,8 +68,10 @@
</span><span class="cx"> void setHTMLInputElementSpellcheckEnabled(bool);
</span><span class="cx"> bool isHTMLInputElementAutoFilled() const;
</span><span class="cx"> bool isHTMLInputElementAutoFilledAndViewable() const;
</span><ins>+ bool isHTMLInputElementAutoFilledAndObscured() const;
</ins><span class="cx"> void setHTMLInputElementAutoFilled(bool);
</span><span class="cx"> void setHTMLInputElementAutoFilledAndViewable(bool);
</span><ins>+ void setHTMLInputElementAutoFilledAndObscured(bool);
</ins><span class="cx"> bool isHTMLInputElementAutoFillButtonEnabled() const;
</span><span class="cx"> void setHTMLInputElementAutoFillButtonEnabled(WebCore::AutoFillButtonType);
</span><span class="cx"> WebCore::AutoFillButtonType htmlInputElementAutoFillButtonType() const;
</span></span></pre>
</div>
</div>
</body>
</html>