Edge refuses to load content scripts after appending an iframe from another domain

Confirmed Issue #12930797 • Assigned to Scott S.

Details

Author
Manuel D.
Created
Jul 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

Overview:

Given an extension having a content script running at document_start, appending an iframe to the document.body from the content script will prevent the whole content script from being loaded the next time you reload the page, producing error 80020101.

NOTE: the content script will be correctly loaded if you reload the page again, but the bug will manifest itself on the next reload every time you append an iframe.

NOTE: the bug won’t happen if the iframe src is from the same domain of the page.

NOTE: the bug won’t happen if the content script is loaded at document_end.

Steps to reproduce the issue:

var iframe = document.createElement('iframe');
iframe.src = 'https://www.microsoft.com/';
document.body.appendChild(iframe);
  • Reload the page

Expected behaviour: the “Loading content script” text should be logged into the console.
Actual behaviour: no text is logged, in fact, the content script isn’t loaded at all, instead Edge will throw a 80020101 error.

Attachments

Comments and activity

  • Microsoft Edge Team

    Changed Assigned To to “James M.”

    Changed Assigned To to “Akshay P.”

    Changed Assigned To from “Akshay P.” to “Vasanth C.”

    Changed Status to “Confirmed”

    Changed Assigned To from “Vasanth C.” to “Scott S.”

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

Sign in