Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upFix Location.SetHref for Iframe with no src #20906
Open
Labels
Comments
|
That's a fascinating test! For clarity:
|
|
The problem here may actually be the implementation of Location::SetHref. The spec says to use the entry settings object as the base URL, while we're using the location's window object's URL. We should be using the entry_global API instead. |
Eijebong
added a commit
to Eijebong/servo
that referenced
this issue
Oct 11, 2018
Now the /html/browsers/browsing-the-web/navigating-across-documents/005.htm test is itermittent too for the same reason as 006.htm See servo#21382 Fixes servo#20906
Eijebong
added a commit
to Eijebong/servo
that referenced
this issue
Oct 11, 2018
Now the /html/browsers/browsing-the-web/navigating-across-documents/005.htm test is itermittent too for the same reason as 006.htm See servo#21382 Fixes servo#20906
bors-servo
added a commit
that referenced
this issue
Oct 12, 2018
Use the global entry url in Location::SetHref Now the /html/browsers/browsing-the-web/navigating-across-documents/005.htm test is itermittent too for the same reason as 006.htm See #21382 Fixes #20906 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21926) <!-- Reviewable:end -->
|
#21926 was an attempt to fix this that hit some surprising test failures that need to be investigated. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
test: "/html/browsers/browsing-the-web/navigating-across-documents/005.html"
code:
servo/components/script/dom/location.rs
Line 165 in d23bc4f
spec: https://html.spec.whatwg.org/multipage/#attr-iframe-src
Current error:
Error at http://web-platform.test:8000/html/browsers/browsing-the-web/navigating-across-documents/005.html:1:1 Couldn't parse URL: relative URL with a cannot-be-a-base baseI guess one would have to parse the url related to the parent window when there is no src?
Or perhaps it's the test that should be updated, because the spec seems to read that the src should default to "about:blank" if unset.. https://html.spec.whatwg.org/multipage/#otherwise-steps-for-iframe-or-frame-elements