Web Notifications from iframe always opens new tab on click

Issue #13374714 • Assigned to Steve B.

Details

Author
Alex L.
Created
Aug 22, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
15.15063
Reports
Reported by 2 people

Sign in to watch or report this issue.

Steps to reproduce

Description

When HTML that uses the Web Notification API is loaded within an iframe, clicking on active notifications causes the host page of the iframe to be loaded in a new tab; regardless of whether a click handler is associated with the notification or not.

This does not happen if the parent page is raising the notification. For instance, in the Steps below, if you open the codepen sample in it’s own page rather then via an iframe the notification click handling is as expected.

Steps to recreate

  1. Go to Microsoft Web Notifications API.
  2. Click the “Send a notification” button.
  3. Click the notification when it appears.
  4. The alert appears, as per the sample code; however, the codepen website is also opened in a new tab.
  5. Remove the Click Handler from the sample JS and click "Send a notification".
  6. Click the notification when it appears.
  7. codepen site appears in a new tab.

Versions

Windows 10
Microsoft Edge 40.15063.0.0
Microsoft EdgeHTML 15.15063

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “James M.”

      Changed Steps to Reproduce

    • Hello,

      Thank you for providing this information about the issue. After thorough testing, we are unable to reproduce this problem in Edge with the information at hand. In both test steps you state that codepen is opened in a new tab; what’s the difference and what behavior do you expect? What part of the JS code do you remove in your repro? Please update this case when you can provide updated details.

      Best Wishes,
      The MS Edge Team

    • Hello,

      Disregard the previous reply; I can see that you are saying both tests are wrong and the new tab should not open at all.

      I have created https://codepen.io/anon/pen/jLvWmV to use with your repro. We are investigating this now.

      Best Wishes,
      The MS Edge Team

    • Microsoft Edge Team

      Changed Assigned To to “travil”

      Changed Assigned To from “travil” to “Travis L.”

      Changed Assigned To to “Venkat K.”

      Changed Assigned To from “Venkat K.” to “Steve B.”

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

    Sign in