Closed Bug 1051157 Opened 11 years ago Closed 11 years ago

TEST-UNEXPECTED-FAIL, Exception caught: Permission denied to access property 'TestRunner', at: http://test1.example.org/tests/SimpleTest/SimpleTest.js (27), location: http://test1.example.org/tests/js/xpconnect/tests/mochitest/test_bug789713.html

Categories

(Testing :: Mochitest, defect)

defect
Not set
normal

Tracking

(firefox33 fixed, firefox34 fixed)

RESOLVED FIXED
mozilla34
Tracking Status
firefox33 --- fixed
firefox34 --- fixed

People

(Reporter: RyanVM, Assigned: martijn.martijn)

References

Details

Attachments

(1 file, 1 obsolete file)

This is showing up in all mochitest-4 runs, but is apparently non-fatal. Appears to have started when bug 1049999 landed (visible in the Try run too). https://tbpl.mozilla.org/php/getParsedLog.php?id=45566252&tree=Mozilla-Inbound Ubuntu VM 12.04 mozilla-inbound opt test mochitest-4 on 2014-08-08 15:44:17 PDT for push d8b1d2b3e762 slave: tst-linux32-spot-475 16:03:04 INFO - 1791 INFO TEST-START | /tests/js/xpconnect/tests/mochitest/test_bug789713.html 16:03:04 INFO - 1792 INFO TEST-UNEXPECTED-FAIL, Exception caught: Permission denied to access property 'TestRunner', at: http://test1.example.org/tests/SimpleTest/SimpleTest.js (27), location: http://test1.example.org/tests/js/xpconnect/tests/mochitest/test_bug789713.html 16:03:04 INFO - 1793 INFO JavaScript error: http://test1.example.org/tests/SimpleTest/SimpleTest.js, line 48: Permission denied to access property 'TestRunner' 16:03:04 INFO - 1794 INFO TEST-OK | /tests/js/xpconnect/tests/mochitest/test_bug789713.html | took 273ms
(In reply to Ryan VanderMeulen [:RyanVM UTC-4] from comment #0) > This is showing up in all mochitest-4 runs, but is apparently non-fatal. > Appears to have started when bug 1049999 landed (visible in the Try run too). Ugh, yeah, I see it :( Ahmed, why did this TEST-UNEXPECTED-FAIL not cause tbpl to go orange? That was the purpose of bug 1049999. I can see why the test is causing this, it should be easy fixable.
Flags: needinfo?(akachkach)
Never mind, I understand. Tbpl is relying on the summary to turn orange. In this case, the summary didn't count this orange, because we're dumping TEST-UNEXPECTED-FAIL directly out, without updating TestRunner UI. But we can't, because we can't access the TestRunner parent window when this happens, because that is what this bug is about. Perhaps, I misunderstood SimpleTest.js's philosophy and should it never, even when it tries to access a parent Window when it would cause an uncaught exception.
Flags: needinfo?(akachkach)
Attached patch 1051157.diff (obsolete) — Splinter Review
Probably better to just fix the test.
Attachment #8470566 - Flags: review?(bobbyholley)
Assignee: nobody → martijn.martijn
(In reply to Martijn Wargers [:mwargers] (QA) from comment #2) > Never mind, I understand. Tbpl is relying on the summary to turn orange. > In this case, the summary didn't count this orange, because we're dumping > TEST-UNEXPECTED-FAIL directly out, without updating TestRunner UI. But we > can't, because we can't access the TestRunner parent window when this > happens, because that is what this bug is about. > > Perhaps, I misunderstood SimpleTest.js's philosophy and should it never, > even when it tries to access a parent Window when it would cause an uncaught > exception. I've filed bug 1051775 for making this turn the run orange; let's use this bug just for the test_bug789713.html fix :-)
Depends on: 1051775
Comment on attachment 8470566 [details] [diff] [review] 1051157.diff Review of attachment 8470566 [details] [diff] [review]: ----------------------------------------------------------------- r=me with those fixes. ::: js/xpconnect/tests/mochitest/file_bug789713.html @@ +36,5 @@ > + window.parent.postMessage(pass, '*'); > +} > + > +// We can't set document.domain on mochi.test, because it's forbidden to set > +// document.domain to a TLD. This can all just go into the declarative part now: <iframe src="file_empty" onload="go()"></iframe> Make sure to move the <iframe> under the <script> tag when you do that. ::: js/xpconnect/tests/mochitest/test_bug789713.html @@ +42,4 @@ > pass = false; > } catch (e) { pass = pass && /Permission denied/.exec(e.message); } > window.parent.postMessage(pass, '*'); > } You can also remove go() now, right?
Attachment #8470566 - Flags: review?(bobbyholley) → review+
This is with the review comments addressed. (In reply to Bobby Holley (:bholley) from comment #5) > You can also remove go() now, right? Doh! Yes.
Attachment #8470566 - Attachment is obsolete: true
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: