Closed
Bug 1746709
Opened 3 years ago
Closed 3 years ago
Use `ChromeUtils.import` with one parameter in test_GMPInstallManager.js
Categories
(Toolkit :: Add-ons Manager, task, P5)
Toolkit
Add-ons Manager
Tracking
()
RESOLVED
FIXED
97 Branch
Tracking | Status | |
---|---|---|
firefox97 | --- | fixed |
People
(Reporter: mathew.hodson, Assigned: mathew.hodson)
References
Details
Attachments
(1 file)
Passing a scope or null as the second argument to ChromeUtils.import(..., null) causes behaviour that we don't want now. As we look towards a new module system we need to prevent this behaviour.
In https://phabricator.services.mozilla.com/D127387, @robwu wrote:
There is another user of
computeHash
, at https://searchfox.org/mozilla-central/rev/1dab956095020c53aa66cbee8845eb1fa925b75c/toolkit/modules/tests/xpcshell/test_GMPInstallManager.js#537The scope is also used to override the
createXHR
method. You could also get rid of that use by introducing a new method that takes thexhr
parameter as input, to replace the XHR method:
Assignee | ||
Comment 1•3 years ago
|
||
Export new ProductAddonCheckerTestUtils
for methods only used by
tests.
Updated•3 years ago
|
Assignee: nobody → mathew.hodson
Status: NEW → ASSIGNED
Updated•3 years ago
|
Priority: -- → P5
Updated•3 years ago
|
Severity: -- → N/A
Pushed by rob@robwu.nl:
https://hg.mozilla.org/integration/autoland/rev/8ea2d48172e1
Use `ChromeUtils.import` with one parameter in test_GMPInstallManager.js. r=robwu
Comment 3•3 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
status-firefox97:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 97 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•