зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1489844 - Port DOMPrefs to StaticPrefs - part 10 - dom.storageManager.enabled, r=ehsan
This commit is contained in:
Родитель
7cef10ddb5
Коммит
deaf03b28e
|
@ -19,7 +19,6 @@
|
|||
// * This defines DOMPrefs::FooBar(JSContext* aCx, JSObject* aObj);
|
||||
// This is allows the use of DOMPrefs in WebIDL files.
|
||||
|
||||
DOM_PREF(StorageManagerEnabled, "dom.storageManager.enabled")
|
||||
DOM_PREF(PromiseRejectionEventsEnabled, "dom.promise_rejection_events.enabled")
|
||||
DOM_PREF(PushEnabled, "dom.push.enabled")
|
||||
DOM_PREF(StreamsEnabled, "dom.streams.enabled")
|
||||
|
@ -41,7 +40,7 @@ DOM_WEBIDL_PREF2(dom_caches_enabled)
|
|||
DOM_WEBIDL_PREF2(dom_webnotifications_serviceworker_enabled)
|
||||
DOM_WEBIDL_PREF2(dom_webnotifications_requireinteraction_enabled)
|
||||
DOM_WEBIDL_PREF2(dom_serviceWorkers_enabled)
|
||||
DOM_WEBIDL_PREF(StorageManagerEnabled)
|
||||
DOM_WEBIDL_PREF2(dom_storageManager_enabled)
|
||||
DOM_WEBIDL_PREF(PromiseRejectionEventsEnabled)
|
||||
DOM_WEBIDL_PREF(PushEnabled)
|
||||
DOM_WEBIDL_PREF(StreamsEnabled)
|
||||
|
|
|
@ -93,7 +93,7 @@ interface NavigatorContentUtils {
|
|||
|
||||
[SecureContext, NoInterfaceObject, Exposed=(Window,Worker)]
|
||||
interface NavigatorStorage {
|
||||
[Func="mozilla::dom::DOMPrefs::StorageManagerEnabled"]
|
||||
[Func="mozilla::dom::DOMPrefs::dom_storageManager_enabled"]
|
||||
readonly attribute StorageManager storage;
|
||||
};
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
[SecureContext,
|
||||
Exposed=(Window,Worker),
|
||||
Func="mozilla::dom::DOMPrefs::StorageManagerEnabled"]
|
||||
Func="mozilla::dom::DOMPrefs::dom_storageManager_enabled"]
|
||||
interface StorageManager {
|
||||
[Throws]
|
||||
Promise<boolean> persisted();
|
||||
|
|
|
@ -265,6 +265,19 @@ VARCACHE_PREF(
|
|||
RelaxedAtomicBool, false
|
||||
)
|
||||
|
||||
// Enable Storage API for all platforms except Android.
|
||||
#if !defined(MOZ_WIDGET_ANDROID)
|
||||
# define PREF_VALUE true
|
||||
#else
|
||||
# define PREF_VALUE false
|
||||
#endif
|
||||
VARCACHE_PREF(
|
||||
"dom.storageManager.enabled",
|
||||
dom_storageManager_enabled,
|
||||
RelaxedAtomicBool, PREF_VALUE
|
||||
)
|
||||
#undef PREF_VALUE
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
// Clear-Site-Data prefs
|
||||
//---------------------------------------------------------------------------
|
||||
|
|
|
@ -5819,12 +5819,6 @@ pref("security.data_uri.block_toplevel_data_uri_navigations", true);
|
|||
// If true, all FTP subresource loads will be blocked.
|
||||
pref("security.block_ftp_subresources", true);
|
||||
|
||||
// Enable Storage API for all platforms except Android.
|
||||
#if !defined(MOZ_WIDGET_ANDROID)
|
||||
pref("dom.storageManager.enabled", true);
|
||||
#else
|
||||
pref("dom.storageManager.enabled", false);
|
||||
#endif
|
||||
pref("dom.storageManager.prompt.testing", false);
|
||||
pref("dom.storageManager.prompt.testing.allow", false);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче