Closed Bug 1392095 Opened 7 years ago Closed 7 years ago

Update browser/components/sessionstore/test/browser_739531.js to comply with new data: URI inheritance model

Categories

(Core :: DOM: Security, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
mozilla57
Tracking Status
firefox57 --- fixed

People

(Reporter: ckerschb, Assigned: ckerschb)

Details

(Whiteboard: [domsecurity-active])

Attachments

(1 file, 1 obsolete file)

No description provided.
Assignee: nobody → ckerschb
Blocks: 1324406
Priority: -- → P1
Whiteboard: [domsecurity-active]
I just realized that this test is failing occasionally when the pref is flipped by looking through a TRY push. This test has not shown up as failing on previous TRY runs. I guess the reason is that the test is very racy, because it simply relies on the fact that JS in the frame executes before executeSoon() on the main page fires. Anyway, this patch fixes at least the data: URI portion responsible for the failure. [1] https://treeherder.mozilla.org/#/jobs?repo=try&revision=7ca5a6b268ccc2559cf5bf0246965631caf05e84&selectedJob=124395602
Attachment #8899267 - Flags: review?(bugs)
No longer blocks: 1324406
Status: NEW → ASSIGNED
Attachment #8899267 - Flags: review?(bugs) → review+
Pushed by mozilla@christophkerschbaumer.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/b91870ea1243 Update browser/components/sessionstore/test/browser_739531.js to comply with new data: URI inheritance model. r=smaug
Backed out for failing browser/components/sessionstore/test/browser_739531.js: https://hg.mozilla.org/integration/mozilla-inbound/rev/1e98af12b02f07c39c20598cdf98f35374bde76a Failure log: https://treeherder.mozilla.org/logviewer.html#?job_id=124502388&repo=mozilla-inbound 09:16:54 INFO - 383 INFO TEST-START | browser/components/sessionstore/test/browser_739531.js 09:16:54 INFO - GECKO(2608) | ++DOCSHELL 29B2B000 == 133 [pid = 2608] [id = {71e4ae84-c9e0-44e1-b89d-c06e09ac1068}] 09:16:54 INFO - GECKO(2608) | ++DOMWINDOW == 581 (29B2C400) [pid = 2608] [serial = 1954] [outer = 00000000] 09:16:54 INFO - GECKO(2608) | ++DOMWINDOW == 582 (29D32800) [pid = 2608] [serial = 1955] [outer = 29B2C400] 09:16:54 INFO - GECKO(2608) | [2608] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80070057: file z:/build/build/src/netwerk/base/nsChannelClassifier.cpp, line 320 09:16:55 INFO - GECKO(2608) | ++DOMWINDOW == 583 (26E13000) [pid = 2608] [serial = 1956] [outer = 29B2C400] 09:16:55 INFO - GECKO(2608) | [2608] WARNING: We've already scheduled a task for background list flush.: file z:/build/build/src/parser/html/nsHtml5TreeOpExecutor.cpp, line 288 09:16:55 INFO - GECKO(2608) | ++DOCSHELL 268E4C00 == 134 [pid = 2608] [id = {f0d0fe84-dd68-430c-94d8-3e1d7ae8b34d}] 09:16:55 INFO - GECKO(2608) | ++DOMWINDOW == 584 (26E11C00) [pid = 2608] [serial = 1957] [outer = 00000000] 09:16:55 INFO - GECKO(2608) | ++DOMWINDOW == 585 (28416000) [pid = 2608] [serial = 1958] [outer = 26E11C00] 09:16:55 INFO - TEST-INFO | started process screenshot 09:16:55 INFO - TEST-INFO | screenshot: exit 0 09:16:55 ERROR - 384 INFO TEST-UNEXPECTED-FAIL | browser/components/sessionstore/test/browser_739531.js | uncaught exception - TypeError: Argument 1 of Document.adoptNode does not implement interface Node. at boom@http://mochi.test:8888/browser/browser/components/sessionstore/test/browser_739531_sample.html:16:3 09:16:55 INFO - onload@http://mochi.test:8888/browser/browser/components/sessionstore/test/browser_739531_sample.html:1:1 09:16:55 INFO - Stack trace: 09:16:55 INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:simpletestOnerror:1652
Flags: needinfo?(ckerschb)
The problem is that SimplePowers.wrap does not forward all the APIs, like in this case. In that case we have to go back and load the frame data from an external file like we did in other cases. I tested locally by commenting code within the main test file to make sure boom() executes before the onload fires. Works now.
Attachment #8899267 - Attachment is obsolete: true
Flags: needinfo?(ckerschb)
Attachment #8899464 - Flags: review+
Pushed by mozilla@christophkerschbaumer.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/fd7a7759990a Update browser/components/sessionstore/test/browser_739531.js to comply with new data: URI inheritance model. r=smaug
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: