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/. */
// https://html.spec.whatwg.org/multipage/#location
[Exposed=(Window,Worker), Unforgeable] interface Location {
[Exposed=Window, Unforgeable] interface Location {
/*stringifier*/ attribute USVString href;
readonly attribute USVString origin;
attribute USVString protocol;