Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #11023 from brave/issue-8574
Browse files Browse the repository at this point in the history
don’t do anything in webview for `crash` event
  • Loading branch information
bbondy committed Sep 20, 2017
1 parent 4785a9b commit 2636521
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions app/renderer/components/frame/frame.js
Original file line number Diff line number Diff line change
Expand Up @@ -725,18 +725,6 @@ class Frame extends React.Component {
windowActions.setNavigated(e.url, this.props.frameKey, false, this.props.tabId)
}
}, { passive: true })
this.webview.addEventListener('crashed', (e) => {
if (this.frame.isEmpty()) {
return
}
windowActions.setFrameError(this.frame, {
event_type: 'crashed',
title: 'unexpectedError',
url: this.props.location
})
appActions.loadURLRequested(this.props.tabId, 'about:error')
this.webview = false
}, { passive: true })
this.webview.addEventListener('did-fail-provisional-load', (e) => {
if (e.isMainFrame) {
loadEnd(false, e.validatedURL, false)
Expand Down

0 comments on commit 2636521

Please sign in to comment.