Closed Bug 1312919 Opened 8 years ago Closed 8 years ago

"ReferenceError: SpecialPowers is not defined" error while running test_bug383369.html

Categories

(Core :: Security: PSM, defect, P1)

defect

Tracking

()

RESOLVED FIXED
mozilla52
Tracking Status
firefox52 --- fixed

People

(Reporter: RyanVM, Assigned: keeler)

References

Details

(Whiteboard: [psm-assigned])

Attachments

(1 file)

I noticed this while looking at a mochitest-5 log recently. David, any chance you could take a look?

https://treeherder.mozilla.org/logviewer.html#?job_id=29895050&repo=try

16:41:09     INFO -  1066 INFO TEST-START | security/manager/ssl/tests/mochitest/mixedcontent/test_bug383369.html
16:41:10     INFO -  ++DOMWINDOW == 15 (0E92E400) [pid = 2104] [serial = 15] [outer = 0E4E3C00]
16:41:10     INFO -  ++DOCSHELL 0E935000 == 4 [pid = 2104] [id = 4]
16:41:10     INFO -  ++DOMWINDOW == 16 (0E935400) [pid = 2104] [serial = 16] [outer = 00000000]
16:41:10     INFO -  ++DOMWINDOW == 17 (0E938400) [pid = 2104] [serial = 17] [outer = 0E935400]
16:41:10     INFO -  ++DOMWINDOW == 18 (0E93B000) [pid = 2104] [serial = 18] [outer = 0E935400]
16:41:10     INFO -  ++DOMWINDOW == 19 (0EA85C00) [pid = 2104] [serial = 19] [outer = 0E935400]
16:41:10     INFO -  --DOCSHELL 18BF8400 == 6 [pid = 3992] [id = 5]
16:41:10     INFO -  JavaScript error: http://example.com/tests/SimpleTest/SimpleTest.js, line 48: Error: Permission denied to access property "TestRunner"
16:41:11     INFO -  JavaScript error: , line 0: SpecialPowersError: Error while executing chrome script '<loadChromeScript anonymous function>':
16:41:11     INFO -  ReferenceError: SpecialPowers is not defined
16:41:11     INFO -  <loadChromeScript anonymous function>:43
16:41:11     INFO -  [Parent 3992] WARNING: NS_ENSURE_TRUE(mIsPending) failed: file c:/builds/moz2_slave/try-w32-d-00000000000000000000/build/src/netwerk/protocol/http/nsHttpChannel.cpp, line 8060
16:41:11     INFO -  [Parent 3992] WARNING: The dialog should nullify the dialog progress listener: file c:/builds/moz2_slave/try-w32-d-00000000000000000000/build/src/uriloader/exthandler/nsExternalHelperAppService.cpp, line 2176
16:41:11     INFO -  ++DOMWINDOW == 20 (0EA8E400) [pid = 2104] [serial = 20] [outer = 0E935400]
16:41:11     INFO -  JavaScript error: http://example.com/tests/SimpleTest/SimpleTest.js, line 48: Error: Permission denied to access property "TestRunner"
16:41:11     INFO -  ++DOMWINDOW == 21 (0EA8F400) [pid = 2104] [serial = 21] [outer = 0E935400]
16:41:12     INFO -  JavaScript error: https://example.com/tests/SimpleTest/SimpleTest.js, line 48: Error: Permission denied to access property "TestRunner"
16:41:12     INFO -  MEMORY STAT | vsize 263MB | vsizeMaxContiguous 435MB | residentFast 120MB | heapAllocated 24MB
16:41:12     INFO -  1067 INFO TEST-OK | security/manager/ssl/tests/mochitest/mixedcontent/test_bug383369.html | took 2299ms
Flags: needinfo?(dkeeler)
Ah, whoops. Don't need to use SpecialPowers in chrome code.
Assignee: nobody → dkeeler
Blocks: 1269812
Flags: needinfo?(dkeeler)
Priority: -- → P1
Whiteboard: [psm-assigned]
Comment on attachment 8804849 [details]
bug 1312919 - fix test_bug383369.html to not use SpecialPowers in chrome code

https://reviewboard.mozilla.org/r/88694/#review88880
Attachment #8804849 - Flags: review?(mgoodwin) → review+
Pushed by dkeeler@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/30939b7409ab
fix test_bug383369.html to not use SpecialPowers in chrome code r=mgoodwin
https://hg.mozilla.org/mozilla-central/rev/30939b7409ab
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: