mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
feat(script): add CrossOrigin*able
attributes to Window
and Location
's members
This commit is contained in:
parent
863c90acd8
commit
1d970b1351
2 changed files with 19 additions and 16 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue