chore(webkit): do not call setPauseOnStart for each target (#725)

This commit is contained in:
Yury Semikhatsky 2020-01-28 14:51:05 -08:00 committed by GitHub
parent 4b0ce1de2a
commit 4c25180912
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,14 +46,6 @@ export class WKPageProxy {
helper.addEventListener(this._pageProxySession, 'Target.dispatchMessageFromTarget', this._onDispatchMessageFromTarget.bind(this)),
helper.addEventListener(this._pageProxySession, 'Target.didCommitProvisionalTarget', this._onDidCommitProvisionalTarget.bind(this)),
];
// Intercept provisional targets during cross-process navigation.
this._pageProxySession.send('Target.setPauseOnStart', { pauseOnStart: true }).catch(e => {
if (this._pageProxySession.isDisposed())
return;
debugError(e);
throw e;
});
}
didClose() {