Bug 1489844 - Port DOMPrefs to StaticPrefs - part 17 - dom.fetchObserver.enabled, r=ehsan

This commit is contained in:
Andrea Marchesini 2018-09-10 20:36:17 +02:00
Родитель 82b6a8da30
Коммит fda9223d0e
4 изменённых файлов: 9 добавлений и 4 удалений

Просмотреть файл

@ -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
//---------------------------------------------------------------------------