Closed Bug 1551167 Opened 5 years ago Closed 5 years ago

All inspector sub-suites fail when run on a clean build `head.js import threw an exception`

Categories

(DevTools :: Inspector, defect)

defect
Not set
normal

Tracking

(firefox68 fixed)

RESOLVED FIXED
Firefox 68
Tracking Status
firefox68 --- fixed

People

(Reporter: jdescottes, Assigned: jdescottes)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

STRs:

  • ./mach clobber
  • ./mach build
  • ./mach test devtools/client/inspector/computed/test/browser_computed_search-filter_context-menu.js

Will fail with

Unexpected Results
------------------
devtools/client/inspector/computed/test/browser_computed_search-filter_context-menu.js
  FAIL head.js import threw an exception - Error opening input stream (invalid filename?): chrome://mochitests/content/browser/devtools/client/debugger/test/mochitest/helpers/context.js

Regression from Bug 1543821. This bug started importing a debugger script in inspector/test/head.js. However this head.js is reused in a lot of other subsuites of the inspector, so devtools/client/debugger/test/mochitest/helpers/context.js should be whitelisted in every browser.ini that imports inspector/test/head.js.

Importing scripts in shared head files is hard to maintain because all it forces all browser ini that use the shared file to whitelist all its imports.
The debugger context helper is almost unused in the inspector, so it would be easier to just import it in the few tests that require it.
Also removed the whitelist entry in rules' browser.ini, no test in this suite used it.

Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/87e01787d465
Move import of mochitest/helpers/context.js to test instead of head.js r=pbro
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 68
Assignee: nobody → jdescottes
Has Regression Range: --- → yes
Keywords: regression
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: