-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Implement Origin API #41106
Copy link
Copy link
Closed
Labels
A-content/scriptRelated to the script threadRelated to the script threadC-assignedThere is someone working on resolving the issueThere is someone working on resolving the issueE-less-complexStraightforward. Recommended for a new contributor.Straightforward. Recommended for a new contributor.
Description
To do so, add an Origin.webidl to https://github.com/servo/servo/tree/main/components/script_bindings/webidls which contains the IDL from the specification.
Then, implement the methods on OriginMethods using the same site implementation at
servo/components/net/http_loader.rs
Line 238 in e531770
| fn is_same_site(site_a: &ImmutableOrigin, site_b: &ImmutableOrigin) -> bool { |
same-origin can be done by comparing two origins with ==.
You can run the tests with ./mach test-wpt /html/browsers/origin/api/ and verify they are passing.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-content/scriptRelated to the script threadRelated to the script threadC-assignedThere is someone working on resolving the issueThere is someone working on resolving the issueE-less-complexStraightforward. Recommended for a new contributor.Straightforward. Recommended for a new contributor.