Skip to content

Commit 699795c

Browse files
committed
feat(roll): roll Playwright 1.16.0-next-1634054506000
1 parent 287d820 commit 699795c

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Playwright is a Python library to automate [Chromium](https://www.chromium.org/H
44

55
| | Linux | macOS | Windows |
66
| :--- | :---: | :---: | :---: |
7-
| Chromium <!-- GEN:chromium-version -->96.0.4659.0<!-- GEN:stop --> ||||
8-
| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> ||||
7+
| Chromium <!-- GEN:chromium-version -->97.0.4666.0<!-- GEN:stop --> ||||
8+
| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> ||||
99
| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> ||||
1010

1111
## Documentation

playwright/_impl/_network.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,7 @@ async def header_value(self, name: str) -> Optional[str]:
160160
async def _actual_headers(self) -> "RawHeaders":
161161
if not self._all_headers_future:
162162
self._all_headers_future = asyncio.Future()
163-
response = await self.response()
164-
if not response:
165-
return self._provisional_headers
166-
headers = await response._channel.send("rawRequestHeaders")
163+
headers = await self._channel.send("rawRequestHeaders")
167164
self._all_headers_future.set_result(RawHeaders(headers))
168165
return await self._all_headers_future
169166

scripts/expected_api_mismatch.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,5 @@ Parameter type mismatch in BrowserContext.cookies(return=): documented as List[{
2020
Method not implemented: Error.name
2121
Method not implemented: Error.stack
2222
Method not implemented: Error.message
23+
Parameter type mismatch in Browser.new_context(storage_state=): documented as Union[pathlib.Path, str, {cookies: List[{name: str, value: str, domain: str, path: str, expires: float, httpOnly: bool, secure: bool, sameSite: Union["Lax", "None", "Strict"]}], origins: List[{origin: str, localStorage: List[{name: str, value: str}]}]}, NoneType], code has Union[pathlib.Path, str, {cookies: Union[List[{name: str, value: str, url: Union[str, NoneType], domain: Union[str, NoneType], path: Union[str, NoneType], expires: Union[float, NoneType], httpOnly: Union[bool, NoneType], secure: Union[bool, NoneType], sameSite: Union["Lax", "None", "Strict", NoneType]}], NoneType], origins: Union[List[{origin: str, localStorage: List[{name: str, value: str}]}], NoneType]}, NoneType]
24+
Parameter type mismatch in Browser.new_page(storage_state=): documented as Union[pathlib.Path, str, {cookies: List[{name: str, value: str, domain: str, path: str, expires: float, httpOnly: bool, secure: bool, sameSite: Union["Lax", "None", "Strict"]}], origins: List[{origin: str, localStorage: List[{name: str, value: str}]}]}, NoneType], code has Union[pathlib.Path, str, {cookies: Union[List[{name: str, value: str, url: Union[str, NoneType], domain: Union[str, NoneType], path: Union[str, NoneType], expires: Union[float, NoneType], httpOnly: Union[bool, NoneType], secure: Union[bool, NoneType], sameSite: Union["Lax", "None", "Strict", NoneType]}], NoneType], origins: Union[List[{origin: str, localStorage: List[{name: str, value: str}]}], NoneType]}, NoneType]

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
InWheel = None
2929
from wheel.bdist_wheel import bdist_wheel as BDistWheelCommand
3030

31-
driver_version = "1.16.0-next-1633339886000"
31+
driver_version = "1.16.0-next-1634054506000"
3232

3333

3434
def extractall(zip: zipfile.ZipFile, path: str) -> None:

tests/async/test_network.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626

2727
async def test_request_fulfill(page, server):
2828
async def handle_request(route: Route, request: Request):
29+
headers = await route.request.all_headers()
30+
assert headers["accept"]
2931
assert route.request == request
3032
assert repr(route) == f"<Route request={route.request}>"
3133
assert "empty.html" in request.url

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy