Expose Location only in Window

This commit is contained in:
Anthony Ramine 2017-01-21 02:57:22 +01:00
parent 03d79185ff
commit a5acf50b58
3 changed files with 1 additions and 7 deletions

View file

@ -3,7 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage/#location // https://html.spec.whatwg.org/multipage/#location
[Exposed=(Window,Worker), Unforgeable] interface Location { [Exposed=Window, Unforgeable] interface Location {
/*stringifier*/ attribute USVString href; /*stringifier*/ attribute USVString href;
readonly attribute USVString origin; readonly attribute USVString origin;
attribute USVString protocol; attribute USVString protocol;

View file

@ -1,5 +0,0 @@
[002.worker.html]
type: testharness
[The Location interface object should not be exposed.]
expected: FAIL

View file

@ -32,7 +32,6 @@ test_interfaces([
"Headers", "Headers",
"History", "History",
"ImageData", "ImageData",
"Location",
"MediaError", "MediaError",
"MessageEvent", "MessageEvent",
"MimeType", "MimeType",