Repository navigation
Conversation
|
You missed the special case for IPv6 hosts, but more importantly, this needs to get the origin, not just the url, and I'm not quite sure how those differ. |
I looks like the window's url seems the closest thing to an origin in Servo. |
|
The test for |
|
☔ The latest upstream changes (presumably #6757) made this pull request unmergeable. Please resolve the merge conflicts. |
|
Any updates on this? |
|
There are a couple small changes we should make, but otherwise I'm fine with this implementation! Reviewed 2 of 2 files at r1, 2 of 2 files at r2, 1 of 1 files at r3, 1 of 1 files at r4. components/script/dom/document.rs, line 1186 [r1] (raw file): tests/wpt/mozilla/tests/mozilla/document_domain.html, line 21 [r3] (raw file): Comments from the review on Reviewable.io |
|
Thanks jdm, I will look into this over the weekend. |
|
Apologies for dragging this out for so long! |
4c96bef to
6d434c4
Compare
6d434c4 to
6342fa4
Compare
|
@jdm Ugh should not have squashed it, I guess. But it screwed up the rebase so the commits looked really funny. |
|
@bors-servo: r+ Reviewed 5 of 5 files at r5. Comments from the review on Reviewable.io |
|
📌 Commit 6342fa4 has been approved by |
Implement document.domain getter I think this might have the downside that assigning to document.domain will now throw in strict-mode. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6840) <!-- Reviewable:end -->
|
💔 Test failed - mac-rel-wpt |
|
|
Rebased in #8655. |
Implement document.domain getter Rebased from #6840 + test fixes. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8655) <!-- Reviewable:end -->
Implement document.domain getter Rebased from #6840 + test fixes. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8655) <!-- Reviewable:end -->
Implement document.domain getter Rebased from #6840 + test fixes. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8655) <!-- Reviewable:end -->
Implement document.domain getter Rebased from #6840 + test fixes. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8655) <!-- Reviewable:end -->
I think this might have the downside that assigning to document.domain will now throw in strict-mode.