RESOLVED FIXED 186109
Add setting to allow override screen size to be disabled.
https://bugs.webkit.org/show_bug.cgi?id=186109
Summary Add setting to allow override screen size to be disabled.
Megan Gardner
Reported 2018-05-30 14:31:53 PDT
Add setting to allow override screen size to be disabled.
Attachments
Patch (6.52 KB, patch)
2018-05-30 14:41 PDT, Megan Gardner
no flags
Patch (6.52 KB, patch)
2018-05-30 15:16 PDT, Megan Gardner
no flags
Patch (6.61 KB, patch)
2018-05-30 16:27 PDT, Megan Gardner
no flags
Megan Gardner
Comment 1 2018-05-30 14:40:17 PDT
Megan Gardner
Comment 2 2018-05-30 14:41:36 PDT
Andy Estes
Comment 3 2018-05-30 14:53:49 PDT
Comment on attachment 341603 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=341603&action=review > Source/WebCore/page/DeprecatedGlobalSettings.cpp:75 > +bool DeprecatedGlobalSettings::gDisableScreenSizeOverride = true; Shouldn't this default to false? > Source/WebCore/page/Settings.yaml:154 > +disableScreenSizeOverride: > + initial: false I don't think you need this for global settings. > Source/WebKit/UIProcess/WebPageProxy.cpp:453 > + DeprecatedGlobalSettings::setDisableScreenSizeOverride(preferencesStore().getBoolValueForKey(WebPreferencesKey::disableScreenSizeOverrideKey())); Doesn't something need to send this setting to the web process?
Andy Estes
Comment 4 2018-05-30 15:14:33 PDT
(In reply to Andy Estes from comment #3) > Comment on attachment 341603 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=341603&action=review > > > Source/WebKit/UIProcess/WebPageProxy.cpp:453 > > + DeprecatedGlobalSettings::setDisableScreenSizeOverride(preferencesStore().getBoolValueForKey(WebPreferencesKey::disableScreenSizeOverrideKey())); > > Doesn't something need to send this setting to the web process? I guess not, because we always query screen size in the UI process (then pass it to the web process in WebPageCreationParameters)!
Megan Gardner
Comment 5 2018-05-30 15:16:17 PDT
Megan Gardner
Comment 6 2018-05-30 16:27:45 PDT
Wenson Hsieh
Comment 7 2018-05-31 13:51:06 PDT
Comment on attachment 341616 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=341616&action=review > Source/WebCore/page/Settings.yaml:153 > +disableScreenSizeOverride: I don't think we need this in Settings.yaml if we're putting this in DeprecatedGlobalSettings, since this will generate a derived getters and setters in Settings.
WebKit Commit Bot
Comment 8 2018-05-31 14:03:42 PDT
Comment on attachment 341616 [details] Patch Clearing flags on attachment: 341616 Committed r232372: <https://trac.webkit.org/changeset/232372>
WebKit Commit Bot
Comment 9 2018-05-31 14:03:43 PDT
All reviewed patches have been landed. Closing bug.
Sam Weinig
Comment 10 2018-05-31 16:28:59 PDT
Is there any way to achieve this without adding to DeprecatedGlobalSettings? The goal is to reduce usage of that class and eventually remove it, hence the 'Deprecated' part.
Megan Gardner
Comment 11 2018-05-31 16:35:43 PDT
There really isn't, given the places where override screen size is called from. This trajectory was cleared with Tim and Andy before it was embarked on.
Note You need to log in before you can comment on or make changes to this bug.