Exception object is undefined in content scripts

Won’t fix Issue #8057607


Sergey K.
Jul 1, 2016
This issue is public.
Found in
  • Microsoft Edge
Found in build #
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

  1. Load the extension attached.
  2. Navigate to some https site that sets CSP, https://ya.ru for example.
  3. Open developer tools (F12), select Console.
  4. Reload the site.

Expected: exception message should be printed to the console (“SecurityError”).
Actual: SCRIPT5007: Unable to get property ‘message’ of undefined or null reference.

The content script in this extension is:

try {
    new WebSocket("wss://twitter.com/")
} catch (e) {

This code works in the console when _top target is selected but doesn’t work in the context of the content script.

Microsoft Edge 38.14379.0.0
Microsoft EdgeHTML 14.14379


Comments and activity

  • Microsoft Edge Team

    Changed Assigned To to “Ibrahim O.”

    Changed Assigned To to “Sermet I.”

    Changed Assigned To from “Sermet I.” to “Ibrahim O.”

    Changed Assigned To to “Sermet I.”

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

    Changed Status to “Confirmed”

  • The Edge team is working on a fix for a future update.

  • Microsoft Edge Team

    Changed Status from “Confirmed” to “Won’t fix”

  • Hi!

    Currently, we are only fixing security bugs for EdgeHTML as we make the move to Chromium Edge. Because of this, we have resolved the issue as "Won’t Fix". Thank you for taking the time to report this issue.


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

Sign in