Extension Content Scripts Not Debuggable/Not Loaded Correctly?

Duplicate Issue #8744912 • See Issue #7698441


Sep 2, 2016
This issue is public.
Found in
  • Microsoft Edge
See progress on Bug #7698441
Found in build #
Reported by 2 people

Sign in to watch or report this issue.

Steps to reproduce

In the process of modifying our Chrome extension to run within Edge as well.

One of our content scripts in our extension is a minified version of jQuery. When trying to debug our extension, a syntax error is reported in the console, but not attributed to any specific script (when following the error link it simply jumps to the bottom of the test page which has no scripts of its own).

Through process of elimination, I determined that it was my content script jquery-min.js that was causing the error, but I still don’t know what the error is or why it is triggering. Loading the same script by directly adding it to the webpage instead of in the content of an extension content script does not trigger any error.

It is possible that there is something about the context of content scripts within Edge that is triggering a bug in jquery-min.js but I can’t tell because I can’t debug the error.


Comments and activity

  • Microsoft Edge Team

    Changed Assigned To to “Akshay P.”

    Changed Assigned To to “Sebastian P.”

    Changed Assigned To to “Sermet I.”

    Changed Assigned To from “Sermet I.” to “Paolo S.”

    Changed Assigned To from “Paolo S.” to “Scott S.”

    Changed Assigned To from “Scott S.” to “Scott L.”

    Changed Status to “Confirmed”

    Changed Status from “Confirmed” to “Duplicate”

  • Thanks for filing this bug! JQuery throws these exceptions because it uses certain pseudo-selectors that Edge does not support. These exceptions are meant to be caught in JQuery code (they’re all wrapped in try/catch statements), but unfortunately, we have a bug (https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/7698441/) in Edge where exceptions originating from content scripts are thrown in both the content script JS engine and the page JS engine. As a result, these exceptions are properly caught by JQuery in the content script JS engine, but are left to bubble up to the top level in the page JS engine (which is why you see them in the console). We’re currently working on a fix for this issue, but if you have any other questions or concerns, feel free to reach out on the other bug’s comment thread!

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

Sign in