mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 05:11:03 +00:00
9e4ed9857d
- Bug 1183825 - Hide PushMessageData methods until we support sending push data. r=mt,smaug (c07f6b6c9) - Bug 1186880 - Performance timing api in workers should output entries if preference is enabled. r=baku (642bd335a) - Bug 1188091 - Fix the exposure of Push interfaces; r=dougt,bzbarsky,nsm Currently we don't check the dom.push.enabled pref in some cases for some of these interfaces. This patch unifies how all of these interfaces are exposed to Window, Worker, and ServiceWorker. (dbe4ebfcc) - Bug 1188062 - Unship Request.context; r=baku (6ca2ebcf6) - Bug 1162714 - Don't let YCM generate machc. r=ehsan (7c5f36c12) - Bug 1160897 - Fixing .ycm_extra_conf for Fennec. r=ehsan (22adf0705) - goanna->gecko (94b69bd6c) - improve (e87b53162) - Bug 1147939 - The expression decompiler can't assume that it's called directly from script. (r=bhackett) (4759a5210) - Bug 1188609 - Remove mirroring support from RokuApp (Toolkit) r=snorp (81a0bb66a) - Bug 1050749 - Expose BatteryManager via getBattery() returning a Promise. r=bz, r=baku, r=jgraham (67d2dd502) - Bug 1182347 - Remove nsIPrincipal::cookieJar. r=sicking (855d0e8ce) - remove double method, probably misspach (3c256c5b4) - Bug 1182357 - Add an API to mint nsExpandedPrincipals. r=mrbkap (42de17cfd) - Bug 1172080 - Part 1: Throw when requesting origin for poorly behaved URIs, r=bholley (c8410f3c6) - Bug 1124126 - Retry database connection for the case of corrupted permissions.sqlite. r=bsmedberg (748e9205a)
44 lines
1.4 KiB
Plaintext
44 lines
1.4 KiB
Plaintext
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*
|
|
* The origin of this IDL file is
|
|
* https://w3c.github.io/push-api/
|
|
*/
|
|
|
|
// Please see comments in dom/push/PushManager.h for the split between
|
|
// PushManagerImpl and PushManager.
|
|
[JSImplementation="@mozilla.org/push/PushManager;1",
|
|
NoInterfaceObject]
|
|
interface PushManagerImpl {
|
|
Promise<PushSubscription> subscribe();
|
|
Promise<PushSubscription?> getSubscription();
|
|
Promise<PushPermissionState> permissionState();
|
|
|
|
// We need a setter in the bindings so that the C++ can use it,
|
|
// but we don't want it exposed to client JS. WebPushMethodHider
|
|
// always returns false.
|
|
[Func="ServiceWorkerRegistration::WebPushMethodHider"] void setScope(DOMString scope);
|
|
};
|
|
|
|
[Exposed=(Window,Worker), Func="nsContentUtils::PushEnabled"]
|
|
interface PushManager {
|
|
[ChromeOnly, Throws, Exposed=Window]
|
|
void setPushManagerImpl(PushManagerImpl store);
|
|
|
|
[Throws]
|
|
Promise<PushSubscription> subscribe();
|
|
[Throws]
|
|
Promise<PushSubscription?> getSubscription();
|
|
[Throws]
|
|
Promise<PushPermissionState> permissionState();
|
|
};
|
|
|
|
enum PushPermissionState
|
|
{
|
|
"granted",
|
|
"denied",
|
|
"prompt"
|
|
};
|