| Index: modules/serviceworkers/ServiceWorkerContainer.idl
|
| diff --git a/modules/serviceworkers/ServiceWorker.idl b/modules/serviceworkers/ServiceWorkerContainer.idl
|
| similarity index 85%
|
| copy from modules/serviceworkers/ServiceWorker.idl
|
| copy to modules/serviceworkers/ServiceWorkerContainer.idl
|
| index b58eb9005dc907d0e3b48c26e6d07c517ee0f85e..c6ab688c54e4466bab1267fcdb754c3126abf415 100644
|
| --- a/modules/serviceworkers/ServiceWorker.idl
|
| +++ b/modules/serviceworkers/ServiceWorkerContainer.idl
|
| @@ -27,8 +27,12 @@
|
| * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
| +
|
| [
|
| RuntimeEnabled=ServiceWorker,
|
| NoInterfaceObject
|
| -] interface ServiceWorker {
|
| +] interface ServiceWorkerContainer {
|
| + [CallWith=ExecutionContext, ImplementedAs=registerServiceWorker] Promise
|
| + register(DOMString url, optional Dictionary options);
|
| + [CallWith=ExecutionContext, ImplementedAs=unregisterServiceWorker] Promise unregister(optional DOMString scope);
|
| };
|
|
|