Fix test_bug1036214.html to work with Fission
Categories
(Core :: DOM: Bindings (WebIDL), task, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox70 | --- | fixed |
People
(Reporter: mccr8, Assigned: mccr8)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
test_bug1036214.html checks that various cases throw in the cross-origin case. These throw in different ways when done cross-process. As was done in bug 1572895 for test_bug505915.html, I think it makes sense to change the origin to one that will not be cross-process.
Assignee | ||
Comment 1•5 years ago
|
||
This tests that various DOM things fail when done
cross-origin. They'll fail in a different way if done cross-process,
so change the origin used so that it is same-process, but
cross-origin, even with Fission.
Updated•5 years ago
|
Assignee | ||
Comment 2•5 years ago
|
||
test_crossOriginWindowSymbolAccess.html is basically the same thing.
Comment 3•5 years ago
|
||
(In reply to Andrew McCreight [:mccr8] from comment #1)
Created attachment 9086719 [details]
Bug 1575272 - Fix DOM bindings tests to work with Fission.This tests that various DOM things fail when done
cross-origin. They'll fail in a different way if done cross-process,
so change the origin used so that it is same-process, but
cross-origin, even with Fission.
This worries me a bit. They should fail the same way whether in-process or out of process. I think we really do need to test both cross-origin-cross-process documents and cross-origin-same-process objects.
Or, at least, some of them. We'll never have a cross-origin-cross-process document, for instance. But we definitely will have cross-origin-cross-process Window and Location objects, and we should probably be sure that they behave exactly the same way as their same-process counterparts do...
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 4•5 years ago
|
||
(In reply to Kris Maglione [:kmag] from comment #3)
This worries me a bit. They should fail the same way whether in-process or out of process. I think we really do need to test both cross-origin-cross-process documents and cross-origin-same-process objects.
That's a fair point, that we should test for something in the Fission case. I can add some additional tests for the cases that we'd expect to work with Fission, which would exclude "xoObjects.push(SpecialPowers.unwrap(SpecialPowers.wrap(window[0]).document));". I think the other big difference is that the exception that gets thrown is different for the Fission case.
Updated•5 years ago
|
Comment 6•5 years ago
|
||
bugherder |
Comment 7•5 years ago
|
||
Andrew, did we file a bug for adding the tests as discussed in comment 4?
Updated•5 years ago
|
Description
•