fix(webkit): do not dipatch request event for about:blank (#35280)
This commit is contained in:
parent
90e7d2e9d8
commit
23b6305c2d
|
@ -1014,6 +1014,9 @@ export class WKPage implements PageDelegate {
|
|||
_onRequestWillBeSent(session: WKSession, event: Protocol.Network.requestWillBeSentPayload) {
|
||||
if (event.request.url.startsWith('data:'))
|
||||
return;
|
||||
// WebKit started dispatching network events for about:blank after https://commits.webkit.org/292206@main.
|
||||
if (event.request.url.startsWith('about:'))
|
||||
return;
|
||||
|
||||
// We do not support intercepting redirects.
|
||||
if (this._page.needsRequestInterception() && !event.redirectResponse)
|
||||
|
|
Loading…
Reference in New Issue