servo: Merge #12537 - Partial fix for #12415: expose interfaces only where necessary (from ice9js:fix/expose-interfaces-only-where-necessary); r=Ms2ger
authorKuba Birecki <kuba.birecki@crystalplanet.io>
Sat, 23 Jul 2016 05:16:44 -0500
changeset 339354 0df3d53f6451769da7830ffd30046f99e67f9c2e
parent 339353 4fff433d8304cd9094767565dcb4044e6674bcfe
child 339355 79f919309daca97fb44f57df3c3ea31cf3fe2a1b
push id31307
push usergszorc@mozilla.com
push dateSat, 04 Feb 2017 00:59:06 +0000
treeherdermozilla-central@94079d43835f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMs2ger
servo: Merge #12537 - Partial fix for #12415: expose interfaces only where necessary (from ice9js:fix/expose-interfaces-only-where-necessary); r=Ms2ger Partial fix for #12415. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors <!-- Either: --> - [X] These changes do not require tests because they don't affect any features. <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Source-Repo: https://github.com/servo/servo Source-Revision: 7ea73ba2eec54e626db964eb3c943c2ba9b61466
servo/components/script/dom/webidls/HTMLAnchorElement.webidl
servo/components/script/dom/webidls/HTMLAppletElement.webidl
servo/components/script/dom/webidls/HTMLAreaElement.webidl
servo/components/script/dom/webidls/HTMLAudioElement.webidl
servo/components/script/dom/webidls/HTMLBRElement.webidl
servo/components/script/dom/webidls/HTMLBaseElement.webidl
servo/components/script/dom/webidls/HTMLBodyElement.webidl
servo/components/script/dom/webidls/HTMLButtonElement.webidl
servo/components/script/dom/webidls/HTMLDataElement.webidl
servo/components/script/dom/webidls/HTMLDataListElement.webidl
--- a/servo/components/script/dom/webidls/HTMLAnchorElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLAnchorElement.webidl
@@ -6,17 +6,16 @@
  * https://html.spec.whatwg.org/multipage/#the-a-element
  * https://html.spec.whatwg.org/multipage/#other-elements,-attributes-and-apis
  * © 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.
  */
 
 // https://html.spec.whatwg.org/multipage/#htmlanchorelement
-[Exposed=(Window,Worker)]
 interface HTMLAnchorElement : HTMLElement {
   attribute DOMString target;
   //         attribute DOMString download;
   //         attribute USVString ping;
   //         attribute DOMString rel;
   readonly attribute DOMTokenList relList;
   //         attribute DOMString hreflang;
   //         attribute DOMString type;
--- a/servo/components/script/dom/webidls/HTMLAppletElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLAppletElement.webidl
@@ -1,14 +1,13 @@
 /* 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/. */
 
 // https://html.spec.whatwg.org/multipage/#htmlappletelement
-[Exposed=(Window,Worker)]
 interface HTMLAppletElement : HTMLElement {
   //         attribute DOMString align;
   //         attribute DOMString alt;
   //         attribute DOMString archive;
   //         attribute DOMString code;
   //         attribute DOMString codeBase;
   //         attribute DOMString height;
   //         attribute unsigned long hspace;
--- a/servo/components/script/dom/webidls/HTMLAreaElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLAreaElement.webidl
@@ -1,14 +1,13 @@
 /* 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/. */
 
 // https://html.spec.whatwg.org/multipage/#htmlareaelement
-[Exposed=(Window,Worker)]
 interface HTMLAreaElement : HTMLElement {
   //         attribute DOMString alt;
   //         attribute DOMString coords;
   //         attribute DOMString shape;
   //         attribute DOMString target;
   //         attribute DOMString download;
   //         attribute USVString ping;
   //         attribute DOMString rel;
--- a/servo/components/script/dom/webidls/HTMLAudioElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLAudioElement.webidl
@@ -1,8 +1,7 @@
 /* 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/. */
 
 // https://html.spec.whatwg.org/multipage/#htmlaudioelement
 //[NamedConstructor=Audio(optional DOMString src)]
-[Exposed=(Window,Worker)]
 interface HTMLAudioElement : HTMLMediaElement {};
--- a/servo/components/script/dom/webidls/HTMLBRElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLBRElement.webidl
@@ -1,14 +1,13 @@
 /* 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/. */
 
 // https://html.spec.whatwg.org/multipage/#htmlbrelement
-[Exposed=(Window,Worker)]
 interface HTMLBRElement : HTMLElement {
   // also has obsolete members
 };
 
 // https://html.spec.whatwg.org/multipage/#HTMLBRElement-partial
 partial interface HTMLBRElement {
   //         attribute DOMString clear;
 };
--- a/servo/components/script/dom/webidls/HTMLBaseElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLBaseElement.webidl
@@ -1,10 +1,9 @@
 /* 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/. */
 
 // https://html.spec.whatwg.org/multipage/#htmlbaseelement
-[Exposed=(Window,Worker)]
 interface HTMLBaseElement : HTMLElement {
            attribute DOMString href;
 //           attribute DOMString target;
 };
--- a/servo/components/script/dom/webidls/HTMLBodyElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLBodyElement.webidl
@@ -1,14 +1,13 @@
 /* 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/. */
 
 // https://html.spec.whatwg.org/multipage/#the-body-element
-[Exposed=(Window,Worker)]
 interface HTMLBodyElement : HTMLElement {
   // also has obsolete members
 };
 HTMLBodyElement implements WindowEventHandlers;
 
 // https://html.spec.whatwg.org/multipage/#HTMLBodyElement-partial
 partial interface HTMLBodyElement {
     [TreatNullAs=EmptyString] attribute DOMString text;
--- a/servo/components/script/dom/webidls/HTMLButtonElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLButtonElement.webidl
@@ -1,14 +1,13 @@
 /* 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/. */
 
 // https://html.spec.whatwg.org/multipage/#htmlbuttonelement
-[Exposed=(Window,Worker)]
 interface HTMLButtonElement : HTMLElement {
   //         attribute boolean autofocus;
              attribute boolean disabled;
   readonly attribute HTMLFormElement? form;
              attribute DOMString formAction;
              attribute DOMString formEnctype;
              attribute DOMString formMethod;
              attribute boolean formNoValidate;
--- a/servo/components/script/dom/webidls/HTMLDataElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLDataElement.webidl
@@ -1,9 +1,8 @@
 /* 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/. */
 
 // https://html.spec.whatwg.org/multipage/#htmldataelement
-[Exposed=(Window,Worker)]
 interface HTMLDataElement : HTMLElement {
   //         attribute DOMString value;
 };
--- a/servo/components/script/dom/webidls/HTMLDataListElement.webidl
+++ b/servo/components/script/dom/webidls/HTMLDataListElement.webidl
@@ -1,9 +1,8 @@
 /* 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/. */
 
 // https://html.spec.whatwg.org/multipage/#htmldatalistelement
-[Exposed=(Window,Worker)]
 interface HTMLDataListElement : HTMLElement {
   readonly attribute HTMLCollection options;
 };