Enable check for "Test left extra windows or tabs:" in geckoview extension tests
Categories
(WebExtensions :: Android, task, P3)
Tracking
(Not tracked)
People
(Reporter: robwu, Assigned: robwu)
References
(Depends on 2 open bugs, Blocks 1 open bug)
Details
(Whiteboard: [addons-jira])
mochitests on Android perform a leaked window check, which is implemented here: https://searchfox.org/mozilla-central/rev/883bfd385efc917d5e787ba66fb51824f6f0e3d6/mobile/android/components/extensions/test/mochitest/head.js#33
It relies on chrome_cleanup_script.js
, which currently enumerates navigator:browser
. In GeckoView (non-Fennec), it should enumerate navigator:geckoview
instead.
Assignee | ||
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
Taking over this bug - once bug 1644039 and bug 1644040 have been fixed, then it should be possible to fix this bug, to prevent new instances of bug 1644039, because it is very difficult to debug this kind of issue. A way to investigate this kind of issue without the leaked window check is to look at logcat, and then check if the order of logged events match with what one would expect (when the content script appears to run sooner than a the creation of a new tab/window, then you can infer that the tab/window already existed at the start of the test). I confirmed a bunch of such errors in bug 1644039, but doing the analysis is too time-consuming and tedious.
Comment 2•4 years ago
|
||
Demoting to P3, but feel free to bump its priority again if it gets back into your queue of tasks to do next.
Updated•3 years ago
|
Updated•3 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Description
•