Port messages are not sent after beforeunload event

Confirmed Issue #13437065 • Assigned to Mahesh J.

Details

Author
Andrew S.
Created
Aug 25, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
40.15063
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

  1. Install the attached Edge extension
  2. Navigate to a page with the following HTML:
<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>
<body>
  <form>
    <input type="submit">
  </form>
</body>
</html>
  1. Inspect the background page of the extension to see the logging statements
  2. Click the submit button on the page
  3. See the following being logged:
submit
beforeunload

Sometimes the “timeout” message is received by the background but it is not deterministic.

If you load the same extension in chrome (replacing browser with chrome of course) the background page receives all of the events as follows:

submit
beforeunload
timeout
unload

We would like Edge to behave the same way as the chrome extension and keep the port communication open until after the unload event has completed and the window is completely unloaded.

Attachments

1 attachment

Comments and activity

  • Microsoft Edge Team

    Changed Status to “Confirmed”

    Changed Assigned To to “Irfan A.”

    Changed Status from “Confirmed”

    Changed Status to “Confirmed”

    Changed Assigned To from “Irfan A.” to “Mahesh J.”

You need to sign in to your Microsoft account to add a comment.

Sign in