Bug 1375457 - name should be a replaceable attribute in worker global scopes, r=bkelly a=jcristau
authorAndrea Marchesini <amarchesini@mozilla.com>
Wed, 28 Jun 2017 06:36:22 -0700
changeset 414180 6953478140f0f9e71503f751d401f448b18e0e23
parent 414179 82893ea5d603bdde7632741f4605fe6a271765a4
child 414181 cd65b8ea0761b578241f62ea651c27d08062f0b0
push id1490
push usermtabara@mozilla.com
push dateMon, 31 Jul 2017 14:08:16 +0000
treeherdermozilla-release@70e32e6bf15e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbkelly, jcristau
bugs1375457
milestone55.0
Bug 1375457 - name should be a replaceable attribute in worker global scopes, r=bkelly a=jcristau
dom/webidl/DedicatedWorkerGlobalScope.webidl
dom/webidl/SharedWorkerGlobalScope.webidl
testing/web-platform/meta/workers/interfaces/SharedWorkerGlobalScope/name/setting.html.ini
--- a/dom/webidl/DedicatedWorkerGlobalScope.webidl
+++ b/dom/webidl/DedicatedWorkerGlobalScope.webidl
@@ -10,16 +10,17 @@
  * Software ASA.
  * You are granted a license to use, reproduce and create derivative works of
  * this document.
  */
 
 [Global=(Worker,DedicatedWorker),
  Exposed=DedicatedWorker]
 interface DedicatedWorkerGlobalScope : WorkerGlobalScope {
+  [Replaceable]
   readonly attribute DOMString name;
 
   [Throws]
   void postMessage(any message, optional sequence<object> transfer = []);
 
   void close();
 
   attribute EventHandler onmessage;
--- a/dom/webidl/SharedWorkerGlobalScope.webidl
+++ b/dom/webidl/SharedWorkerGlobalScope.webidl
@@ -10,14 +10,15 @@
  * Software ASA.
  * You are granted a license to use, reproduce and create derivative works of
  * this document.
  */
 
 [Global=(Worker,SharedWorker),
  Exposed=SharedWorker]
 interface SharedWorkerGlobalScope : WorkerGlobalScope {
+  [Replaceable]
   readonly attribute DOMString name;
 
   void close();
 
   attribute EventHandler onconnect;
 };
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/meta/workers/interfaces/SharedWorkerGlobalScope/name/setting.html.ini
@@ -0,0 +1,4 @@
+[setting.html]
+  type: testharness
+  [setting name]
+    expected: FAIL