зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1489844 - Port DOMPrefs to StaticPrefs - part 17 - dom.fetchObserver.enabled, r=ehsan
This commit is contained in:
Родитель
82b6a8da30
Коммит
fda9223d0e
|
@ -19,7 +19,6 @@
|
|||
// * This defines DOMPrefs::FooBar(JSContext* aCx, JSObject* aObj);
|
||||
// This is allows the use of DOMPrefs in WebIDL files.
|
||||
|
||||
DOM_PREF(FetchObserverEnabled, "dom.fetchObserver.enabled")
|
||||
DOM_PREF(ResistFingerprintingEnabled, "privacy.resistFingerprinting")
|
||||
DOM_PREF(EnableAutoDeclineCanvasPrompts, "privacy.resistFingerprinting.autoDeclineNoUserInputCanvasPrompts")
|
||||
DOM_PREF(DevToolsEnabled, "devtools.enabled")
|
||||
|
@ -41,7 +40,7 @@ DOM_WEBIDL_PREF2(dom_streams_enabled)
|
|||
DOM_WEBIDL_PREF2(gfx_offscreencanvas_enabled)
|
||||
DOM_WEBIDL_PREF2(dom_webkitBlink_dirPicker_enabled)
|
||||
DOM_WEBIDL_PREF2(dom_netinfo_enabled)
|
||||
DOM_WEBIDL_PREF(FetchObserverEnabled)
|
||||
DOM_WEBIDL_PREF2(dom_fetchObserver_enabled)
|
||||
DOM_WEBIDL_PREF(PerformanceObserverEnabled)
|
||||
DOM_WEBIDL_PREF(SchedulerTimingEnabled)
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ enum FetchState {
|
|||
};
|
||||
|
||||
[Exposed=(Window,Worker),
|
||||
Func="mozilla::dom::DOMPrefs::FetchObserverEnabled"]
|
||||
Func="mozilla::dom::DOMPrefs::dom_fetchObserver_enabled"]
|
||||
interface FetchObserver : EventTarget {
|
||||
readonly attribute FetchState state;
|
||||
|
||||
|
|
|
@ -60,7 +60,7 @@ dictionary RequestInit {
|
|||
|
||||
AbortSignal? signal;
|
||||
|
||||
[Func="mozilla::dom::DOMPrefs::FetchObserverEnabled"]
|
||||
[Func="mozilla::dom::DOMPrefs::dom_fetchObserver_enabled"]
|
||||
ObserverCallback observe;
|
||||
};
|
||||
|
||||
|
|
|
@ -326,6 +326,12 @@ VARCACHE_PREF(
|
|||
)
|
||||
#undef PREF_VALUE
|
||||
|
||||
VARCACHE_PREF(
|
||||
"dom.fetchObserver.enabled",
|
||||
dom_fetchObserver_enabled,
|
||||
RelaxedAtomicBool, false
|
||||
)
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
// Clear-Site-Data prefs
|
||||
//---------------------------------------------------------------------------
|
||||
|
|
Загрузка…
Ссылка в новой задаче