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 269689 d67a59a199664e8430d7553e7ba1c9afca76e5bd
parent 269688 2d428d8ed0986e8ace0762d591669a308cb39a54
child 269690 d8ee0cbc97cca4fe032c72cd1c2b206116851b16
push id15905
push usercbook@mozilla.com
push dateTue, 27 Oct 2015 09:59:36 +0000
treeherderfx-team@60acc8a9cfb5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbzbarsky
bugs1218150
milestone44.0a1
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";
 };