Fail to parse javascript with extension installed and no starting html tag in Microsoft Edge

Confirmed Issue #10994893 • Assigned to Alex K.


Gabor M.
Feb 17, 2017
This issue is public.
Found in
  • Microsoft Edge
Found in build #
Reported by 3 people

Sign in to watch or report this issue.

Steps to reproduce

Steps to reproduce:

  1. Install an extension, like AdBlock, probably one with a content script
  2. Navigate to an html file, like this one:
<script language="javascript">
    function doSubmit(){
        // comment 1
        // comment 2

<body onLoad="doSubmit();">



I know it is not valid html, but its the stripped down version of an existing site where I found this issue.

Expected: redirection occur
Result: syntax error in javascript, no } closing tag

Disable the extension and it works as expected. It works in other browser with and without extension as well.


0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Brad E.”

      Changed Assigned To from “Brad E.” to “Steven K.”

      Changed Assigned To to “Travis L.”

      Changed Status to “Confirmed”

      Changed Assigned To from “Travis L.” to “Alex K.”

    • facing this issue as well with an Angular Material web app on first call (nothing cached yet):


      (error) SCRIPT1009: SCRIPT1009: Expected '}'
      polyfills.6ad1562657ea79083a23.bundle.js (1,16385)
      (error) SCRIPT1003: SCRIPT1003: Expected ':'
      main.49ae404053036b6faa0b.bundle.js (1,16385)

      second call (F5):

      SCRIPT5022: In this configuration Angular requires Zone.js
      main.49ae404053036b6faa0b.bundle.js (1,360525)

      third call (F5):
      page successfully loaded.

      As long as the broswer cache (“cached data and files”) is not cleared, every further page load is successfull even on broswer restart.

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

    Sign in