Revert "Merge pull request #8724 from electron/defer_load_url"

Possible cause for #9121

This reverts commit 886b47e713, reversing
changes made to 479af3c9e2.
This commit is contained in:
deepak1556 2017-04-07 23:04:14 +05:30
parent dfab1043d9
commit 50ac7b2edd
4 changed files with 16 additions and 139 deletions

View file

@ -329,24 +329,6 @@ ipcMain.on('handle-unhandled-rejection', (event, message) => {
})
})
ipcMain.on('navigate-with-pending-entry', (event, id) => {
const w = BrowserWindow.fromId(id)
w.webContents.on('did-start-loading', () => {
w.loadURL('about:blank')
})
w.webContents.on('did-navigate', (e, url) => {
if (url === 'about:blank') {
event.sender.send('navigated-with-pending-entry')
}
})
w.webContents.session.clearHostResolverCache(() => {
w.loadURL('http://host')
})
})
ipcMain.on('crash-service-pid', (event, pid) => {
process.crashServicePid = pid
event.returnValue = null