Skip to content
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: addPreloadScript respects new contexts #1478

Merged
merged 1 commit into from
Oct 25, 2023

Conversation

Lightning00Blade
Copy link
Collaborator

@Lightning00Blade Lightning00Blade commented Oct 25, 2023

We should be OK using the global approach due to https://w3c.github.io/webdriver-bidi/#command-script-addPreloadScript
Step 4 - making sure that the Context exits, if we don't already have it we in our storage.
Adding the note because on there was discussion around ID and sharing them between Multiple BiDi sessions.

From Alex: The above is only true if we are adding the scripts to same origin iframes. This will not work for example for workers, cross-origin iframes and a like that create a new target, and per spec preload scripts should affect them as well.

Tracked at #1353

@Lightning00Blade Lightning00Blade merged commit b0e55fa into main Oct 25, 2023
14 checks passed
@Lightning00Blade Lightning00Blade deleted the preloadscript-new branch October 25, 2023 15:03
Lightning00Blade pushed a commit that referenced this pull request Oct 30, 2023
🤖 I have created a release *beep* *boop*
---


##
[0.4.33](chromium-bidi-v0.4.32...chromium-bidi-v0.4.33)
(2023-10-30)


### Features

* add network intercept continue with auth
([#1470](#1470))
([ad3a95e](ad3a95e)),
closes
[#644](#644)
* addPreloadScript respects new contexts
([#1478](#1478))
([b0e55fa](b0e55fa))
* addPreloadScripts respects contexts param for old contexts
([#1475](#1475))
([0cdde07](0cdde07))
* implement headersSize for network requests
([#1498](#1498))
([e904ee0](e904ee0)),
closes
[#644](#644)
* implement network interception continue response
([#1443](#1443))
([4515d1d](4515d1d)),
closes
[#644](#644)
* implement network interception provide response
([#1457](#1457))
([1eca26e](1eca26e)),
closes
[#644](#644)
* **logging:** pretty print received and sent bidi server messages
([#1490](#1490))
([45fd24e](45fd24e))
* **network intercept:** implement continue with auth (cont.)
([#1484](#1484))
([7cc9358](7cc9358)),
closes
[#644](#644)
* **network intercept:** specify BeforeRequestSent whenever AuthRequi…
([#1494](#1494))
([22eafee](22eafee)),
closes
[#644](#644)
* network request: prioritize response status code over extraInfo
([#1466](#1466))
([d1f3302](d1f3302)),
closes
[#644](#644)
* **network:** emit `responseStarted` event ("AND")
([#1497](#1497))
([46220b7](46220b7)),
closes
[#765](#765)


### Bug Fixes

* Add `window.setSelfTargetId` for backward compatibility with chrome
driver
([#1461](#1461))
([fe98f94](fe98f94))

---
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants