Closed
Bug 585780
Opened 15 years ago
Closed 11 years ago
e10s should call SetIsActive() on its nsIWebBrowser
Categories
(Core :: DOM: Navigation, defect)
Core
DOM: Navigation
Tracking
()
RESOLVED
WORKSFORME
Tracking | Status | |
---|---|---|
e10s | + | --- |
People
(Reporter: bholley, Assigned: mconley)
References
Details
(Whiteboard: [fixed by bug 978540])
In bug 343515, I added support for telling docshells when they're active (in Firefox, this corresponds to being the foremost tab). We're going to start using this for optimizations like image discarding and refresh driver throttling.
I added the API to nsIWebBrowser, but it currently has no consumers, so in theory it might not work. It would be good to add some sort of test similar to those from bug 343515 to make sure it does.
Any e10s release branched off mozilla-central at a changeset later than the one where bug 512260 lands should almost certainly block on this bug, since otherwise memory usage will go through the roof when we disable discarding on every image ever.
The tests from bug 343515 will probably also fail on e10s until this is fixed (though I'm not sure whether e10s even runs browser tests?)
I also filed bug 585771 on fennec.
Updated•15 years ago
|
Component: IPC → Document Navigation
QA Contact: ipc → docshell
Updated•11 years ago
|
tracking-e10s:
--- → +
Comment 1•11 years ago
|
||
Some of this might have been fixed in bug 978540 and the other part might be in bug 972341.
Assignee | ||
Comment 2•11 years ago
|
||
Tentatively stealing this from Felipe, unless he has any objections.
Assignee: felipc → mconley
Assignee | ||
Comment 3•11 years ago
|
||
So I attached gdb to the content process, and set a breakpoint at nsDocShell::SetIsActive.
With an e10s window, I can see nsDocShell::SetIsActive being called with true when a page is loaded. I can see it being set to false when I switch to a different tab, and then true again - I assume what's happening is that "false" is being set on the docshell of the switched-from tab, and "true" is being set on the docshell of the switched-to tab.
So is there any more to do here? Are there other cases I'm not seeing? (needinfo'ing ttaubert, since it sounds like he's worked on this stuff before).
Flags: needinfo?(ttaubert)
Comment 4•11 years ago
|
||
Looking at bug 585771 (the Android equivalent) I think this is indeed all done. I fixed that in bug 978540.
Flags: needinfo?(ttaubert)
Assignee | ||
Comment 5•11 years ago
|
||
Excellent! Thanks ttaubert.
Status: NEW → RESOLVED
Closed: 11 years ago
Depends on: 978540
Resolution: --- → WORKSFORME
Whiteboard: [fixed by bug 978540]
You need to log in
before you can comment on or make changes to this bug.
Description
•