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

Changeset 255469 in webkit


Ignore:
Timestamp:
Jan 30, 2020, 4:30:14 PM (7 years ago)
Author:
timothy_horton@apple.com
Message:

Add a quirk to opt Twitter out of the non-overlaid minimized input view
https://bugs.webkit.org/show_bug.cgi?id=207021
<rdar://problem/59016252>

Reviewed by Wenson Hsieh.

  • page/Quirks.cpp:

(WebCore::Quirks::shouldAvoidResizingWhenInputViewBoundsChange const):
Twitter has a content breakpoint that sits immediately between the size
of the Safari content area on a 11" iPad in landscape with the App Banner
visible and the same minus the height of the minimized input view that
we display when using a hardware keyboard. This breakpoint removes the
login field, causing the keyboard to dismiss, the input view to disappear,
and the page to resize to the larger size. This results in a loop,
so we must opt Twitter out of the content-avoiding input view mechanism.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r255468 r255469  
     12020-01-30  Tim Horton  <timothy_horton@apple.com>
     2
     3        Add a quirk to opt Twitter out of the non-overlaid minimized input view
     4        https://bugs.webkit.org/show_bug.cgi?id=207021
     5        <rdar://problem/59016252>
     6
     7        Reviewed by Wenson Hsieh.
     8
     9        * page/Quirks.cpp:
     10        (WebCore::Quirks::shouldAvoidResizingWhenInputViewBoundsChange const):
     11        Twitter has a content breakpoint that sits immediately between the size
     12        of the Safari content area on a 11" iPad in landscape with the App Banner
     13        visible and the same minus the height of the minimized input view that
     14        we display when using a hardware keyboard. This breakpoint removes the
     15        login field, causing the keyboard to dismiss, the input view to disappear,
     16        and the page to resize to the larger size. This results in a loop,
     17        so we must opt Twitter out of the content-avoiding input view mechanism.
     18
    1192020-01-30  Justin Fan  <justin_fan@apple.com>
    220
  • trunk/Source/WebCore/page/Quirks.cpp

    r254574 r255469  
    422422        return true;
    423423
     424    if (equalLettersIgnoringASCIICase(host, "twitter.com") || host.endsWithIgnoringASCIICase(".twitter.com"))
     425        return true;
     426
    424427    if (host.endsWithIgnoringASCIICase(".sharepoint.com"))
    425428        return true;
Note: See TracChangeset for help on using the changeset viewer.