• Robert Knight's avatar
    Add infrastructure for capturing host-frame errors in Sentry · 59d2f213
    Robert Knight authored
    Add infrastructure that will allow us to gain visibility into errors
    happening in the host frame, in specifically wrapped blocks of code, by
    capturing the errors and forwarding them to the sidebar.
    
    The initial implementation requires that the browser is able to clone
    errors in `window.postMessage` calls, and currently only Chrome supports
    that. In other browsers forwarding errors will fail with a warning.
    
     - Add `shared/frame-error-capture.js` module with functions for
       capturing errors, registering a target frame to receive them and
       forwarding errors to the frame.
    
     - Register sidebar application as handler for errors in host frame in
       `Sidebar` constructor and de-register it in the destructor.
    
     - Call `handleErrorsInFrames` in `sidebar/util/sentry.js` to handle
       errors from host frame by sending them to Sentry.
    59d2f213
Name
Last commit
Last update
..
components Loading commit data...
config Loading commit data...
helpers Loading commit data...
services Loading commit data...
store Loading commit data...
test Loading commit data...
util Loading commit data...
cross-origin-rpc.js Loading commit data...
icons.js Loading commit data...
index.js Loading commit data...
markdown-commands.js Loading commit data...
media-embedder.js Loading commit data...
render-markdown.js Loading commit data...
search-client.js Loading commit data...
service-context.js Loading commit data...
websocket.js Loading commit data...