aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls/Location.webidl
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/webidls/Location.webidl')
-rw-r--r--components/script/dom/webidls/Location.webidl6
1 files changed, 4 insertions, 2 deletions
diff --git a/components/script/dom/webidls/Location.webidl b/components/script/dom/webidls/Location.webidl
index 4120fc2731d..4d9fe2239f2 100644
--- a/components/script/dom/webidls/Location.webidl
+++ b/components/script/dom/webidls/Location.webidl
@@ -4,7 +4,8 @@
// https://html.spec.whatwg.org/multipage/#location
[Exposed=Window, Unforgeable] interface Location {
- [Throws] stringifier attribute USVString href;
+ [Throws, CrossOriginWritable]
+ stringifier attribute USVString href;
[Throws] readonly attribute USVString origin;
[Throws] attribute USVString protocol;
[Throws] attribute USVString host;
@@ -15,7 +16,8 @@
[Throws] attribute USVString hash;
[Throws] void assign(USVString url);
- [Throws] void replace(USVString url);
+ [Throws, CrossOriginCallable]
+ void replace(USVString url);
[Throws] void reload();
//[SameObject] readonly attribute USVString[] ancestorOrigins;