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.
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.