Beforeunload Testing

Servo (Cross Origin)

Steps for testing:

  1. Click "Servo (Cross Origin)" on each iframe and agree to unload.
  2. Click "Go Back 2"
  3. Interact with each iframe. You can select text, or click somewhere. (the UA may require a user gesture to show the unload prompt)
  4. Click "Go Forward 2"
  5. Observe different behviors when selecting to allow/not allow the unload for each iframe.
  6. Try to traverse the history using the browsers forward and back buttons to see how the session history was affected.