-
Notifications
You must be signed in to change notification settings - Fork 995
chore(roll): roll Playwright to 1.48.0-beta-1728034490000 #2584
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,6 @@ | |
import typing | ||
from pathlib import Path | ||
from typing import Any, Dict, List, Optional, Union, cast | ||
from urllib.parse import parse_qs | ||
|
||
import playwright._impl._network as network | ||
from playwright._impl._api_structures import ( | ||
|
@@ -405,7 +404,8 @@ async def _inner_fetch( | |
"fetch", | ||
{ | ||
"url": url, | ||
"params": params_to_protocol(params), | ||
"params": object_to_array(params) if isinstance(params, dict) else None, | ||
"encodedParams": params if isinstance(params, str) else None, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I haven't seen this change in .net or java roll for some reason. Could you please double check? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In Java we don't allow passing query params as strings while in JS/Python/.NET we do. There is no .NET roll yet for this release after we moved the merge logic to the server side. In Java we have: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd rather not do it in the ports to keep the API surface smaller, especially if there is no user request for this.
mxschmitt marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"method": method, | ||
"headers": serialized_headers, | ||
"postData": post_data, | ||
|
@@ -430,23 +430,6 @@ async def storage_state( | |
return result | ||
|
||
|
||
def params_to_protocol(params: Optional[ParamsType]) -> Optional[List[NameValue]]: | ||
if not params: | ||
return None | ||
if isinstance(params, dict): | ||
return object_to_array(params) | ||
if params.startswith("?"): | ||
params = params[1:] | ||
parsed = parse_qs(params) | ||
if not parsed: | ||
return None | ||
out = [] | ||
for name, values in parsed.items(): | ||
for value in values: | ||
out.append(NameValue(name=name, value=value)) | ||
return out | ||
|
||
|
||
def file_payload_to_json(payload: FilePayload) -> ServerFilePayload: | ||
return ServerFilePayload( | ||
name=payload["name"], | ||
|
Uh oh!
There was an error while loading. Please reload this page.