mochitest --repeat breaks ContentSearch
Categories
(Firefox :: Search, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox86 | --- | fixed |
People
(Reporter: mak, Assigned: standard8)
Details
(Whiteboard: [fxsearch])
Attachments
(1 file)
(deleted),
text/x-phabricator-request
|
Details |
Reporter | ||
Updated•8 years ago
|
Comment 1•8 years ago
|
||
Comment 2•8 years ago
|
||
Reporter | ||
Comment 3•8 years ago
|
||
Reporter | ||
Updated•8 years ago
|
Assignee | ||
Comment 4•5 years ago
|
||
I just tried ./mach mochitest browser/modules/test/browser/browser_ContentSearch.js --verify
and ./mach mochitest browser/modules/test/browser/browser_ContentSearch.js --repeat 5
and it worked fine.
Do you know if there was a different test this was an issue on?
Reporter | ||
Comment 5•5 years ago
|
||
It was on any test using ContentSearch.jsm observers that are added by its init() call, so tests notifying these things:
https://searchfox.org/mozilla-central/rev/cce8b90aece0f42e5025e45282de16066eeaa662/browser/modules/ContentSearch.jsm#117
ContentSearch is initialized by browserGlue
https://searchfox.org/mozilla-central/rev/cce8b90aece0f42e5025e45282de16066eeaa662/browser/components/BrowserGlue.jsm#578
"shutdown-leaks-before-check" is fired here
https://searchfox.org/mozilla-central/rev/cce8b90aece0f42e5025e45282de16066eeaa662/testing/mochitest/browser-test.js#890
ContentSearch is listening for that here
https://searchfox.org/mozilla-central/rev/cce8b90aece0f42e5025e45282de16066eeaa662/browser/modules/ContentSearch.jsm#220
The problem is apparently there yet, maybe something changed in the last 3 years so that either --repeat doesn't send anymore "shutdown-leaks-before-check" or ContentSearch.jsm doesn't listen properly for it, or browser_ContentSearch.js doesn't test the observers added in init().
Assignee | ||
Comment 6•4 years ago
|
||
The only thing I can see wrong here is that we're not removing the preference observer in cleanup. Given that browser_contentSearchUI.js is definitely invoking and using ContentSearch
, I think we should clean that up and call this done.
ContentSearch
is also now invoked as an actor, so I don't know if that might have changed how the interop works as well.
Assignee | ||
Comment 7•4 years ago
|
||
Assignee | ||
Updated•4 years ago
|
Comment 9•4 years ago
|
||
bugherder |
Description
•