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 231526 fe48916662d10e1b907d5c99c4f980743711721a
parent 231525 e04b01edb94473ba82046177b4660166b5ef5bf5
child 231527 376b134c1495543d5a57fc70de38d74e00629797
push id56289
push usercbook@mozilla.com
push dateTue, 03 Mar 2015 10:10:23 +0000
treeherdermozilla-inbound@376b134c1495 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbaku
bugs1137398
milestone39.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 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 {
 };