playwright-core
Advanced tools
Comparing version 0.11.1-next.1584743044056 to 0.11.1-next.1584746930259
@@ -22,2 +22,3 @@ "use strict"; | ||
const platform = require("../platform"); | ||
const crTarget_1 = require("./crTarget"); | ||
class CRNetworkManager { | ||
@@ -152,3 +153,10 @@ constructor(client, page) { | ||
} | ||
const frame = event.frameId ? this._page._frameManager.frame(event.frameId) : workerFrame; | ||
let frame = event.frameId ? this._page._frameManager.frame(event.frameId) : workerFrame; | ||
// Check if it's main resource request interception (targetId === main frame id). | ||
if (!frame && interceptionId && event.frameId === crTarget_1.CRTarget.fromPage(this._page)._targetId) { | ||
// Main resource request for the page is being intercepted so the Frame is not created | ||
// yet. Precreate it here for the purposes of request interception. It will be updated | ||
// later as soon as the request contnues and we receive frame tree from the page. | ||
frame = this._page._frameManager.frameAttached(event.frameId, null); | ||
} | ||
if (!frame) { | ||
@@ -155,0 +163,0 @@ if (interceptionId) |
{ | ||
"name": "playwright-core", | ||
"version": "0.11.1-next.1584743044056", | ||
"version": "0.11.1-next.1584746930259", | ||
"description": "A high-level API to automate web browsers", | ||
@@ -5,0 +5,0 @@ "repository": "github:Microsoft/playwright", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1915096
46801