feat(script): add CrossOrigin*able attributes to Window and Location's members

This commit is contained in:
yvt 2021-07-10 21:43:37 +09:00
parent 863c90acd8
commit 1d970b1351
2 changed files with 19 additions and 16 deletions

View file

@ -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;