In order to make it possible to toggle the UA string override just for navigator.userAgent via Web Inspector, we need to put this behind the site specific quirks.
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>
<rdar://problem/47624338>