Auto merge of #13897 - scotttrinh:dom-webidl, r=jdm

Partial fix for #12415: DOM interfaces

<!-- Please describe your changes on the following line: -->
Fix exposure of DOM interfaces. Only two of the interfaces needed changing and I want someone to double check on `DOMException` (which I left exposed to both `Window` and `Worker`), but I used Firefox's definition as my source since the specs don't lay it out explicitly.

---
<!-- 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
- [X] These changes fix (partially) #12415  (github issue number if applicable).

<!-- Either: -->
- [X] These changes do not require tests because they only remove code.

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13897)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-10-23 12:21:11 -05:00 committed by GitHub
commit a1306e1dd3
3 changed files with 1 additions and 4 deletions

View file

@ -3,7 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage/#the-domstringmap-interface
[OverrideBuiltins, Exposed=(Window,Worker)]
[OverrideBuiltins]
interface DOMStringMap {
getter DOMString (DOMString name);
[Throws]

View file

@ -3,7 +3,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://dom.spec.whatwg.org/#domtokenlist
[Exposed=(Window,Worker)]
interface DOMTokenList {
[Pure]
readonly attribute unsigned long length;

View file

@ -20,8 +20,6 @@ test_interfaces([
"CustomEvent",
"DedicatedWorkerGlobalScope",
"DOMException",
"DOMTokenList",
"DOMStringMap",
"ErrorEvent",
"Event",
"EventTarget",