Browser hangs after opening multiple save dialogs and cancelling in non-LIFO order
Categories
(Core :: Widget: Win32, defect, P2)
Tracking
()
People
(Reporter: alice0775, Assigned: rkraesig)
References
(Regression)
Details
(Keywords: regression)
Attachments
(2 files)
48 bytes,
text/x-phabricator-request
|
pascalc
:
approval-mozilla-release-
|
Details | Review |
48 bytes,
text/x-phabricator-request
|
pascalc
:
approval-mozilla-release-
|
Details | Review |
Steps to reproduce:
- Open web page
- Key holding Ctrl and press S multiple times. i.e., keydown
Ctrl
, keypressS
S
S
S
... then keyupCtrl
. - Repeatedly click the Cancel button to close all dialogs
- Attempt to interact with the browser
Actual results:
Browser is not responding.
Can't even close the browser.
Expected results:
Browser should be responding.
![]() |
Reporter | |
Updated•1 year ago
|
Assignee | ||
Comment 1•1 year ago
|
||
Note: the bug is avoided in the rare case that the last file dialog you happen to close is the first file dialog to be created.
(Of course, their creation order isn't necessarily their display order...)
Assignee | ||
Comment 2•1 year ago
|
||
Remove an unnecessary member function from AutoWidgetPickerState.
Additionally, use a safer method of getting the underlying nsWindow than
static_cast
, and add some thread-safety assertions in
nsWindow::Picker{Open,Closed}().
No functional changes on the happy path.
Updated•1 year ago
|
Assignee | ||
Comment 3•1 year ago
|
||
Rewrite WindowEnabler
to avoid assuming that multiple instances are
created and destroyed in LIFO order.
Depends on D200741
![]() |
Reporter | |
Updated•1 year ago
|
Assignee | ||
Comment 4•1 year ago
|
||
Confirmed via mozregression to be a regression due to bug 1858225 (as suspected). This should almost certainly be uplifted to Fx123.
Comment 5•1 year ago
|
||
Set release status flags based on info from the regressing bug 1858225
Comment 6•1 year ago
•
|
||
Tracking for release, it likely won't be able to ship in a Fx122 dot release but we should follow for Fx123 at least
Comment 7•1 year ago
|
||
:rkraesig I see the patches are pending review, but just mentioning a note on timing.
Fx123 is in the final week of beta, the last beta builds on Friday. This would need to land, make it to central, and get a beta uplift request.
Updated•1 year ago
|
Updated•1 year ago
|
Assignee | ||
Comment 9•1 year ago
|
||
Comment on attachment 9378425 [details]
Bug 1878568 - [2/2] Eliminate WindowEnabler r?#win-reviewers
Beta/Release Uplift Approval Request
- User impact if declined: Possible lockup of individual windows if multiple file-dialogs are opened.
- Is this code covered by automated tests?: No
- Has the fix been verified in Nightly?: No
- Needs manual test from QE?: Yes
- If yes, steps to reproduce: As described in comment 0.
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Probably not risky: behavior is local and easily manually-tested.
- String changes made/needed:
- Is Android affected?: No
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Comment 10•1 year ago
|
||
Addendum: While I'm pretty confident in the patch as it stands... on reflection, given the fact that this bug was in Fx122 and hasn't seen any reports during the entire cycle, I have to admit that I don't think there's likely to be much of an impact if it's not uplifted.
Comment 11•1 year ago
|
||
Let's reevaluate for the planned 123 dot release, this patch isn't in nightly yet and we ship our last beta tomorrow.
Comment 12•1 year ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/b3f5769f3185
https://hg.mozilla.org/mozilla-central/rev/644beeaced95
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Reproduced the issue with Firefox 124.0a1 (2024-02-04) on Windows 10x64. The browser is not responding after following the steps from comment 0.
The issue is verified fixed with Firefox 124.0b2 on Windows 10x64. The browser functions as expected after following the steps from comment 0. I have also verified this on macOS 13 and Ubuntu 23.1.
Comment 14•1 year ago
|
||
Comment on attachment 9378425 [details]
Bug 1878568 - [2/2] Eliminate WindowEnabler r?#win-reviewers
Let's have it ride the train and benefit from more time on pre-release.
Updated•1 year ago
|
Updated•1 year ago
|
Description
•