Bug 171415
| Summary: | Implement the `muted-errors` property of Scripts to avoid onerror/onunhandledrejection for cross-origin scripts | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Joseph Pecoraro <joepeck> |
| Component: | WebCore JavaScript | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | joepeck, ysuzuki |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Joseph Pecoraro
Implement the `muted-errors` property of Scripts to avoid onerror/onunhandledrejection for cross-origin scripts:
https://html.spec.whatwg.org/multipage/webappapis.html#muted-errors
This flag is set on Cross Origin scripts and used to avoid dispatching error events for them.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Joseph Pecoraro
Note in some cases we won't want to mute cross-origin errors from making it to Web Inspector's console, just prevent it from the web exposed handlers.