зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1489844 - Port DOMPrefs to StaticPrefs - part 12 - dom.push.enabled, r=ehsan
This commit is contained in:
Родитель
eb04a59fb8
Коммит
50429ea3ae
|
@ -19,7 +19,6 @@
|
|||
// * This defines DOMPrefs::FooBar(JSContext* aCx, JSObject* aObj);
|
||||
// This is allows the use of DOMPrefs in WebIDL files.
|
||||
|
||||
DOM_PREF(PushEnabled, "dom.push.enabled")
|
||||
DOM_PREF(StreamsEnabled, "dom.streams.enabled")
|
||||
DOM_PREF(OffscreenCanvasEnabled, "gfx.offscreencanvas.enabled")
|
||||
DOM_PREF(WebkitBlinkDirectoryPickerEnabled, "dom.webkitBlink.dirPicker.enabled")
|
||||
|
@ -41,7 +40,7 @@ DOM_WEBIDL_PREF2(dom_webnotifications_requireinteraction_enabled)
|
|||
DOM_WEBIDL_PREF2(dom_serviceWorkers_enabled)
|
||||
DOM_WEBIDL_PREF2(dom_storageManager_enabled)
|
||||
DOM_WEBIDL_PREF2(dom_promise_rejection_events_enabled)
|
||||
DOM_WEBIDL_PREF(PushEnabled)
|
||||
DOM_WEBIDL_PREF2(dom_push_enabled)
|
||||
DOM_WEBIDL_PREF(StreamsEnabled)
|
||||
DOM_WEBIDL_PREF(OffscreenCanvasEnabled)
|
||||
DOM_WEBIDL_PREF(WebkitBlinkDirectoryPickerEnabled)
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
*/
|
||||
|
||||
[Constructor(DOMString type, optional PushEventInit eventInitDict),
|
||||
Func="mozilla::dom::DOMPrefs::PushEnabled",
|
||||
Func="mozilla::dom::DOMPrefs::dom_push_enabled",
|
||||
Exposed=ServiceWorker]
|
||||
interface PushEvent : ExtendableEvent {
|
||||
readonly attribute PushMessageData? data;
|
||||
|
|
|
@ -22,7 +22,7 @@ interface PushManagerImpl {
|
|||
Promise<PushPermissionState> permissionState(optional PushSubscriptionOptionsInit options);
|
||||
};
|
||||
|
||||
[Exposed=(Window,Worker), Func="mozilla::dom::DOMPrefs::PushEnabled",
|
||||
[Exposed=(Window,Worker), Func="mozilla::dom::DOMPrefs::dom_push_enabled",
|
||||
ChromeConstructor(DOMString scope)]
|
||||
interface PushManager {
|
||||
[Throws, UseCounter]
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
* https://w3c.github.io/push-api/
|
||||
*/
|
||||
|
||||
[Func="mozilla::dom::DOMPrefs::PushEnabled",
|
||||
[Func="mozilla::dom::DOMPrefs::dom_push_enabled",
|
||||
Exposed=ServiceWorker]
|
||||
interface PushMessageData
|
||||
{
|
||||
|
|
|
@ -36,7 +36,7 @@ dictionary PushSubscriptionInit
|
|||
BufferSource? appServerKey;
|
||||
};
|
||||
|
||||
[Exposed=(Window,Worker), Func="mozilla::dom::DOMPrefs::PushEnabled",
|
||||
[Exposed=(Window,Worker), Func="mozilla::dom::DOMPrefs::dom_push_enabled",
|
||||
ChromeConstructor(PushSubscriptionInit initDict)]
|
||||
interface PushSubscription
|
||||
{
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
* https://w3c.github.io/push-api/
|
||||
*/
|
||||
|
||||
[Exposed=(Window,Worker), Func="mozilla::dom::DOMPrefs::PushEnabled"]
|
||||
[Exposed=(Window,Worker), Func="mozilla::dom::DOMPrefs::dom_push_enabled"]
|
||||
interface PushSubscriptionOptions
|
||||
{
|
||||
[SameObject, Throws]
|
||||
|
|
|
@ -38,7 +38,7 @@ enum ServiceWorkerUpdateViaCache {
|
|||
|
||||
// https://w3c.github.io/push-api/
|
||||
partial interface ServiceWorkerRegistration {
|
||||
[Throws, Exposed=(Window,Worker), Func="mozilla::dom::DOMPrefs::PushEnabled"]
|
||||
[Throws, Exposed=(Window,Worker), Func="mozilla::dom::DOMPrefs::dom_push_enabled"]
|
||||
readonly attribute PushManager pushManager;
|
||||
};
|
||||
|
||||
|
|
|
@ -287,6 +287,13 @@ VARCACHE_PREF(
|
|||
RelaxedAtomicBool, false
|
||||
)
|
||||
|
||||
// Push
|
||||
VARCACHE_PREF(
|
||||
"dom.push.enabled",
|
||||
dom_push_enabled,
|
||||
RelaxedAtomicBool, false
|
||||
)
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
// Clear-Site-Data prefs
|
||||
//---------------------------------------------------------------------------
|
||||
|
|
|
@ -5105,7 +5105,6 @@ pref("dom.streams.enabled", false);
|
|||
|
||||
// Push
|
||||
|
||||
pref("dom.push.enabled", false);
|
||||
pref("dom.push.alwaysConnect", false);
|
||||
|
||||
pref("dom.push.loglevel", "Error");
|
||||
|
|
Загрузка…
Ссылка в новой задаче