playwright-core
Advanced tools
Comparing version
@@ -123,2 +123,8 @@ "use strict"; | ||
promises.push(session.send('Page.setBypassCSP', { enabled: true })); | ||
if (this._page._state.viewportSize) { | ||
promises.push(session.send('Page.setScreenSizeOverride', { | ||
width: this._page._state.viewportSize.width, | ||
height: this._page._state.viewportSize.height, | ||
})); | ||
} | ||
promises.push(session.send('Network.setExtraHTTPHeaders', { headers: this._calculateExtraHTTPHeaders() })); | ||
@@ -433,2 +439,6 @@ if (contextOptions.offline) | ||
}), | ||
this._session.send('Page.setScreenSizeOverride', { | ||
width: viewport.width, | ||
height: viewport.height, | ||
}), | ||
]; | ||
@@ -435,0 +445,0 @@ await Promise.all(promises); |
{ | ||
"name": "playwright-core", | ||
"version": "0.11.1-next.1583871165271", | ||
"version": "0.11.1-next.1583872341343", | ||
"description": "A high-level API to automate web browsers", | ||
@@ -13,3 +13,3 @@ "repository": "github:Microsoft/playwright", | ||
"firefox_revision": "1041", | ||
"webkit_revision": "1168" | ||
"webkit_revision": "1171" | ||
}, | ||
@@ -16,0 +16,0 @@ "scripts": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
2444955
0.05%57293
0.05%