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)

36 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla36
Tracking Status
e10s + ---

People

(Reporter: smaug, Assigned: smaug)

References

(Blocks 1 open bug)

Details

Attachments

(2 files, 1 obsolete file)

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.)
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.
related to bug 1076820 maybe.
tracking-e10s: --- → ?
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.
Hmm, I'm not at all familiar with compress in IPDL.
I have a wip patch for this. Will upload after testing in an opt build.
Assignee: nobody → bugs
Attached patch v1 (obsolete) (deleted) — Splinter Review
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
Depends on: 1076820
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).
Attachment #8519612 - Attachment is obsolete: true
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.)
(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.
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.)
I built with this patch on latest master and didn't see any problems.
Attachment #8519628 - Flags: review?(bugmail.mozilla)
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+
Comment on attachment 8519628 [details] [diff] [review] v2 Trying roc then, given that this relies Views having certain setup.
Attachment #8519628 - Flags: review?(roc)
Attached patch v2 + commit message (deleted) — Splinter Review
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.

Attachment

General

Created:
Updated:
Size: