-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
HTML: document.open() and document's URL (with fragments) #10817
Conversation
The interesting thing is that if you reload this frame, it'll use the original URL, so that is preserved somehow. What probably happens is that reloading is based in history entries (except in Safari, where reloading will give you nested |
For whatwg/html#3946. Adapts the basic test in #10817 for a number of advanced scenarios. Co-authored-by: Anne van Kesteren <annevk@annevk.nl>
For whatwg/html#3946. Adapts the basic test in #10817 for a number of advanced scenarios regarding document activity. Co-authored-by: Anne van Kesteren <annevk@annevk.nl>
For whatwg/html#3946. Adapts the basic test in #10817 for a number of advanced scenarios regarding document activity. Co-authored-by: Anne van Kesteren <annevk@annevk.nl>
8783e81
to
110d907
Compare
For whatwg/html#3970. Co-authored-by: Timothy Gu <timothygu99@gmail.com>
110d907
to
6b088b7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with suggestions
assert_equals(frame.contentWindow.location.href, urlSansHash); | ||
}); | ||
self.location.hash = "heya"; | ||
}, "document.open() and document's URL containing a fragment"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add "entry is not relevant" label
assert_equals(afterURL, frame.src); | ||
assert_equals(frame.contentDocument.URL, frame.src); | ||
}); | ||
}, "document.open() and document's URL containing a fragment (entry is current)"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/current/relevant as that's what the spec tests
window.testDone = t.step_func_done((beforeURL, afterURL) => { | ||
assert_equals(beforeURL, frame.src); | ||
assert_equals(afterURL, frame.src); | ||
assert_equals(frame.contentDocument.URL, frame.src); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test location.href in this test too?
This is another part of the effort to overhaul document.open() as outlined in #3818. Tests: web-platform-tests/wpt#10817. Fixes #2555.
…, a=testonly Automatic update from web-platform-testsHTML: document.open() and document's URL (#12636) For whatwg/html#3946. Adapts the basic test in web-platform-tests/wpt#10817 for a number of advanced scenarios regarding document activity. Co-authored-by: Anne van Kesteren <annevk@annevk.nl> -- wpt-commits: 312d71258a26bfa420f7eef100df4ef92d961483 wpt-pr: 12636
…, a=testonly Automatic update from web-platform-testsHTML: document.open() and document's URL (#12636) For whatwg/html#3946. Adapts the basic test in web-platform-tests/wpt#10817 for a number of advanced scenarios regarding document activity. Co-authored-by: Anne van Kesteren <annevk@annevk.nl> -- wpt-commits: 312d71258a26bfa420f7eef100df4ef92d961483 wpt-pr: 12636
This is another part of the effort to overhaul document.open() as outlined in whatwg#3818. Tests: web-platform-tests/wpt#10817. Fixes whatwg#2555.
This is another part of the effort to overhaul document.open() as outlined in whatwg#3818. Tests: web-platform-tests/wpt#10817. Fixes whatwg#2555.
…, a=testonly Automatic update from web-platform-testsHTML: document.open() and document's URL (#12636) For whatwg/html#3946. Adapts the basic test in web-platform-tests/wpt#10817 for a number of advanced scenarios regarding document activity. Co-authored-by: Anne van Kesteren <annevkannevk.nl> -- wpt-commits: 312d71258a26bfa420f7eef100df4ef92d961483 wpt-pr: 12636 UltraBlame original commit: 0aaff791b401b17dd832464bc94688c474a08ebc
…, a=testonly Automatic update from web-platform-testsHTML: document.open() and document's URL (#12636) For whatwg/html#3946. Adapts the basic test in web-platform-tests/wpt#10817 for a number of advanced scenarios regarding document activity. Co-authored-by: Anne van Kesteren <annevkannevk.nl> -- wpt-commits: 312d71258a26bfa420f7eef100df4ef92d961483 wpt-pr: 12636 UltraBlame original commit: 0aaff791b401b17dd832464bc94688c474a08ebc
…, a=testonly Automatic update from web-platform-testsHTML: document.open() and document's URL (#12636) For whatwg/html#3946. Adapts the basic test in web-platform-tests/wpt#10817 for a number of advanced scenarios regarding document activity. Co-authored-by: Anne van Kesteren <annevkannevk.nl> -- wpt-commits: 312d71258a26bfa420f7eef100df4ef92d961483 wpt-pr: 12636 UltraBlame original commit: 0aaff791b401b17dd832464bc94688c474a08ebc
For whatwg/html#3651.