-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Location.SetHref for Iframe with no src #20906
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. |
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
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
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. |
So I imagine this is still relevant ? |
Yes. |
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 base
I 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
The text was updated successfully, but these errors were encountered: