Bug 1365537 - Worker and SharedWorker Constructors should receive the URL parameter as a USVString, r=smaug
authorAndrea Marchesini <amarchesini@mozilla.com>
Wed, 17 May 2017 14:21:45 +0200
changeset 358824 f1ffecc195a5edae84a363c85b5b085fc94ab9a0
parent 358823 1627485da92e28dcb2513f631eaedf44826574a2
child 358825 2e7b01803f7941159d41d39df9ee79e35c8a8458
push id31839
push userkwierso@gmail.com
push dateWed, 17 May 2017 21:55:52 +0000
treeherdermozilla-central@2c783a7b6d05 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1365537
milestone55.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 1365537 - Worker and SharedWorker Constructors should receive the URL parameter as a USVString, r=smaug
dom/webidl/SharedWorker.webidl
dom/webidl/Worker.webidl
--- a/dom/webidl/SharedWorker.webidl
+++ b/dom/webidl/SharedWorker.webidl
@@ -1,12 +1,12 @@
 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/.
  */
 
-[Constructor(DOMString scriptURL, optional DOMString name)]
+[Constructor(USVString scriptURL, optional DOMString name)]
 interface SharedWorker : EventTarget {
     readonly attribute MessagePort port;
 };
 
 SharedWorker implements AbstractWorker;
--- a/dom/webidl/Worker.webidl
+++ b/dom/webidl/Worker.webidl
@@ -7,27 +7,27 @@
  * http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html
  *
  * © 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),
+[Constructor(USVString scriptURL),
  Func="mozilla::dom::workers::WorkerPrivate::WorkerAvailable",
  Exposed=(Window,DedicatedWorker,SharedWorker,System)]
 interface Worker : EventTarget {
   void terminate();
 
   [Throws]
   void postMessage(any message, optional sequence<object> transfer = []);
 
   attribute EventHandler onmessage;
 };
 
 Worker implements AbstractWorker;
 
-[Constructor(DOMString scriptURL),
+[Constructor(USVString scriptURL),
  Func="mozilla::dom::workers::ChromeWorkerPrivate::WorkerAvailable",
  Exposed=(Window,DedicatedWorker,SharedWorker,System)]
 interface ChromeWorker : Worker {
 };