playwright-core
Advanced tools
Comparing version 0.11.1-next.1584911205457 to 0.11.1-next.1584917324589
@@ -150,4 +150,2 @@ "use strict"; | ||
await this.setExtraHTTPHeaders(this._options.extraHTTPHeaders || {}); | ||
if (this._options.offline) | ||
await this.setOffline(this._options.offline); | ||
if (this._options.httpCredentials) | ||
@@ -157,2 +155,4 @@ await this.setHTTPCredentials(this._options.httpCredentials); | ||
await this.setGeolocation(this._options.geolocation); | ||
if (this._options.offline) | ||
await this.setOffline(this._options.offline); | ||
} | ||
@@ -232,5 +232,4 @@ _ffPages() { | ||
async setOffline(offline) { | ||
if (offline) | ||
throw new Error('Offline mode is not implemented in Firefox'); | ||
this._options.offline = offline; | ||
await this._browser._connection.send('Browser.setOnlineOverride', { browserContextId: this._browserContextId || undefined, override: offline ? 'offline' : 'online' }); | ||
} | ||
@@ -237,0 +236,0 @@ async setHTTPCredentials(httpCredentials) { |
{ | ||
"name": "playwright-core", | ||
"version": "0.11.1-next.1584911205457", | ||
"version": "0.11.1-next.1584917324589", | ||
"description": "A high-level API to automate web browsers", | ||
@@ -12,3 +12,3 @@ "repository": "github:Microsoft/playwright", | ||
"chromium_revision": "751710", | ||
"firefox_revision": "1048", | ||
"firefox_revision": "1049", | ||
"webkit_revision": "1182" | ||
@@ -15,0 +15,0 @@ }, |
Sorry, the diff of this file is too big to display
1914810
46795