Title: [238540] trunk

Diff

Modified: trunk/LayoutTests/ChangeLog (238539 => 238540)


--- trunk/LayoutTests/ChangeLog	2018-11-27 01:54:59 UTC (rev 238539)
+++ trunk/LayoutTests/ChangeLog	2018-11-27 01:59:19 UTC (rev 238540)
@@ -1,3 +1,14 @@
+2018-11-26  Ryan Haddad  <[email protected]>
+
+        Unreviewed, rolling out r238357.
+
+        One of the layout tests added with this change is failing on Mojave.
+
+        Reverted changeset:
+        "REGRESSION (r238078): Do not draw caps lock indicator when Strong Password button is shown"
+        https://bugs.webkit.org/show_bug.cgi?id=191969
+        https://trac.webkit.org/changeset/238513
+
 2018-11-26  Tim Horton  <[email protected]>
 
         Insert <attachment> elements under editable images to make their backing data accessible

Modified: trunk/LayoutTests/TestExpectations (238539 => 238540)


--- trunk/LayoutTests/TestExpectations	2018-11-27 01:54:59 UTC (rev 238539)
+++ trunk/LayoutTests/TestExpectations	2018-11-27 01:59:19 UTC (rev 238540)
@@ -399,8 +399,6 @@
 fast/misc/valid-primary-screen-displayID.html [ Skip ]
 
 fast/events/detect-caps-lock.html [ Skip ]
-fast/forms/auto-fill-button/caps-lock-indicator-should-be-visible-when-after-hiding-auto-fill-strong-password-button.html [ Skip ]
-fast/forms/auto-fill-button/caps-lock-indicator-should-not-be-visible-when-auto-fill-strong-password-button-is-visible.html [ Skip ]
 fast/repaint/placeholder-after-caps-lock-hidden.html [ Skip ]
 fast/forms/password-scrolled-after-caps-lock-toggled.html [ Skip ]
 

Deleted: trunk/LayoutTests/fast/forms/auto-fill-button/caps-lock-indicator-should-be-visible-when-after-hiding-auto-fill-strong-password-button-expected.html (238539 => 238540)


--- trunk/LayoutTests/fast/forms/auto-fill-button/caps-lock-indicator-should-be-visible-when-after-hiding-auto-fill-strong-password-button-expected.html	2018-11-27 01:54:59 UTC (rev 238539)
+++ trunk/LayoutTests/fast/forms/auto-fill-button/caps-lock-indicator-should-be-visible-when-after-hiding-auto-fill-strong-password-button-expected.html	2018-11-27 01:59:19 UTC (rev 238540)
@@ -1,48 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src=""
-<script>
-if (window.testRunner)
-    testRunner.waitUntilDone();
-</script>
-</head>
-<body>
-<p>This tests that the caps lock indicator is visible after hiding the Strong Password AutoFill button. It can only be tested in the test tool.</p>
-<input type="password" value="A quick brown fox jumped over the lazy dog.">
-<script>
-function done()
-{
-    if (window.testRunner)
-        testRunner.notifyDone();
-}
-
-function handleCapsLockEnabled(event)
-{
-    console.assert(event.key === "CapsLock");
-    // FIXME: For some reason it takes up to 100ms for the caps lock indicator to be painted (why?).
-    window.setTimeout(done, 100);
-}
-
-async function runTest()
-{
-    if (!window.testRunner)
-        return;
-
-    let input = document.querySelector("input");
-
-    function handleFocus(event) {
-        console.assert(event.target === input);
-        // Move the caret is at the beginning of the field to ensure consistent test results.
-        input.setSelectionRange(0, 0);
-        input.addEventListener("keydown", handleCapsLockEnabled, { once: true });
-        UIHelper.toggleCapsLock();
-    }
-    input.addEventListener("focus", handleFocus, { once: true });
-    UIHelper.activateElement(input); // Puts caret in the center of the field; we will fix this up.
-}
-
-runTest();
-</script>
-</body>
-</html>

Deleted: trunk/LayoutTests/fast/forms/auto-fill-button/caps-lock-indicator-should-be-visible-when-after-hiding-auto-fill-strong-password-button.html (238539 => 238540)


--- trunk/LayoutTests/fast/forms/auto-fill-button/caps-lock-indicator-should-be-visible-when-after-hiding-auto-fill-strong-password-button.html	2018-11-27 01:54:59 UTC (rev 238539)
+++ trunk/LayoutTests/fast/forms/auto-fill-button/caps-lock-indicator-should-be-visible-when-after-hiding-auto-fill-strong-password-button.html	2018-11-27 01:59:19 UTC (rev 238540)
@@ -1,55 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src=""
-<script>
-if (window.testRunner)
-    testRunner.waitUntilDone();
-</script>
-</head>
-<body>
-<p>This tests that the caps lock indicator is visible after hiding the Strong Password AutoFill button. It can only be tested in the test tool.</p>
-<input type="password" value="A quick brown fox jumped over the lazy dog.">
-<script>
-function done()
-{
-    if (window.testRunner)
-        testRunner.notifyDone();
-}
-
-function handleCapsLockEnabled(event)
-{
-    console.assert(event.key === "CapsLock");
-    let input = document.querySelector("input");
-    internals.setAutofilled(input, false);
-    internals.setShowAutoFillButton(input, "None");
-
-    // Move the caret is at the beginning of the field to ensure consistent test results.
-    input.setSelectionRange(0, 0);
-
-    // FIXME: For some reason it takes up to 100ms for the caps lock indicator to be painted (why?).
-    window.setTimeout(done, 100);
-}
-
-async function runTest()
-{
-    if (!window.internals)
-        return;
-
-    let input = document.querySelector("input");
-    internals.setAutofilled(input, true);
-    internals.setShowAutoFillButton(input, "StrongPassword");
-
-    function handleFocus(event) {
-        console.assert(event.target === input);
-        input.addEventListener("keydown", handleCapsLockEnabled, { once: true });
-        UIHelper.toggleCapsLock();
-    }
-    input.addEventListener("focus", handleFocus, { once: true });
-    UIHelper.activateElement(input);
-}
-
-runTest();
-</script>
-</body>
-</html>

Deleted: trunk/LayoutTests/fast/forms/auto-fill-button/caps-lock-indicator-should-not-be-visible-when-auto-fill-strong-password-button-is-visible-expected.html (238539 => 238540)


--- trunk/LayoutTests/fast/forms/auto-fill-button/caps-lock-indicator-should-not-be-visible-when-auto-fill-strong-password-button-is-visible-expected.html	2018-11-27 01:54:59 UTC (rev 238539)
+++ trunk/LayoutTests/fast/forms/auto-fill-button/caps-lock-indicator-should-not-be-visible-when-auto-fill-strong-password-button-is-visible-expected.html	2018-11-27 01:59:19 UTC (rev 238540)
@@ -1,30 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src=""
-<script>
-if (window.testRunner)
-    testRunner.waitUntilDone();
-</script>
-</head>
-<body>
-<p>This tests that the caps lock indicator is not visible when the Strong Password AutoFill button is shown. It can only be tested in the test tool.</p>
-<input type="password" value="A quick brown fox jumped over the lazy dog.">
-<script>
-async function runTest()
-{
-    if (!window.internals)
-        return;
-
-    let input = document.querySelector("input");
-    internals.setAutofilled(input, true);
-    internals.setShowAutoFillButton(input, "StrongPassword");
-
-    input.addEventListener("focus", () => testRunner.notifyDone(), { once: true });
-    await UIHelper.activateElement(input);
-}
-
-runTest();
-</script>
-</body>
-</html>

Deleted: trunk/LayoutTests/fast/forms/auto-fill-button/caps-lock-indicator-should-not-be-visible-when-auto-fill-strong-password-button-is-visible.html (238539 => 238540)


--- trunk/LayoutTests/fast/forms/auto-fill-button/caps-lock-indicator-should-not-be-visible-when-auto-fill-strong-password-button-is-visible.html	2018-11-27 01:54:59 UTC (rev 238539)
+++ trunk/LayoutTests/fast/forms/auto-fill-button/caps-lock-indicator-should-not-be-visible-when-auto-fill-strong-password-button-is-visible.html	2018-11-27 01:59:19 UTC (rev 238540)
@@ -1,48 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src=""
-<script>
-if (window.testRunner)
-    testRunner.waitUntilDone();
-</script>
-</head>
-<body>
-<p>This tests that the caps lock indicator is not visible when the Strong Password AutoFill button is shown. It can only be tested in the test tool.</p>
-<input type="password" value="A quick brown fox jumped over the lazy dog.">
-<script>
-function done()
-{
-    if (window.testRunner)
-        testRunner.notifyDone();
-}
-
-function handleCapsLockEnabled(event)
-{
-    console.assert(event.key === "CapsLock");
-    // FIXME: For some reason it takes up to 100ms for the caps lock indicator to be painted (why?).
-    window.setTimeout(done, 100);
-}
-
-async function runTest()
-{
-    if (!window.internals)
-        return;
-
-    let input = document.querySelector("input");
-    internals.setAutofilled(input, true);
-    internals.setShowAutoFillButton(input, "StrongPassword");
-
-    function handleFocus(event) {
-        console.assert(event.target === input);
-        input.addEventListener("keydown", handleCapsLockEnabled, { once: true });
-        UIHelper.toggleCapsLock();
-    }
-    input.addEventListener("focus", handleFocus, { once: true });
-    UIHelper.activateElement(input);
-}
-
-runTest();
-</script>
-</body>
-</html>

Modified: trunk/LayoutTests/platform/mac-wk2/TestExpectations (238539 => 238540)


--- trunk/LayoutTests/platform/mac-wk2/TestExpectations	2018-11-27 01:54:59 UTC (rev 238539)
+++ trunk/LayoutTests/platform/mac-wk2/TestExpectations	2018-11-27 01:59:19 UTC (rev 238540)
@@ -68,8 +68,6 @@
 webkit.org/b/184569 storage/indexeddb/modern/transactions-stop-on-navigation.html [ Pass Failure ]
 
 [ Mojave+ ] fast/events/detect-caps-lock.html [ Pass ]
-[ Mojave+ ] fast/forms/auto-fill-button/caps-lock-indicator-should-be-visible-when-after-hiding-auto-fill-strong-password-button.html [ Pass ]
-[ Mojave+ ] fast/forms/auto-fill-button/caps-lock-indicator-should-not-be-visible-when-auto-fill-strong-password-button-is-visible.html [ Pass ]
 [ Mojave+ ] fast/repaint/placeholder-after-caps-lock-hidden.html [ Pass ]
 [ Mojave+ ] fast/forms/password-scrolled-after-caps-lock-toggled.html [ Pass ]
 

Modified: trunk/Source/WebCore/ChangeLog (238539 => 238540)


--- trunk/Source/WebCore/ChangeLog	2018-11-27 01:54:59 UTC (rev 238539)
+++ trunk/Source/WebCore/ChangeLog	2018-11-27 01:59:19 UTC (rev 238540)
@@ -1,3 +1,14 @@
+2018-11-26  Ryan Haddad  <[email protected]>
+
+        Unreviewed, rolling out r238357.
+
+        One of the layout tests added with this change is failing on Mojave.
+
+        Reverted changeset:
+        "REGRESSION (r238078): Do not draw caps lock indicator when Strong Password button is shown"
+        https://bugs.webkit.org/show_bug.cgi?id=191969
+        https://trac.webkit.org/changeset/238513
+
 2018-11-26  Tim Horton  <[email protected]>
 
         Insert <attachment> elements under editable images to make their backing data accessible

Modified: trunk/Source/WebCore/html/TextFieldInputType.cpp (238539 => 238540)


--- trunk/Source/WebCore/html/TextFieldInputType.cpp	2018-11-27 01:54:59 UTC (rev 238539)
+++ trunk/Source/WebCore/html/TextFieldInputType.cpp	2018-11-27 01:59:19 UTC (rev 238540)
@@ -724,9 +724,6 @@
     if (element()->isDisabledOrReadOnly())
         return false;
 
-    if (element()->hasAutoFillStrongPasswordButton())
-        return false;
-
     RefPtr<Frame> frame = element()->document().frame();
     if (!frame)
         return false;
@@ -795,8 +792,6 @@
 
 void TextFieldInputType::updateAutoFillButton()
 {
-    capsLockStateMayHaveChanged();
-
     if (shouldDrawAutoFillButton()) {
         if (!m_container)
             createContainer();
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to