⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 246100 in webkit


Ignore:
Timestamp:
Jun 4, 2019, 11:34:56 PM (7 years ago)
Author:
bshafiei@apple.com
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

Location:
branches/safari-608.1.27-branch/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-608.1.27-branch/Source/WebCore/ChangeLog

    r246055 r246100  
     12019-06-04  Babak Shafiei  <bshafiei@apple.com>
     2
     3        Cherry-pick r246099. rdar://problem/48006291
     4
     5    iPadOS: Google calendars new event picker moves and flickers in landscape with software keyboard
     6    https://bugs.webkit.org/show_bug.cgi?id=198556
     7   
     8    Reviewed by Wenson Hsieh.
     9   
     10    Fix the issuse that it's really hard to create a new event using Google calendar on iPadOS with
     11    a software keyboard enabled because tapping on date brings up software keyboard and erratically
     12    shifts up/down the new event dialog/pane.
     13   
     14    Add a site specific quirk to pretend these input elements have inputmode=none for now.
     15   
     16    No new tests since this is a site specific quirk.
     17   
     18    * page/Quirks.cpp:
     19    (WebCore::Quirks::needsInputModeNoneImplicitly const):
     20   
     21   
     22    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@246099 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     23
     24    2019-06-04  Ryosuke Niwa  <rniwa@webkit.org>
     25
     26            iPadOS: Google calendars new event picker moves and flickers in landscape with software keyboard
     27            https://bugs.webkit.org/show_bug.cgi?id=198556
     28
     29            Reviewed by Wenson Hsieh.
     30
     31            Fix the issuse that it's really hard to create a new event using Google calendar on iPadOS with
     32            a software keyboard enabled because tapping on date brings up software keyboard and erratically
     33            shifts up/down the new event dialog/pane.
     34
     35            Add a site specific quirk to pretend these input elements have inputmode=none for now.
     36
     37            No new tests since this is a site specific quirk.
     38
     39            * page/Quirks.cpp:
     40            (WebCore::Quirks::needsInputModeNoneImplicitly const):
     41
    1422019-06-03  Babak Shafiei  <bshafiei@apple.com>
    243
  • branches/safari-608.1.27-branch/Source/WebCore/page/Quirks.cpp

    r245774 r246100  
    339339        return false;
    340340
     341    if (element.hasTagName(HTMLNames::inputTag)) {
     342        if (!equalLettersIgnoringASCIICase(m_document->url().host(), "calendar.google.com"))
     343            return false;
     344        static NeverDestroyed<QualifiedName> dataInitialValueAttr(nullAtom(), "data-initial-value", nullAtom());
     345        static NeverDestroyed<QualifiedName> dataPreviousValueAttr(nullAtom(), "data-previous-value", nullAtom());
     346
     347        return equalLettersIgnoringASCIICase(element.attributeWithoutSynchronization(HTMLNames::autocompleteAttr), "off")
     348            && element.hasAttributeWithoutSynchronization(dataInitialValueAttr)
     349            && element.hasAttributeWithoutSynchronization(dataPreviousValueAttr);
     350    }
     351
    341352    if (!element.hasTagName(HTMLNames::textareaTag))
    342353        return false;
Note: See TracChangeset for help on using the changeset viewer.