Changeset 248129 in webkit


Ignore:
Timestamp:
Aug 1, 2019 1:23:43 PM (5 years ago)
Author:
timothy_horton@apple.com
Message:

REGRESSION: HSBC Personal Banking download/print dialog is usually positioned off screen on iPad
https://bugs.webkit.org/show_bug.cgi?id=200356
<rdar://problem/51885199>

Reviewed by Beth Dakin.

  • UIProcess/ios/WebPageProxyIOS.mm:

(WebKit::desktopClassBrowsingRecommendedForRequest):
Add HSBC domains to the list of sites that recommend mobile mode by default.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r248121 r248129  
     12019-08-01  Tim Horton  <timothy_horton@apple.com>
     2
     3        REGRESSION: HSBC Personal Banking download/print dialog is usually positioned off screen on iPad
     4        https://bugs.webkit.org/show_bug.cgi?id=200356
     5        <rdar://problem/51885199>
     6
     7        Reviewed by Beth Dakin.
     8
     9        * UIProcess/ios/WebPageProxyIOS.mm:
     10        (WebKit::desktopClassBrowsingRecommendedForRequest):
     11        Add HSBC domains to the list of sites that recommend mobile mode by default.
     12
    1132019-08-01  Chris Dumez  <cdumez@apple.com>
    214
  • trunk/Source/WebKit/UIProcess/ios/WebPageProxyIOS.mm

    r247866 r248129  
    13151315        return false;
    13161316
     1317    if (host.containsIgnoringASCIICase("hsbc.")) {
     1318        if (equalLettersIgnoringASCIICase(host, "hsbc.com.au") || host.endsWithIgnoringASCIICase(".hsbc.com.au"))
     1319            return false;
     1320        if (equalLettersIgnoringASCIICase(host, "hsbc.com.eg") || host.endsWithIgnoringASCIICase(".hsbc.com.eg"))
     1321            return false;
     1322        if (equalLettersIgnoringASCIICase(host, "hsbc.lk") || host.endsWithIgnoringASCIICase(".hsbc.lk"))
     1323            return false;
     1324        if (equalLettersIgnoringASCIICase(host, "hsbc.co.uk") || host.endsWithIgnoringASCIICase(".hsbc.co.uk"))
     1325            return false;
     1326        if (equalLettersIgnoringASCIICase(host, "hsbc.com.hk") || host.endsWithIgnoringASCIICase(".hsbc.com.hk"))
     1327            return false;
     1328        if (equalLettersIgnoringASCIICase(host, "hsbc.com.mx") || host.endsWithIgnoringASCIICase(".hsbc.com.mx"))
     1329            return false;
     1330        if (equalLettersIgnoringASCIICase(host, "hsbc.ca") || host.endsWithIgnoringASCIICase(".hsbc.ca"))
     1331            return false;
     1332        if (equalLettersIgnoringASCIICase(host, "hsbc.com.ar") || host.endsWithIgnoringASCIICase(".hsbc.com.ar"))
     1333            return false;
     1334        if (equalLettersIgnoringASCIICase(host, "hsbc.com.ph") || host.endsWithIgnoringASCIICase(".hsbc.com.ph"))
     1335            return false;
     1336        if (equalLettersIgnoringASCIICase(host, "hsbc.com") || host.endsWithIgnoringASCIICase(".hsbc.com"))
     1337            return false;
     1338        if (equalLettersIgnoringASCIICase(host, "hsbc.com.cn") || host.endsWithIgnoringASCIICase(".hsbc.com.cn"))
     1339            return false;
     1340    }
     1341
    13171342    return true;
    13181343}
Note: See TracChangeset for help on using the changeset viewer.