Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 988c6a663e9a57f38025b5010074da3362b7455d
https://github.com/WebKit/WebKit/commit/988c6a663e9a57f38025b5010074da3362b7455d
Author: Karl Dubost <[email protected]>
Date: 2026-07-01 (Wed, 01 Jul 2026)
Changed paths:
M Source/WebCore/page/Quirks.cpp
Log Message:
-----------
[Quirks] mms.pinduoduo.com shows Safari a "your browser is not Chrome"
interstitial
https://bugs.webkit.org/show_bug.cgi?id=318201
rdar://180551491
Reviewed by Brent Fulgham.
The Pinduoduo merchant back-office at mms.pinduoduo.com parses
navigator.userAgent with ua-parser-js and overlays a "your browser is not
Chrome" modal whenever the detected browser name is outside {Chrome, Edge, IE},
blocking Safari. The check reads the user-agent string (not
navigator.userAgentData), and ua-parser-js evaluates its generic chrome/<v>
rule before its Safari rule, so a UA carrying a Chrome token is reported
as
Chrome and the gate passes.
Add a host-scoped entry to needsCustomUserAgentOverride() that splices a Chrome
token into Safari's user agent preserving Safari's identity tokens.
Scoped to the host mms.pinduoduo.com rather than the pinduoduo.com
registrable domain so the consumer storefront and other subdomains are
unaffected.
* Source/WebCore/page/Quirks.cpp:
Canonical link:
https://flagged.apple.com:443/proxy?t2=dU8L4D3Rv5&o=aHR0cHM6Ly9jb21taXRzLndlYmtpdC5vcmcvMzE2MzM2QG1haW4=&emid=648a9eee-e6a5-45c2-9567-03866914ffca&c=11
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications