test_bug1266815.html fails when run twice in the same browser: the helper app dialog contract ID is left without a factory
Categories
(Core :: DOM: Editor, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: florian, Assigned: florian)
References
Details
Attachments
(1 external file)
editor/composer/test/test_bug1266815.html registers a mock nsIHelperAppLauncherDialog factory for @mozilla.org/helperapplauncherdialog;1 under a new CID. Afterwards it only unregisters that factory, so the contract ID stays mapped to a CID with no factory.
When the test runs again in the same browser (as the upcoming mochitest-chrome repeat jobs do), its top-level Components.ID(Cc["@mozilla.org/helperapplauncherdialog;1"].number) throws NS_ERROR_XPC_BAD_CONVERT_JS: Could not convert JavaScript argument.
The fix re-registers the original CID with a null factory after unregistering the mock, which maps the contract ID back to the real dialog.
| Assignee | ||
Comment 1•14 days ago
|
||
Unregistering the mock factory left the contract ID without a factory, so the test threw when run again in the same browser.
Comment 3•11 days ago
|
||
| bugherder | ||
Updated•19 hours ago
|
Description
•