WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
208777
Create a flag to disable in-app browser quirks
https://bugs.webkit.org/show_bug.cgi?id=208777
Summary
Create a flag to disable in-app browser quirks
Brent Fulgham
Reported
2020-03-07 16:15:39 PST
Add a runtime flag to control whether we use quirks when performing loads for AppBound pages. This is on by default, with the goal of turning it off in a future update.
Attachments
Patch
(11.09 KB, patch)
2020-03-07 16:42 PST
,
Brent Fulgham
no flags
Details
Formatted Diff
Diff
Patch
(11.06 KB, patch)
2020-03-07 16:59 PST
,
Brent Fulgham
no flags
Details
Formatted Diff
Diff
Patch
(21.36 KB, patch)
2020-03-07 20:16 PST
,
Brent Fulgham
no flags
Details
Formatted Diff
Diff
Patch for landing
(19.26 KB, patch)
2020-03-07 20:50 PST
,
Brent Fulgham
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Brent Fulgham
Comment 1
2020-03-07 16:17:34 PST
<
rdar://problem/60062197
>
Brent Fulgham
Comment 2
2020-03-07 16:42:44 PST
Created
attachment 392913
[details]
Patch
Brent Fulgham
Comment 3
2020-03-07 16:59:30 PST
Created
attachment 392915
[details]
Patch
Alex Christensen
Comment 4
2020-03-07 18:05:42 PST
Comment on
attachment 392915
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=392915&action=review
> Source/WebKit/Shared/WebPreferencesDefaultValues.cpp:220 > +#endif
#else Otherwise we have unreachable code.
> Source/WebKit/Shared/WebProcessCreationParameters.h:128 > + bool needsInAppBrowserPrivacyQuirks { false };
Let's put this on the WebPageCreationParameters instead. Also, it needs to be serialized somewhere.
> Source/WebKit/WebProcess/WebProcess.cpp:475 > + WebCore::RuntimeEnabledFeatures::sharedFeatures().setNeedsInAppBrowserPrivacyQuirks(parameters.needsInAppBrowserPrivacyQuirks);
Instead of using RuntimeEnabledFeatures, let's just put a bool on WebPage.
Brent Fulgham
Comment 5
2020-03-07 19:45:19 PST
Comment on
attachment 392915
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=392915&action=review
>> Source/WebKit/Shared/WebProcessCreationParameters.h:128 >> + bool needsInAppBrowserPrivacyQuirks { false }; > > Let's put this on the WebPageCreationParameters instead. > Also, it needs to be serialized somewhere.
Whoops!
>> Source/WebKit/WebProcess/WebProcess.cpp:475 >> + WebCore::RuntimeEnabledFeatures::sharedFeatures().setNeedsInAppBrowserPrivacyQuirks(parameters.needsInAppBrowserPrivacyQuirks); > > Instead of using RuntimeEnabledFeatures, let's just put a bool on WebPage.
Done.
Brent Fulgham
Comment 6
2020-03-07 20:16:35 PST
Created
attachment 392934
[details]
Patch
Simon Fraser (smfr)
Comment 7
2020-03-07 20:44:27 PST
Comment on
attachment 392934
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=392934&action=review
> Source/WebKit/FeatureFlags/WebKit.plist:44 > + <key>NeedsInAppBrowserPrivacyQuirks</key> > + <dict> > + <key>Enabled</key> > + <true/> > + </dict>
Remove.
> Source/WebKit/Shared/WebPreferencesDefaultValues.cpp:223 > +bool defaultNeedsInAppBrowserPrivacyQuirks() > +{ > +#if HAVE(HAVE_SYSTEM_FEATURE_FLAGS) > + return os_feature_enabled(WebKit, NeedsInAppBrowserPrivacyQuirks); > +#else > return false; > +#endif > }
Remove.
Alex Christensen
Comment 8
2020-03-07 20:50:16 PST
Comment on
attachment 392934
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=392934&action=review
looks good.
> Source/WebKit/FeatureFlags/WebKit.plist:42 > + <key>Enabled</key>
This indentation is a little strange.
>> Source/WebKit/Shared/WebPreferencesDefaultValues.cpp:223 >> } > > Remove.
This is definitely used to get the default value from os_feature_enabled. If that's what's desired (and I think it is) then this must remain.
Brent Fulgham
Comment 9
2020-03-07 20:50:41 PST
Created
attachment 392936
[details]
Patch for landing
WebKit Commit Bot
Comment 10
2020-03-07 21:39:14 PST
Comment on
attachment 392936
[details]
Patch for landing Clearing flags on attachment: 392936 Committed
r258101
: <
https://trac.webkit.org/changeset/258101
>
WebKit Commit Bot
Comment 11
2020-03-07 21:39:16 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug