-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Test for specific cross-origin object exceptions #3699
Conversation
Reviewers for this pull request are: @Ms2ger, @ayg, @gsnedders, @jdm, @jgraham, @plehegar, @sideshowbarker, @zcorpan, and @zqzhang. |
@domenic @foolip this never ended up landing (or being reviewed), despite changes to the HTML Standard landing. Per https://github.com/w3c/web-platform-tests/commits/master/html/browsers/origin/cross-origin-objects/cross-origin-objects.html it seems some changes have been made to the copied resource as well. I'm not sure what the best way forward is at this point. |
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 % nits. I've compared with cross-origin-objects.html and the changes make sense.
It's a bit unusual to have two tests that test opposing things, but fine as long as they're eventually merged.
checkFunction(get_self_parent, Function.prototype); | ||
checkFunction(get_parent_A, Function.prototype); | ||
checkFunction(get_parent_B, B.Function.prototype); | ||
}, "Same-origin obsevers get different accessors for cross-origin Window"); |
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.
346fbd3 fixed this typo
addTest(function() { | ||
// Note: we do not check location.host as its default port semantics are hard to reflect statically | ||
assert_equals(location.hostname, host_info.ORIGINAL_HOST, 'Need to run the top-level test from domain ' + host_info.ORIGINAL_HOST); | ||
assert_equals(location.port, host_info.HTTP_PORT, 'Need to run the top-level test from port ' + host_info.HTTP_PORT); |
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.
a512b86#diff-3653aadabc8cf51dc268d3124880e58b makes it get_port(location)
Yeah, it's two tests because @bholley wants to distinguish between "needs to throw" and "needs to throw the correct exception", at least for now. I couldn't find a good way to do that within the same resource. |
This adds a new test to test for specific cross-origin object exceptions as discussed in whatwg/html#1727. Once this test is more widely implemented the cross-origin-objects.html resource can be replaced by it (as indicated within the resource).
9f7520e
to
fccf6a1
Compare
FirefoxTesting revision f4000c6 All results/html/browsers/origin/cross-origin-objects/cross-origin-objects-exceptions.html
|
@foolip okay now? |
ChromeTesting revision 0ab5333 All results/html/browsers/origin/cross-origin-objects/cross-origin-objects-exceptions.html
|
1 similar comment
ChromeTesting revision 0ab5333 All results/html/browsers/origin/cross-origin-objects/cross-origin-objects-exceptions.html
|
FirefoxTesting revision 0ab5333 All results/html/browsers/origin/cross-origin-objects/cross-origin-objects-exceptions.html
|
Tests for :dir() and shadow DOM for issue #3699 Co-authored-by: Brian Kardell <[email protected]> Co-authored-by: L. David Baron <[email protected]>
Tests for :dir() and shadow DOM for issue web-platform-tests#3699 Co-authored-by: Brian Kardell <[email protected]> Co-authored-by: L. David Baron <[email protected]>
Tests for :dir() and shadow DOM for issue web-platform-tests#3699 Co-authored-by: Brian Kardell <[email protected]> Co-authored-by: L. David Baron <[email protected]>
This adds a new test to test for specific cross-origin object
exceptions as discussed in whatwg/html#1727.
Once this test is more widely implemented the cross-origin-objects.html
resource can be replaced by it (as indicated within the resource).