Closed Bug 1711466 Opened 3 years ago Closed 3 years ago

[macOS] Firefox remains stuck if closed while the master password modal is opened and close tabs and exit window is displayed.

Categories

(Toolkit Graveyard :: Notifications and Alerts, defect, P2)

Desktop
macOS

Tracking

(firefox-esr78 unaffected, firefox88 unaffected, firefox89 verified, firefox90 verified)

VERIFIED FIXED
90 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox88 --- unaffected
firefox89 --- verified
firefox90 --- verified

People

(Reporter: atrif, Assigned: Gijs)

References

(Blocks 2 open bugs)

Details

(Keywords: regression, Whiteboard: [proton-modals] [priority:2a] [proton-uplift])

Attachments

(2 files)

Affected versions

  • 90.0a1 (20210517094928)
  • 89.0b13 (20210516190025)

Affected platforms

  • macOS 11.3.1 ARM
  • macOS 10.14

Preconditions

  • Primary Password modal displayed

Steps to reproduce

  1. Click on the Firefox Apple menu and select Quit Firefox.
  2. Enter the password and submit or click Cancel on the Primary password prompt.
  3. Try to do anything in Firefox.

Expected result

  • On 88.0.1 the close tabs and quit window is displayed only after the Primary password is closed and after closing that or exiting Firefox everything works as normal.

Actual result

  • Firefox cannot be closed or used.

Regression range

  • I will search for one ASAP. This only reproduces if prompts.windowPromptSubDialog is set on true so it’s possible that this caused the regression.

Notes

  • Attached a screen recording.
  • After following the above steps Firefox can be closed by Using Force Close option from the activity monitor.
  • This was marked as an S2 because the user needs to Force Quit the Firefox browser if the above steps are performed.
Has Regression Range: --- → no
Has STR: --- → yes
Whiteboard: [proton-modals]
QA Whiteboard: [qa-regression-triage]
Priority: -- → P2
Whiteboard: [proton-modals] → [proton-modals] [priority:2a]
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
Pushed by gijskruitbosch@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/3bdb943f8ee6
do not open window-internal modal prompts if the window is in a modal state through some other code, r=pbz
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch

Hello! Verified the issue using Firefox 90.0a1 (20210520095745) on macOS 11.3. The browser is working as expected after following the str from comment 0.
Just to be sure I have two questions:

  1. When trying to exit the browser while the Primary Password modal is displayed NS_ERROR_NOT_AVAILABLE: Prompt could not be shown. error is displayed in the browser console. Is this expected?
  2. Also, the Close tabs and quit window is not displayed after closing the Primary password window if triggered while it's active as stated in comment 0 expected result. This is expected as well?

Thank you in advance.

Flags: needinfo?(gijskruitbosch+bugs)

(In reply to Alexandru Trif, QA [:atrif] from comment #4)

Hello! Verified the issue using Firefox 90.0a1 (20210520095745) on macOS 11.3. The browser is working as expected after following the str from comment 0.
Just to be sure I have two questions:

  1. When trying to exit the browser while the Primary Password modal is displayed NS_ERROR_NOT_AVAILABLE: Prompt could not be shown. error is displayed in the browser console. Is this expected?

Yes.

  1. Also, the Close tabs and quit window is not displayed after closing the Primary password window if triggered while it's active as stated in comment 0 expected result. This is expected as well?

Yes, it wasn't easily possible to fix this issue in a way where the modal would automatically reopen.

When we fix the primary password modal to use the same style of modal prompt as the quit warning (bug 1685329), both of these issues will be resolved.

(bouncing needinfo to ensure this doesn't get lost)

Flags: needinfo?(gijskruitbosch+bugs) → needinfo?(alexandru.trif)

Thank you, Gijs! Marking Firefox 90.0a1 (20210520095745) as verified based on the above.

Flags: needinfo?(alexandru.trif)

Can we please uplift to Beta 89?

Comment on attachment 9222373 [details]
Bug 1711466 - do not open window-internal modal prompts if the window is in a modal state through some other code, r?pbz

Beta/Release Uplift Approval Request

  • User impact if declined: Broken browser if you try to quit when the primary password prompt is up
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: See comment 0 / comment 4 and later
  • List of other uplifts needed: n/a
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Relatively minor JS-only changes, with automated test coverage.
  • String changes made/needed: None
Attachment #9222373 - Flags: approval-mozilla-beta?
Flags: qe-verify+

Comment on attachment 9222373 [details]
Bug 1711466 - do not open window-internal modal prompts if the window is in a modal state through some other code, r?pbz

Approved for our last beta before 89 RC, thanks.

Attachment #9222373 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Whiteboard: [proton-modals] [priority:2a] → [proton-modals] [priority:2a] [proton-uplift]
QA Whiteboard: [qa-regression-triage] → [qa-regression-triage][qa-triaged]

Verified fixed with Firefox 89.0b15 (20210520185752) on macOS 11.3.1. The browser is no longer stuck after following the STR from comment 0. Also, the Close tabs and exit window is not displayed if triggered while the Primary Password modal is active.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: