| Index: modules/serviceworkers/NavigatorServiceWorker.idl
|
| diff --git a/core/dom/PromiseResolver.idl b/modules/serviceworkers/NavigatorServiceWorker.idl
|
| similarity index 84%
|
| rename from core/dom/PromiseResolver.idl
|
| rename to modules/serviceworkers/NavigatorServiceWorker.idl
|
| index b67107018cbef7ff4bcabe631d5f2f403bbd9993..2747667e9bdfd2ba413112d0b32c026be3413820 100644
|
| --- a/core/dom/PromiseResolver.idl
|
| +++ b/modules/serviceworkers/NavigatorServiceWorker.idl
|
| @@ -27,12 +27,9 @@
|
| * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
| -
|
| [
|
| - GlobalContext=Window&WorkerGlobalScope,
|
| - EnabledAtRuntime=promise
|
| -] interface PromiseResolver {
|
| - [Custom] void fulfill(optional any value);
|
| - [Custom] void resolve(optional any value);
|
| - [Custom] void reject(optional any value);
|
| + EnabledAtRuntime=ServiceWorker
|
| +] partial interface Navigator {
|
| + [CallWith=ScriptExecutionContext, RaisesException] Promise registerServiceWorker(DOMString pattern, DOMString src);
|
| + [CallWith=ScriptExecutionContext, RaisesException] Promise unregisterServiceWorker(DOMString pattern);
|
| };
|
|
|