Open Bug 1749398 Opened 3 years ago Updated 3 years ago

onPromptDismiss is not always invoked on page navigation

Categories

(GeckoView :: General, defect, P2)

Unspecified
All
defect

Tracking

(Not tracked)

ASSIGNED

People

(Reporter: jonalmeida, Assigned: m_kato)

References

Details

(Whiteboard: [geckoview:2022h2?])

Attachments

(1 file)

STR (from Arturo):

  1. Enable remote debugging
  2. Go to https://www.w3schools.com/jsref/met_win_alert.asp
  3. Click the button "Try it" an alert dialog should show.
  4. On your desktop browser, open that tab on about:debugging
  5. Go to the console tab
  6. Navigate to another website while the dialog is opened window.location = "http://www.mozilla.org";

Expected behavior
After 6 we expected a call to onPromptDismiss

Actual Behavior
onPromptDismiss is not called

This stemmed from a sec bug that found these STRs were not covered by the onPromptDismiss.

See Also: → CVE-2022-22762

FWIW I think this is a feature request more than a bug, this never worked before.

Severity: -- → S3
Priority: -- → P2
Whiteboard: [geckoview:2022h2?]

When modal dialog is shown then page navigation is invoked, onPromptDismiss
isn't called yet. We have to consider this situation.

Assignee: nobody → m_kato
Status: NEW → ASSIGNED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: