Bug 1218152 - Make Window.caches and WorkerGlobalScope.caches SameObject; r=bzbarsky
authorEhsan Akhgari <ehsan@mozilla.com>
Sat, 24 Oct 2015 23:32:15 -0400
changeset 269673 097d7c881a891078e951d7b2720d4470aa98a9ed
parent 269672 d8ee0cbc97cca4fe032c72cd1c2b206116851b16
child 269674 253416fea6438c102e6d9c5c3b2c6f04fe62896e
push id29587
push usercbook@mozilla.com
push dateTue, 27 Oct 2015 09:56:28 +0000
treeherdermozilla-central@9a8f2342fb31 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbzbarsky
bugs1218152
milestone44.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1218152 - Make Window.caches and WorkerGlobalScope.caches SameObject; r=bzbarsky
dom/webidl/Window.webidl
dom/webidl/WorkerGlobalScope.webidl
--- a/dom/webidl/Window.webidl
+++ b/dom/webidl/Window.webidl
@@ -261,17 +261,17 @@ Window implements SpeechSynthesisGetter;
 interface WindowModal {
   [Throws, Func="nsGlobalWindow::IsModalContentWindow"] readonly attribute any dialogArguments;
   [Throws, Func="nsGlobalWindow::IsModalContentWindow"] attribute any returnValue;
 };
 Window implements WindowModal;
 
 // https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#self-caches
 partial interface Window {
-[Throws, Func="mozilla::dom::cache::CacheStorage::PrefEnabled"]
+[Throws, Func="mozilla::dom::cache::CacheStorage::PrefEnabled", SameObject]
 readonly attribute CacheStorage caches;
 };
 
 // Mozilla-specific stuff
 partial interface Window {
   //[NewObject, Throws] CSSStyleDeclaration getDefaultComputedStyle(Element elt, optional DOMString pseudoElt = "");
   [NewObject, Throws] CSSStyleDeclaration? getDefaultComputedStyle(Element elt, optional DOMString pseudoElt = "");
 
--- a/dom/webidl/WorkerGlobalScope.webidl
+++ b/dom/webidl/WorkerGlobalScope.webidl
@@ -35,17 +35,17 @@ partial interface WorkerGlobalScope {
   [Throws]
   void importScripts(DOMString... urls);
 
   readonly attribute WorkerNavigator navigator;
 };
 
 // https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#self-caches
 partial interface WorkerGlobalScope {
-[Throws, Func="mozilla::dom::cache::CacheStorage::PrefEnabled"]
+[Throws, Func="mozilla::dom::cache::CacheStorage::PrefEnabled", SameObject]
 readonly attribute CacheStorage caches;
 };
 
 WorkerGlobalScope implements WindowTimers;
 WorkerGlobalScope implements WindowBase64;
 WorkerGlobalScope implements GlobalFetch;
 WorkerGlobalScope implements IDBEnvironment;
 WorkerGlobalScope implements ImageBitmapFactories;