-
Notifications
You must be signed in to change notification settings - Fork 31
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
feat: implement storage.getCookies
and storage.setCookie
#1593
Conversation
Sometimes it is required to have types from not-yet merged branch of spec (#1593). This PR provides a way to specify a branch of a specific commit to update types from. --------- Co-authored-by: Maksim Sadym <sadym@google.com>
393bbb4
to
cd1e930
Compare
storage.getCookies
storage.getCookies
55421d3
to
5c5cc68
Compare
d5df1bf
to
e6cf54d
Compare
e6cf54d
to
b8d270e
Compare
storage.getCookies
storage.cookies
d046dee
to
a9670f0
Compare
This reverts commit 55f5204.
bafdc82
to
fdd6cb6
Compare
lgtm! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM + some minor comments.
@@ -0,0 +1,283 @@ | |||
/* | |||
* Copyright 2023 Google LLC. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Copyright 2023 Google LLC. | |
* Copyright 2024 Google LLC. |
"params": { | ||
"expression": f"document.body.innerHTML = '{html_content}'", | ||
"functionDeclaration": "(html_content) => { document.body.innerHTML = html_content }", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Let's consider using the script from Puppeteer I think it may be less falky.
As the DOM should be stable all written by the time the command returns.
document.open();
document.write(html);
document.close();
const browsingContextId: string = descriptor.context; | ||
const browsingContext = | ||
this.#browsingContextStorage.getContext(browsingContextId); | ||
const url = NetworkProcessor.parseUrlString(browsingContext?.url ?? ''); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: This should not live on the NetworkProcessor
but extracted into helper.
🤖 I have created a release *beep* *boop* --- ## [0.5.4](chromium-bidi-v0.5.3...chromium-bidi-v0.5.4) (2024-01-17) ### Features * implement `Input.setFiles` ([#1705](#1705)) ([50d1921](50d1921)) * implement `storage.getCookies` and `storage.setCookie` ([#1593](#1593)) ([2b08660](2b08660)) * implement permissions ([#1645](#1645)) ([29c7b0b](29c7b0b)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Implement storage commands:
storage.getCookies
storage.setCookie