Open Bug 1256989 Opened 4 years ago

Write firefox-ui-test for permitunload dialogs on shutdown

Categories

(Firefox :: Session Restore, defect)

defect
Not set

Tracking

()

People

(Reporter: mconley, Unassigned)

References

Details

We need to do this via the Marionette / Firefox UI tests framework, since this involves actually shutting down the browser for the test.

The test is as follows:

1) Load a document that uses onbeforeunload to show a dialog to the user that can block unloading unless the user confirms the dialog.
2) Tell the browser to quit
3) Expect the dialog to appear, and then click "Leave Page" to let the quit continue.
4) The browser should quit soon after, without showing any more dialogs

See bug 1255511 for further details.
You need to log in before you can comment on or make changes to this bug.