Closed Bug 1434986 Opened 7 years ago Closed 7 years ago

Loading a xul document with sizemode="maximized" shouldn't resize an already maximized window

Categories

(Core :: XUL, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla60
Tracking Status
firefox60 --- fixed

People

(Reporter: florian, Assigned: florian)

References

Details

Attachments

(1 file)

In bug 1336227, for a faster perception of startup, I'm working on showing asap an about:blank window, and then replacing it with the real browser.xul once we are ready. When the initial about:blank window is opened maximized, loading browser.xul resizes it even when the browser.xul document has sizemode="maximized". This is because applying the size from the width and height XUL attributes forces the sizemode back to "normal".
Attached patch PatchSplinter Review
Attachment #8947544 - Flags: review?(bugs)
Comment on attachment 8947544 [details] [diff] [review] Patch Always {} with ifs. I know, that file has inconsistent style.
Attachment #8947544 - Flags: review?(bugs) → review+
Pushed by florian@queze.net: https://hg.mozilla.org/integration/mozilla-inbound/rev/6c50a9ec2d51 Loading a xul document with sizemode=maximized shouldn't resize an already maximized window, r=smaug.
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: