Bug 68300 - Don't use WebPreferences to set global settings
Summary: Don't use WebPreferences to set global settings
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-16 18:23 PDT by Simon Fraser (smfr)
Modified: 2012-05-28 20:08 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Fraser (smfr) 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.
Comment 1 Alexey Proskuryakov 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?
Comment 2 mitz 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.