[Webkit-unassigned] [Bug 198688] New: Don't sanitize window.onerror information when "Importing binding name is not found"

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jun 8 04:19:57 PDT 2019


https://bugs.webkit.org/show_bug.cgi?id=198688

            Bug ID: 198688
           Summary: Don't sanitize window.onerror information when
                    "Importing binding name is not found"
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: joubran.jad at gmail.com

Created attachment 371651

  --> https://bugs.webkit.org/attachment.cgi?id=371651&action=review

index.html & index.js to replicate issue on Safari + a screenshot of the issue

When you try to import a name that doesn't exist from a JavaScript module, an error shows up in the console: "SyntaxError: Importing binding name 'X' is not found" however this error message cannot be read from a `window.onerror` handler.

The `onerror` handler only reports: "Script error." at line 0, column 0.

Example import: import { NonExisting } from "./index.js";

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190608/cd8516a9/attachment.html>


More information about the webkit-unassigned mailing list