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

Commit

Permalink
don’t do anything in webview for crash event
Browse files Browse the repository at this point in the history
fix #8574
requires brave/muon#312
  • Loading branch information
bridiver committed Sep 20, 2017
1 parent 795f36a commit f1c3c6d
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 @@ -723,18 +723,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 f1c3c6d

Please sign in to comment.