Make BrowserTestUtils.browserLoaded Fission-compatible
Categories
(Core :: DOM: Content Processes, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox72 | --- | fixed |
People
(Reporter: u608768, Assigned: u608768)
References
(Blocks 1 open bug)
Details
Attachments
(4 files, 4 obsolete files)
A lot of failing Fission mochitests rely on browserLoaded and other BrowserTestUtils helpers. Rewriting browserLoaded to use RemoteWebProgress or JSWindowActors should fix a number of these tests.
Updated•5 years ago
|
Adds BrowserTestUtilsChild.jsm to the list of modules that we load for new
content processes. We now listen for "load" and "DOMContentLoaded" events, so
this module gets instantiated earlier.
Depends on D49002
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Since BrowserTestUtils.firstBrowserLoaded now resolves slightly later than it
did before, the STATE_STOP notification is dispatched before we get a chance
to add the progress listener in BrowserTestUtils.browserStopped. We should
create both Promises before waiting for the initial load to finish.
Depends on D49003
Updated•5 years ago
|
Comment 9•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/4420f02e5c3a
https://hg.mozilla.org/mozilla-central/rev/ca658e02223d
https://hg.mozilla.org/mozilla-central/rev/a3857bf2b069
https://hg.mozilla.org/mozilla-central/rev/38a4c02bc815
https://hg.mozilla.org/mozilla-central/rev/bd41e1217534
https://hg.mozilla.org/mozilla-central/rev/46073b8c1da9
Comment 10•5 years ago
|
||
Comment 11•5 years ago
|
||
Backed out 6 changesets (bug 1578465) for mochitest leakcheck failures on a CLOSED TREE.
Backout link: https://hg.mozilla.org/integration/autoland/rev/de3af64d13472d9ab391f0454a84c3e7d4f37167
Push with failures: https://treeherder.mozilla.org/#/jobs?repo=autoland&group_state=expanded&searchStr=browser-chrome&revision=46073b8c1da99a2402e8f2ffc8ce81597f4a64db&selectedJob=272857066
Log link: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=272857066&repo=autoland&lineNumber=15204
Log snippet:
[task 2019-10-24T22:31:36.696Z] 22:31:36 INFO - TEST-INFO | leakcheck | default leaked 2 nsXULPrototypeDocument
[task 2019-10-24T22:31:36.696Z] 22:31:36 INFO - TEST-INFO | leakcheck | default leaked 1984 nsXULPrototypeNode
[task 2019-10-24T22:31:36.696Z] 22:31:36 INFO - TEST-INFO | leakcheck | default leaked 1 nsXULTooltipListener
[task 2019-10-24T22:31:36.697Z] 22:31:36 INFO - TEST-INFO | leakcheck | default leaked 1 nsZipArchive
[task 2019-10-24T22:31:36.697Z] 22:31:36 INFO - TEST-INFO | leakcheck | default leaked 1 nsZipReaderCache
[task 2019-10-24T22:31:36.697Z] 22:31:36 INFO - TEST-INFO | leakcheck | default leaked 5 xpc::CompartmentPrivate
[task 2019-10-24T22:31:36.697Z] 22:31:36 INFO - TEST-INFO | leakcheck | default leaked 1 xpcJSWeakReference
[task 2019-10-24T22:31:36.697Z] 22:31:36 INFO - TEST-UNEXPECTED-FAIL | leakcheck | default 61210547 bytes leaked (AbstractThread, AbstractWatcher, AnimationTimeline, AsyncFreeSnowWhite, AtomSet, ...)
[task 2019-10-24T22:31:36.698Z] 22:31:36 INFO -
[task 2019-10-24T22:31:36.698Z] 22:31:36 INFO - leakcheck | Processing leak log file /var/folders/1x/th9cbfts1zzbgt7m41mdbmd8000017/T/tmpRWanJ7.mozrunner/runtests_leaks_tab_pid1691.log
[task 2019-10-24T22:31:36.698Z] 22:31:36 INFO -
[task 2019-10-24T22:31:36.702Z] 22:31:36 INFO - == BloatView: ALL (cumulative) LEAK AND BLOAT STATISTICS, tab process 1691
[task 2019-10-24T22:31:36.702Z] 22:31:36 INFO -
[task 2019-10-24T22:31:36.702Z] 22:31:36 INFO - |<----------------Class--------------->|<-----Bytes------>|<----Objects---->|
[task 2019-10-24T22:31:36.702Z] 22:31:36 INFO - | | Per-Inst Leaked| Total Rem|
[task 2019-10-24T22:31:36.702Z] 22:31:36 INFO - 0 |TOTAL | 35 0| 1286056 0|
[task 2019-10-24T22:31:36.702Z] 22:31:36 INFO -
[task 2019-10-24T22:31:36.703Z] 22:31:36 INFO - nsTraceRefcnt::DumpStatistics: 1128 entries
[task 2019-10-24T22:31:36.703Z] 22:31:36 INFO - TEST-PASS | leakcheck | tab no leaks detected!
[task 2019-10-24T22:31:36.703Z] 22:31:36 INFO - leakcheck | Processing leak log file /var/folders/1x/th9cbfts1zzbgt7m41mdbmd8000017/T/tmpRWanJ7.mozrunner/runtests_leaks_tab_pid1685.log
[task 2019-10-24T22:31:36.703Z] 22:31:36 INFO -
[task 2019-10-24T22:31:36.703Z] 22:31:36 INFO - == BloatView: ALL (cumulative) LEAK AND BLOAT STATISTICS, tab process 1685
Updated•5 years ago
|
Comment 12•5 years ago
|
||
Backout merge: https://hg.mozilla.org/mozilla-central/rev/de3af64d1347
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Comment 13•5 years ago
|
||
Comment 14•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/c467ca392512
https://hg.mozilla.org/mozilla-central/rev/edf7398d610e
https://hg.mozilla.org/mozilla-central/rev/39416fcbab25
https://hg.mozilla.org/mozilla-central/rev/4a166c30c90d
Comment 15•5 years ago
|
||
Updated•5 years ago
|
Comment 16•5 years ago
|
||
Ignore this attachment, I used a wrong bug number for my patch.
Comment 17•5 years ago
|
||
Any chance someone could update the browserLoaded code comments from this change?
Assignee | ||
Comment 18•5 years ago
|
||
(In reply to Dave Townsend [:mossop] (he/him) from comment #17)
Any chance someone could update the browserLoaded code comments from this change?
Filed bug 1601685.
Description
•