Port bug 1875100: RAM usage grows too much on minimized browser window with sidebar panel containing APNG background
Categories
(Thunderbird :: Upstream Synchronization, defect)
Tracking
(thunderbird_esr115 unaffected)
| Tracking | Status | |
|---|---|---|
| thunderbird_esr115 | --- | unaffected |
People
(Reporter: darktrojan, Assigned: darktrojan)
References
(Regressed 1 open bug)
Details
Attachments
(3 files)
| Assignee | ||
Comment 1•2 years ago
|
||
These calls are failing at https://hg.mozilla.org/mozilla-central/rev/22c6ddd752f4#l7.92 because the browsers aren't top-level.
Updated•2 years ago
|
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/e514b637bb34
Temporarily stop setting .docShellIsActive to avoid assertion failures. r=mkmelin
| Assignee | ||
Updated•2 years ago
|
Comment 3•2 years ago
|
||
Ah, sorry, didn't realise TB was messing with activeness too. Lmk if I can help.
| Assignee | ||
Comment 4•2 years ago
|
||
You can. We're failing at BrowsingContext::CanSet, I think because we're making chrome browsers active/inactive, and they're not at the top of the tree. I guess the criteria needs to be changed somehow.
There's also an assertion failing at CanonicalBrowsingContext::SetIsActive, probably for the same reason, but I haven't even begun to look at it yet.
(We're doing this so that a message displayed in a background tab doesn't get marked as read until the tab becomes the foreground tab. I think it's a good approach but if you've got better ideas it could be changed.)
Comment 5•2 years ago
|
||
Can those be top level (type='content') instead? You also need manualactiveness="true" now.
Comment 6•2 years ago
•
|
||
Comment 7•2 years ago
|
||
Oh, I guess that's not the one, but the about:message and about:3pane ones.
https://searchfox.org/comm-central/rev/bb2d37dc56cc4aa8cbcbe0f7e7a77c79c0b1a88b/mail/base/content/about3Pane.xhtml#341
https://searchfox.org/comm-central/rev/bb2d37dc56cc4aa8cbcbe0f7e7a77c79c0b1a88b/mail/base/content/messenger.xhtml#566
But adding type="content" manualactiveness="true" will need other adjustments. I'm not sure how easy that would be. Geoff probably has a better idea about that.
| Assignee | ||
Comment 8•2 years ago
|
||
The short answer is "no". We tried to make them content when developing them and ran into too many roadblocks. I can't recall what off the top of my head, but I know that using chrome browsers was a decision not an oversight.
| Assignee | ||
Updated•2 years ago
|
Comment 9•2 years ago
|
||
It'd be nice to know which roadblocks? The current code you were using isn't great because you're not handling top level document visibility...
| Assignee | ||
Comment 10•2 years ago
|
||
I think the big one was handling web content inside local content, getting with message managers to do what we want, etc.. Some of the issues have probably gone away in the 2+ years since, but tried today and I know there's still some problems I don't want to have to solve for a second or third time.
Anyway, regarding this particular bug, I have a solution. We don't actually need to set the activeness of the chrome browsers, just the content browser that displays messages. We can figure out if we're in a background tab some other way.
| Assignee | ||
Comment 11•2 years ago
|
||
We're only using it to prevent messages in background tabs being marked as read, but the Page
Visibility API will now apply to all tab types that contain a content browser.
| Assignee | ||
Updated•2 years ago
|
Comment 12•2 years ago
|
||
Pushed by solange@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/81c7b19049f1
Only set docShellIsActive on content browsers. r=mkmelin
Description
•