playwright-core
Advanced tools
Comparing version 0.13.0-post-next.1587002771852 to 0.13.0-post-next.1587006981701
@@ -365,2 +365,7 @@ "use strict"; | ||
} | ||
async unroute(url, handler) { | ||
this._routes = this._routes.filter(route => route.url !== url || (handler && route.handler !== handler)); | ||
for (const page of this.pages()) | ||
await page._delegate.updateRequestInterception(); | ||
} | ||
async close() { | ||
@@ -367,0 +372,0 @@ if (this._closed) |
@@ -273,2 +273,7 @@ "use strict"; | ||
} | ||
async unroute(url, handler) { | ||
this._routes = this._routes.filter(route => route.url !== url || (handler && route.handler !== handler)); | ||
if (this._routes.length === 0) | ||
await this._browser._connection.send('Browser.setRequestInterception', { browserContextId: this._browserContextId || undefined, enabled: false }); | ||
} | ||
async close() { | ||
@@ -275,0 +280,0 @@ if (this._closed) |
@@ -260,2 +260,6 @@ "use strict"; | ||
} | ||
async unroute(url, handler) { | ||
this._routes = this._routes.filter(route => route.url !== url || (handler && route.handler !== handler)); | ||
await this._delegate.updateRequestInterception(); | ||
} | ||
_requestStarted(request) { | ||
@@ -262,0 +266,0 @@ this.emit(events_1.Events.Page.Request, request); |
@@ -269,2 +269,7 @@ "use strict"; | ||
} | ||
async unroute(url, handler) { | ||
this._routes = this._routes.filter(route => route.url !== url || (handler && route.handler !== handler)); | ||
for (const page of this.pages()) | ||
await page._delegate.updateRequestInterception(); | ||
} | ||
async close() { | ||
@@ -271,0 +276,0 @@ if (this._closed) |
{ | ||
"name": "playwright-core", | ||
"version": "0.13.0-post-next.1587002771852", | ||
"version": "0.13.0-post-next.1587006981701", | ||
"description": "A high-level API to automate web browsers", | ||
@@ -12,3 +12,3 @@ "repository": "github:Microsoft/playwright", | ||
"chromium_revision": "754895", | ||
"firefox_revision": "1081", | ||
"firefox_revision": "1082", | ||
"webkit_revision": "1193" | ||
@@ -15,0 +15,0 @@ }, |
Sorry, the diff of this file is too big to display
1401509
34449