Bug 1137398 - disallow creating nested workers from ServiceWorker. r=baku
authorGiovanny Andres Gongora Granada <gioyik@gmail.com>
Fri, 27 Feb 2015 09:37:00 +0100
changeset 246975 fe48916662d10e1b907d5c99c4f980743711721a
parent 246974 e04b01edb94473ba82046177b4660166b5ef5bf5
child 246976 376b134c1495543d5a57fc70de38d74e00629797
push id884
push userdburns@mozilla.com
push dateTue, 03 Mar 2015 15:29:12 +0000
reviewersbaku
bugs1137398
milestone39.0a1
Bug 1137398 - disallow creating nested workers from ServiceWorker. r=baku
dom/webidl/Worker.webidl
--- a/dom/webidl/Worker.webidl
+++ b/dom/webidl/Worker.webidl
@@ -9,25 +9,25 @@
  * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and Opera
  * Software ASA.
  * You are granted a license to use, reproduce and create derivative works of
  * this document.
  */
 
 [Constructor(DOMString scriptURL),
  Func="mozilla::dom::workers::WorkerPrivate::WorkerAvailable",
- Exposed=(Window,Worker,System)]
+ Exposed=(Window,DedicatedWorker,SharedWorker,System)]
 interface Worker : EventTarget {
   void terminate();
 
   [Throws]
   void postMessage(any message, optional sequence<any> transfer);
 
   attribute EventHandler onmessage;
 };
 
 Worker implements AbstractWorker;
 
 [Constructor(DOMString scriptURL),
  Func="mozilla::dom::workers::ChromeWorkerPrivate::WorkerAvailable",
- Exposed=(Window,Worker,System)]
+ Exposed=(Window,DedicatedWorker,SharedWorker,System)]
 interface ChromeWorker : Worker {
 };