ExtensionTestUtils's extension.unload() should await the completion of closing extension windows/tabs.
Categories
(WebExtensions :: Android, task, P3)
Tracking
(Not tracked)
People
(Reporter: robwu, Assigned: robwu)
References
(Blocks 1 open bug)
Details
Some extension tests rely on the moz-extension: window to be closed at the end of a test, and will otherwise trip the "Test left extra windows or tabs" message (well, if it were to be supported on GeckoView - bug 1565700).
Closing tabs is however asynchronous, so to avoid intermittent test failures, the async extension.unload()
helper should make sure to await the tab close result:
https://searchfox.org/mozilla-central/rev/9ad88f80aeedcd3cd7d7f63be07f577861727054/mobile/android/components/extensions/ext-android.js#44-47
Otherwise there may be test failures like bug 1523398 (the recent errors are only on Fennec because GeckoView doesn't have the leaked window checker yet).
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Comment 1•4 years ago
|
||
Hey Rob, can this be changed from defect to task given that it is a test-only change? (and severity set to N/A)
Also could be demoted to P3? (given that this hasn't moved forward over the last 11 months)
Assignee | ||
Updated•4 years ago
|
Description
•