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

Issue #10994893 • Assigned to Travis L.

Details

Author
Gabor M.
Created
Feb 17, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
14.14393
Reports
Reported by 1 person

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
        location.replace("http://test.com");
    }
</script>

<body onLoad="doSubmit();">

</body>

</html>

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.

Attachments

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.”

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

    Sign in