fix(webkit): do not dipatch request event for about:blank (#35280)

This commit is contained in:
Yury Semikhatsky 2025-03-19 12:40:35 -07:00 committed by GitHub
parent 90e7d2e9d8
commit 23b6305c2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -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)