Closed Bug 1113006 Opened 10 years ago Closed 10 years ago

Screen manager ScreenForBrowser message should return primary screen as fallback

Categories

(Core :: DOM: Content Processes, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla37

People

(Reporter: billm, Assigned: billm)

References

Details

Attachments

(1 file)

Attached patch screen-mgrSplinter Review
Filing this regarding bug 1091705 comment 27. The basic problem is that we want window.screen.width to return a non-zero value even after the window has been closed. Right now the e10s code fails in ScreenManagerParent::RecvScreenForBrowser when getting a null result for GetWidget().

Based on http://mxr.mozilla.org/mozilla-central/source/gfx/src/nsDeviceContext.cpp#644, it seems like we should return the dimensions of the primary screen in this case. So that's what this patch does.

I don't have a multiple monitor setup to test this, but it seems pretty safe.
Attachment #8538267 - Flags: review?(mconley)
Attachment #8538267 - Flags: review?(mconley) → review+
https://hg.mozilla.org/mozilla-central/rev/06d89851a3a5
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: