Beforeunload Testing
Servo (Cross Origin)
Steps for testing:
- Click "Servo (Cross Origin)" on each iframe and agree to unload.
- Click "Go Back 2"
- Interact with each iframe. You can select text, or click somewhere. (the UA may require a user gesture to show the unload prompt)
- Click "Go Forward 2"
-
Observe different behviors when selecting to allow/not allow the unload for each iframe.
- Stay on page for first prompt, Leave page for second prompt
- Leave page for first prompt, Stay on page for second prompt
- Try to traverse the history using the browsers forward and back buttons to see how the session history was affected.