Closed Bug 1879216 Opened 2 years ago Closed 2 years ago

Port bug 1875100: RAM usage grows too much on minimized browser window with sidebar panel containing APNG background

Categories

(Thunderbird :: Upstream Synchronization, defect)

Thunderbird 124
defect

Tracking

(thunderbird_esr115 unaffected)

RESOLVED FIXED
124 Branch
Tracking Status
thunderbird_esr115 --- unaffected

People

(Reporter: darktrojan, Assigned: darktrojan)

References

(Regressed 1 open bug)

Details

Attachments

(3 files)

No description provided.
Assignee: nobody → geoff
Status: NEW → ASSIGNED

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/e514b637bb34
Temporarily stop setting .docShellIsActive to avoid assertion failures. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Status: RESOLVED → REOPENED
Resolution: FIXED → ---

Ah, sorry, didn't realise TB was messing with activeness too. Lmk if I can help.

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.)

Can those be top level (type='content') instead? You also need manualactiveness="true" now.

Attached file backtracestac
Seems they are `type='content'` already https://searchfox.org/comm-central/rev/bb2d37dc56cc4aa8cbcbe0f7e7a77c79c0b1a88b/mail/base/content/aboutMessage.xhtml#130,138 I tried adding I tried adding manualactiveness="true" but still doesn't work.

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.

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.

Flags: needinfo?(emilio)

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...

Flags: needinfo?(emilio) → needinfo?(geoff)

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.

Flags: needinfo?(geoff)

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.

Target Milestone: --- → 124 Branch

Pushed by solange@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/81c7b19049f1
Only set docShellIsActive on content browsers. r=mkmelin

Status: REOPENED → RESOLVED
Closed: 2 years ago2 years ago
Resolution: --- → FIXED
Regressions: 1881140
Regressions: 1881100
Regressions: 1893247
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: