Repository navigation
Add origin to Location and Url API. - #9367
Conversation
|
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @larsbergstrom (or someone else) soon. |
|
Nice work! There are a couple style issues picked up by |
|
@bors-servo: try |
Add origin to Location and Url API. The origin field is part of location and url spec but hasn't been implemented in servo yet. https://html.spec.whatwg.org/multipage/browsers.html#dom-location-origin https://url.spec.whatwg.org/#dom-url-origin All of the logic to calculate the url origin exists in https://github.com/servo/rust-url This review threads through rust-url origin implementation into the servo location and url API. This fixes one websockets test: servo/tests/wpt/web-platform-tests/websockets/opening-handshake/003.html testing done: ./mach test-wpt tests/wpt/web-platform-tests/websockets/ I'm brand new to rust so feedback is appreciated, thanks! <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9367) <!-- Reviewable:end -->
|
💔 Test failed - linux-dev |
There was a problem hiding this comment.
The spec actually has the attribute bit line up here with subsequent lines, and we try to keep our WebIDL snippets as close to the spec as possible.
|
We don't seem to have any tests for |
|
☔ The latest upstream changes (presumably #9360) made this pull request unmergeable. Please resolve the merge conflicts. |
|
@Chandler: Check out the documentation for automatically updating the wpt expectations for an easy way to update all those fixed tests. |
|
@Chandler Could you add a test to tests/wpt/web-platform-tests/blob/master/html/browsers/history/the-location-interface/ as well? The existing ones like location_hostname.html and location_port.html should provide a good model. You can use |
|
📌 Commit df6d25c has been approved by |
Add origin to Location and Url API. The origin field is part of location and url spec but hasn't been implemented in servo yet. https://html.spec.whatwg.org/multipage/browsers.html#dom-location-origin https://url.spec.whatwg.org/#dom-url-origin All of the logic to calculate the url origin exists in https://github.com/servo/rust-url This review threads through rust-url origin implementation into the servo location and url API. This fixes one websockets test: servo/tests/wpt/web-platform-tests/websockets/opening-handshake/003.html testing done: ./mach test-wpt tests/wpt/web-platform-tests/websockets/ I'm brand new to rust so feedback is appreciated, thanks! <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9367) <!-- Reviewable:end -->
|
💔 Test failed - linux-rel |
|
Oh look, the port thing was tested: |
|
@bors-servo: r+ |
|
📌 Commit 1ee9ccb has been approved by |
Add origin to Location and Url API. The origin field is part of location and url spec but hasn't been implemented in servo yet. https://html.spec.whatwg.org/multipage/browsers.html#dom-location-origin https://url.spec.whatwg.org/#dom-url-origin All of the logic to calculate the url origin exists in https://github.com/servo/rust-url This review threads through rust-url origin implementation into the servo location and url API. This fixes one websockets test: servo/tests/wpt/web-platform-tests/websockets/opening-handshake/003.html testing done: ./mach test-wpt tests/wpt/web-platform-tests/websockets/ I'm brand new to rust so feedback is appreciated, thanks! <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9367) <!-- Reviewable:end -->
|
💔 Test failed - linux-rel |
|
⚡ Previous build results for android, gonk, linux-dev, mac-dev-unit, mac-rel-css, mac-rel-wpt are reusable. Rebuilding only linux-rel... |
|
☀️ Test successful - android, gonk, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt |
The origin field is part of location and url spec but hasn't been implemented in servo yet.
https://html.spec.whatwg.org/multipage/browsers.html#dom-location-origin
https://url.spec.whatwg.org/#dom-url-origin
All of the logic to calculate the url origin exists in https://github.com/servo/rust-url
This review threads through rust-url origin implementation into the servo location and url API.
This fixes one websockets test:
servo/tests/wpt/web-platform-tests/websockets/opening-handshake/003.html
testing done:
./mach test-wpt tests/wpt/web-platform-tests/websockets/
I'm brand new to rust so feedback is appreciated, thanks!