Closed Bug 2092560 Opened 14 days ago Closed 11 days ago

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)

task

Tracking

()

RESOLVED FIXED
162 Branch
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.

Blocks: 2092575

Unregistering the mock factory left the contract ID without a factory, so the test threw when run again in the same browser.

Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/c162fbaad376 https://hg.mozilla.org/integration/autoland/rev/25bc0927530b Map the helper app dialog contract ID back to its original factory at the end of test_bug1266815.html, r=masayuki.
Status: ASSIGNED → RESOLVED
Closed: 11 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
QA Whiteboard: [qa-triage-done-c163/b162]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: