WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
68300
Don't use WebPreferences to set global settings
https://bugs.webkit.org/show_bug.cgi?id=68300
Summary
Don't use WebPreferences to set global settings
Simon Fraser (smfr)
Reported
2011-09-16 18:23:29 PDT
There are a few methods on WebPreferences that toggle globals (e.g. AVFoundationEnabled, ShouldPaintNativeControls, MockScrollbarsEnabled, ShouldUseHighResolutionTimers). These would be better as WebView class methods.
Attachments
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2011-09-17 13:29:41 PDT
WebPreferences is the thing that syncs with on-disk defaults, so they are all global. Am I confused?
mitz
Comment 2
2011-09-17 13:39:25 PDT
Standard WebPreferences are persistent by default. A WebView’s preferences can be the standard preferences or any other WebPreferences instance, which may or may not be persistent. The methods mentioned in the Description, however, take effect on all WebViews in the process, regardless of their preferences, and regardless of the WebPreference instance on which those methods are invoked.
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