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: network request: prioritize response status code over extraInfo #1466

Merged
merged 2 commits into from
Oct 23, 2023

Conversation

thiagowfx
Copy link
Contributor

Bug: #644

@thiagowfx thiagowfx enabled auto-merge (squash) October 23, 2023 13:50
@thiagowfx thiagowfx force-pushed the thiagowfx/status-code branch 6 times, most recently from 82d5fbf to 0cfdd2c Compare October 23, 2023 20:28
@thiagowfx
Copy link
Contributor Author

I set the response_completed tests to [PASS, FAIL] since they are intermittently flaky.

@thiagowfx thiagowfx merged commit d1f3302 into main Oct 23, 2023
9 of 11 checks passed
@thiagowfx thiagowfx deleted the thiagowfx/status-code branch October 23, 2023 23:27
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>
this.#response.info?.response.status ??
this.#response.extraInfo?.statusCode ??
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is wrong... The extra info has the correct one if we return for example 304 not modified response.
Now it return 200 and brakes Puppeteer test.
We need to find a way to compute which is correct.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For network interception, this is correct.

We'll need to add some extra conditions in that method then. If request isBlocked, keep it like this. Otherwise do it the other way around.

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.

3 participants