after resizing a window, new windows do not open with the same size and position as it.
Categories
(Core :: Widget: Cocoa, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox152 | --- | fixed |
People
(Reporter: bugzilla2, Assigned: jaas)
Details
Attachments
(2 files, 1 obsolete file)
Comment 1•18 years ago
|
||
Comment 2•18 years ago
|
||
Comment 3•18 years ago
|
||
Comment 7•16 years ago
|
||
Updated•16 years ago
|
Comment 9•16 years ago
|
||
| Reporter | ||
Comment 10•16 years ago
|
||
Comment 11•16 years ago
|
||
| Reporter | ||
Comment 12•16 years ago
|
||
Comment 13•16 years ago
|
||
| Reporter | ||
Comment 14•16 years ago
|
||
Updated•3 years ago
|
Updated•2 years ago
|
| Assignee | ||
Comment 16•1 day ago
•
|
||
I found two ways to reproduce this bug on macOS 26.5 with Firefox 150. Both methods reproduce this 100% of the time.
- 500ms Timer Race
- Open a first window on the screen, taking up most of the screen.
- Open a second window using cmd-n, it will be the same size at the first (slightly offset as expected)
- Put your fingers on the cmd-n buttons so you can do it really fast, but don't actually do it yet
- Resize the second window to be roughly half the width of the first
- Within less than half a second (500ms) of completing the resize, hit cmd-n
- The new window will incorrectly be the size of the first window, not the second one
This is because there is a 500ms timer that runs before size changes are persisted, so the new size of the second window is not persisted yet when you created the third window.
I'm not really sure this case is worth fixing.
- Minimizing Bug
- Open a first window on the screen, taking up most of the screen.
- Open a second window using cmd-n, it will be the same size at the first (slightly offset as expected)
- Resize the second window to be roughly half the width of the first
- Minimize the second window using cmd-m
- Wait a few seconds, then deminimize the second window by clicking on its dock icon
- Hit cmd-n to open a third window
- The new window will incorrectly be the size of the first window, not the second one
This happens because when you minimize the second window, the first window becomes the main window and its size is persisted. When you deminimize the second window and it becomes the main window again, its size should be persisted but it isn't. For some reason the new main window persists its size when you minimize a windows, but when you deminimize a window its size is not persisted. This behavioral asymmetry causes the bug.
I think this should be fixed.
| Assignee | ||
Comment 17•1 day ago
|
||
| Assignee | ||
Comment 18•1 day ago
|
||
The attached patch fixes method #2, but I'm not 100% sure it's the right way to fix it yet so holding off on review.
Updated•1 day ago
|
| Assignee | ||
Comment 19•1 day ago
|
||
I found a better way to fix repro method #2. Requested review.
Again, I don't think we should fix repro method #1. That is an architectural choice for a reason and it would be hard to know what would break if we undo it.
Comment 20•1 day ago
|
||
Comment 21•20 hours ago
|
||
| bugherder | ||
Description
•