Bug 1218150 - Mark the members of Clients as NewObject; r=bzbarsky

This commit is contained in:
Ehsan Akhgari 2015-10-24 23:23:11 -04:00
parent e3652e5d9c
commit 151691b2b6

View File

@ -11,11 +11,12 @@
[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();
};