Summary: | User agent string override for navigator.userAgent should be site specific quirks | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Ryosuke Niwa <rniwa> | ||||||||||
Component: | WebKit2 | Assignee: | Ryosuke Niwa <rniwa> | ||||||||||
Status: | RESOLVED FIXED | ||||||||||||
Severity: | Normal | CC: | achristensen, beidson, bfulgham, cdumez, commit-queue, dbates, ews-watchlist, ggaren, hi, japhet, joepeck, webkit-bug-importer | ||||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||||
Version: | WebKit Nightly Build | ||||||||||||
Hardware: | Unspecified | ||||||||||||
OS: | Unspecified | ||||||||||||
See Also: | https://bugs.webkit.org/show_bug.cgi?id=193762 | ||||||||||||
Attachments: |
|
Description
Ryosuke Niwa
2019-01-28 19:41:47 PST
Created attachment 360425 [details]
Hides behind site specific quirks
Comment on attachment 360425 [details] Hides behind site specific quirks View in context: https://bugs.webkit.org/attachment.cgi?id=360425&action=review > Source/WebCore/loader/FrameLoader.cpp:2719 > + auto userAgent = documentLoader->customJavaScriptUserAgentAsSiteSpecificQuirks(); I don't think you want to declare it 'auto' here -- won't it go out of scope after this line? (In reply to Brent Fulgham from comment #2) > Comment on attachment 360425 [details] > Hides behind site specific quirks > > View in context: > https://bugs.webkit.org/attachment.cgi?id=360425&action=review > > > Source/WebCore/loader/FrameLoader.cpp:2719 > > + auto userAgent = documentLoader->customJavaScriptUserAgentAsSiteSpecificQuirks(); > > I don't think you want to declare it 'auto' here -- won't it go out of scope > after this line? Oh oops, I forgot to remove that auto after moving the code around. Created attachment 360429 [details]
Removed superflous auto
Comment on attachment 360429 [details]
Removed superflous auto
r=mews
Oops, I forgot to enable SiteSpecificQuirks in API tests. Created attachment 360430 [details]
Patch for landing
Comment on attachment 360430 [details]
Patch for landing
Wait for EWS
Created attachment 360437 [details]
Fixed iOS build
Committed r240646: <https://trac.webkit.org/changeset/240646> |