Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6ee99ddf116e5a597fc14357479c523aee5ff29d
      
https://github.com/WebKit/WebKit/commit/6ee99ddf116e5a597fc14357479c523aee5ff29d
  Author: Karl Dubost <[email protected]>
  Date:   2025-04-02 (Wed, 02 Apr 2025)

  Changed paths:
    M Source/WebCore/page/Quirks.cpp
    M Source/WebCore/page/Quirks.h
    M Source/WebKit/UIProcess/ios/WebPageProxyIOS.mm

  Log Message:
  -----------
  Add Quirks for UA on iPad for tiktok.com
https://bugs.webkit.org/show_bug.cgi?id=290372
rdar://146977044

Reviewed by Brent Fulgham.

Currently TikTok is sniffing for Chrome UA in the
upload video section.
var e = navigator.userAgent.toLowerCase().match(/chrome\/(\d+)./);
And use this to display a message but without making
it explicit why this is needed. When adding a Chrome
string with a version number, the message can be
by-passed and the login is still working. This only
address the iPad side, a similar UA override needs
to be done for Safari on macOS.

* Source/WebCore/page/Quirks.cpp:
(WebCore::Quirks::needsCustomUserAgentOverride):
* Source/WebCore/page/Quirks.h:
* Source/WebKit/UIProcess/ios/WebPageProxyIOS.mm:
(WebKit::WebPageProxy::effectiveContentModeAfterAdjustingPolicies):

Canonical link: https://commits.webkit.org/293101@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to