Steps to reproduce
This code used to work sometime before June.
I have made a simple extension to demonstrate the issue. The extension injects a content script which adds an iframe to the page.
The content script then sends a message to the iframe to demonstrate that messages can be sent in that direction.
The iframe logs any received messages and then tries to access window.parent.
In the page inspector logs you will see permission denied for both window.top and window.parent.
extension.zip is the extension built with webpack. The source is attached as well. You can build the extension yourself by installing Node and NPM, then running:
npm install (download all the necessary packages)
npm run build (will output extension to ./build/prod)
To reproduce the issue:
- Install the supplied extension
- Navigate to any page that isn’t the edge landing page or about:blank
- Right click on the page and select inspect element.
- Click the Console tab.
- You should see the relevant errors in the iframe.js script logged there.
Comments and activity
- Microsoft Edge Team
Changed Assigned To to “Mahesh J.”
Changed Status to “Confirmed”
Changed Assigned To from “Mahesh J.” to “Utkarsh P.”
Changed Assigned To from “Utkarsh P.” to “Ankit K.”