WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
198688
Don't sanitize window.onerror information when "Importing binding name is not found"
https://bugs.webkit.org/show_bug.cgi?id=198688
Summary
Don't sanitize window.onerror information when "Importing binding name is not...
joubran.jad
Reported
2019-06-08 04:19:57 PDT
Created
attachment 371651
[details]
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";
Attachments
index.html & index.js to replicate issue on Safari + a screenshot of the issue
(43.41 KB, application/zip)
2019-06-08 04:19 PDT
,
joubran.jad
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2019-06-09 06:08:38 PDT
<
rdar://problem/51561178
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug