Bug 1218150 - Mark the members of Clients as NewObject; r=bzbarsky
authorEhsan Akhgari <ehsan@mozilla.com>
Sat, 24 Oct 2015 23:23:11 -0400
changeset 269597 d67a59a199664e8430d7553e7ba1c9afca76e5bd
parent 269596 2d428d8ed0986e8ace0762d591669a308cb39a54
child 269598 d8ee0cbc97cca4fe032c72cd1c2b206116851b16
push id67141
push usereakhgari@mozilla.com
push dateTue, 27 Oct 2015 03:00:28 +0000
treeherdermozilla-inbound@253416fea643 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbzbarsky
bugs1218150
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 1218150 - Mark the members of Clients as NewObject; r=bzbarsky
dom/webidl/Clients.webidl
--- a/dom/webidl/Clients.webidl
+++ b/dom/webidl/Clients.webidl
@@ -6,21 +6,22 @@
  * The origin of this IDL file is
  * http://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html
  *
  */
 
 [Exposed=ServiceWorker]
 interface Clients {
   // The objects returned will be new instances every time
-  [Throws]
+  [NewObject]
   Promise<sequence<Client>?> matchAll(optional ClientQueryOptions options);
-  [Throws, Func="mozilla::dom::workers::ServiceWorkerGlobalScope::OpenWindowEnabled"]
+  [NewObject,
+   Func="mozilla::dom::workers::ServiceWorkerGlobalScope::OpenWindowEnabled"]
   Promise<WindowClient> openWindow(USVString url);
-  [Throws]
+  [NewObject]
   Promise<void> claim();
 };
 
 dictionary ClientQueryOptions {
   boolean includeUncontrolled = false;
   ClientType type = "window";
 };