Closed
Bug 1096076
Opened 10 years ago
Closed 10 years ago
[E10s] When resizing a window, all the tabs are resized
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
FIXED
mozilla36
Tracking | Status | |
---|---|---|
e10s | + | --- |
People
(Reporter: smaug, Assigned: smaug)
References
(Blocks 1 open bug)
Details
Attachments
(2 files, 1 obsolete file)
(deleted),
patch
|
roc
:
review+
kats
:
feedback+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
Details | Diff | Splinter Review |
In non-e10s builds we resize only the foremost tab. In e10s we seem to resize all the tabs and that pretty much hangs the child process in case one has lots of tabs or some
heavy pages, like http://www.whatwg.org/specs/web-apps/current-work/
Not sure who to CC to this bug.
(This is probably _the_ blocker for me to switch to use e10s in my main profile. I'd need to be very careful to not resize the window, or not load any large pages.)
Assignee | ||
Comment 1•10 years ago
|
||
We probably want to also limit the number of UpdateDimensions messages from parent to child, so that
there isn't huge number messages waiting for processing and new ones coming from the parent all the time. I guess child should sends a message back to parent once the UpdateDimensions is processed,
and before that parent should just cache the most recent to-be-sent values.
Assignee | ||
Comment 2•10 years ago
|
||
Need to perhaps make http://mxr.mozilla.org/mozilla-central/source/view/nsViewManager.cpp#197 to work in e10s too.
Assignee | ||
Comment 4•10 years ago
|
||
Could be, if we end up doing lots of resizes. Just building a debug build with some logging to see how
many UpdateDimensions messages are sent.
Assignee | ||
Comment 5•10 years ago
|
||
Hmm, I'm not at all familiar with compress in IPDL.
Assignee | ||
Comment 6•10 years ago
|
||
I have a wip patch for this. Will upload after testing in an opt build.
Assignee: nobody → bugs
Assignee | ||
Comment 7•10 years ago
|
||
This should make us resize only foreground tab.
Hopefully Bug 1076820 helps with sending less resize messages.
https://tbpl.mozilla.org/?tree=Try&rev=2bd0e4d83496
Assignee | ||
Comment 8•10 years ago
|
||
Comment 9•10 years ago
|
||
IIRC we had a bug on file for this in B2G but i can't find it now and don't remember if it was ever resolved. But please make sure that this patch doesn't break the case where you have two apps open and rotate the phone and then switch apps (i.e. app in background during resize should update properly).
Assignee | ||
Updated•10 years ago
|
Attachment #8519612 -
Attachment is obsolete: true
Assignee | ||
Comment 10•10 years ago
|
||
What you mean with "update properly". I'd expect it to be notified what the new viewport looks like, and when the app is brought to foreground, do the resize reflow. (or that resize reflow might happen lazily while the app is in background.)
Comment 11•10 years ago
|
||
(In reply to Olli Pettay [:smaug] from comment #10)
> What you mean with "update properly".
I just mean that the app does somehow get notified and redraw itself at the new size. As opposed to redrawing at the wrong size.
> I'd expect it to be notified what the
> new viewport looks like, and when the app is brought to foreground, do the
> resize reflow. (or that resize reflow might happen lazily while the app is
> in background.)
I don't really care which of these happens (or even if it happens by some other mechanism) as long as it happens. It's just that the CSS viewport updating code in TabChild is brittle and has been impacted by changes like this before.
Assignee | ||
Comment 12•10 years ago
|
||
The toplevel presshell is notified about its bounds when it is set active, and in e10s/b2g setup that
ends up calling show(true) on widget. So it all should just work, but trying to get someone to verify,
or figuring out if any of my b2g devices are still supported for testing.
(not Flame, since that is for dogfooding.)
Comment 13•10 years ago
|
||
I built with this patch on latest master and didn't see any problems.
Assignee | ||
Updated•10 years ago
|
Attachment #8519628 -
Flags: review?(bugmail.mozilla)
Comment 14•10 years ago
|
||
Comment on attachment 8519628 [details] [diff] [review]
v2
Review of attachment 8519628 [details] [diff] [review]:
-----------------------------------------------------------------
I don't think I can officially review this, I don't know the intricacies of nsPresShell visibility code. I can just f+ based on my testing on B2G to say it didn't obviously break anything there.
Attachment #8519628 -
Flags: review?(bugmail.mozilla) → feedback+
Assignee | ||
Comment 15•10 years ago
|
||
Comment on attachment 8519628 [details] [diff] [review]
v2
Trying roc then, given that this relies Views having certain setup.
Attachment #8519628 -
Flags: review?(roc)
Attachment #8519628 -
Flags: review?(roc) → review+
Assignee | ||
Comment 16•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 17•10 years ago
|
||
Keywords: checkin-needed
Comment 18•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla36
You need to log in
before you can comment on or make changes to this bug.
Description
•