Title: [246100] branches/safari-608.1.27-branch/Source/WebCore
Revision
246100
Author
bshaf...@apple.com
Date
2019-06-04 23:34:56 -0700 (Tue, 04 Jun 2019)

Log Message

Cherry-pick r246099. rdar://problem/48006291

    iPadOS: Google calendars new event picker moves and flickers in landscape with software keyboard
    https://bugs.webkit.org/show_bug.cgi?id=198556

    Reviewed by Wenson Hsieh.

    Fix the issuse that it's really hard to create a new event using Google calendar on iPadOS with
    a software keyboard enabled because tapping on date brings up software keyboard and erratically
    shifts up/down the new event dialog/pane.

    Add a site specific quirk to pretend these input elements have inputmode=none for now.

    No new tests since this is a site specific quirk.

    * page/Quirks.cpp:
    (WebCore::Quirks::needsInputModeNoneImplicitly const):

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

Modified Paths

Diff

Modified: branches/safari-608.1.27-branch/Source/WebCore/ChangeLog (246099 => 246100)


--- branches/safari-608.1.27-branch/Source/WebCore/ChangeLog	2019-06-05 06:09:24 UTC (rev 246099)
+++ branches/safari-608.1.27-branch/Source/WebCore/ChangeLog	2019-06-05 06:34:56 UTC (rev 246100)
@@ -1,3 +1,44 @@
+2019-06-04  Babak Shafiei  <bshaf...@apple.com>
+
+        Cherry-pick r246099. rdar://problem/48006291
+
+    iPadOS: Google calendars new event picker moves and flickers in landscape with software keyboard
+    https://bugs.webkit.org/show_bug.cgi?id=198556
+    
+    Reviewed by Wenson Hsieh.
+    
+    Fix the issuse that it's really hard to create a new event using Google calendar on iPadOS with
+    a software keyboard enabled because tapping on date brings up software keyboard and erratically
+    shifts up/down the new event dialog/pane.
+    
+    Add a site specific quirk to pretend these input elements have inputmode=none for now.
+    
+    No new tests since this is a site specific quirk.
+    
+    * page/Quirks.cpp:
+    (WebCore::Quirks::needsInputModeNoneImplicitly const):
+    
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@246099 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2019-06-04  Ryosuke Niwa  <rn...@webkit.org>
+
+            iPadOS: Google calendars new event picker moves and flickers in landscape with software keyboard
+            https://bugs.webkit.org/show_bug.cgi?id=198556
+
+            Reviewed by Wenson Hsieh.
+
+            Fix the issuse that it's really hard to create a new event using Google calendar on iPadOS with
+            a software keyboard enabled because tapping on date brings up software keyboard and erratically
+            shifts up/down the new event dialog/pane.
+
+            Add a site specific quirk to pretend these input elements have inputmode=none for now.
+
+            No new tests since this is a site specific quirk.
+
+            * page/Quirks.cpp:
+            (WebCore::Quirks::needsInputModeNoneImplicitly const):
+
 2019-06-03  Babak Shafiei  <bshaf...@apple.com>
 
         Cherry-pick r246042. rdar://problem/50667125

Modified: branches/safari-608.1.27-branch/Source/WebCore/page/Quirks.cpp (246099 => 246100)


--- branches/safari-608.1.27-branch/Source/WebCore/page/Quirks.cpp	2019-06-05 06:09:24 UTC (rev 246099)
+++ branches/safari-608.1.27-branch/Source/WebCore/page/Quirks.cpp	2019-06-05 06:34:56 UTC (rev 246100)
@@ -338,6 +338,17 @@
     if (!needsQuirks())
         return false;
 
+    if (element.hasTagName(HTMLNames::inputTag)) {
+        if (!equalLettersIgnoringASCIICase(m_document->url().host(), "calendar.google.com"))
+            return false;
+        static NeverDestroyed<QualifiedName> dataInitialValueAttr(nullAtom(), "data-initial-value", nullAtom());
+        static NeverDestroyed<QualifiedName> dataPreviousValueAttr(nullAtom(), "data-previous-value", nullAtom());
+
+        return equalLettersIgnoringASCIICase(element.attributeWithoutSynchronization(HTMLNames::autocompleteAttr), "off")
+            && element.hasAttributeWithoutSynchronization(dataInitialValueAttr)
+            && element.hasAttributeWithoutSynchronization(dataPreviousValueAttr);
+    }
+
     if (!element.hasTagName(HTMLNames::textareaTag))
         return false;
 
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to