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

fix: provide navigation and url in events #2264

Merged
merged 6 commits into from
Jun 24, 2024

Conversation

sadym-chromium
Copy link
Collaborator

@sadym-chromium sadym-chromium commented May 31, 2024

Address 2 issues:

  • Lack of navigation in browsingContext.navigationStarted event. CDP does not always provide loaderId for same document navigation, while WebDriver BiDi spec requires a unique navigation ID for each navigation. To address the issue, I introduced A virtual navigation id, which is returned instead of loader ID in browsing context and network events.
  • Lack of url in browsingContext.navigationStarted. The information can be received from deprecated Page.frameScheduledNavigation CDP event.

@sadym-chromium sadym-chromium added the update-expectations Update WPT expectations label May 31, 2024
@sadym-chromium sadym-chromium force-pushed the sadym/browsing_context/navigate/hash.py branch from ce6403e to d9c8caa Compare May 31, 2024 15:57
@github-actions github-actions bot removed the update-expectations Update WPT expectations label May 31, 2024
@sadym-chromium sadym-chromium force-pushed the sadym/browsing_context/navigate/hash.py branch from a11d77c to 9421853 Compare May 31, 2024 16:08
@sadym-chromium sadym-chromium marked this pull request as draft May 31, 2024 16:14
@sadym-chromium sadym-chromium added the update-expectations Update WPT expectations label May 31, 2024
@github-actions github-actions bot removed the update-expectations Update WPT expectations label May 31, 2024
@sadym-chromium sadym-chromium added the update-expectations Update WPT expectations label May 31, 2024
@sadym-chromium sadym-chromium force-pushed the sadym/browsing_context/navigate/hash.py branch from 9745007 to 3a105a6 Compare May 31, 2024 16:38
@github-actions github-actions bot removed the update-expectations Update WPT expectations label May 31, 2024
@sadym-chromium sadym-chromium changed the title fix: provide navigation for same-document navigations [EXPERIMENT] fix: provide navigation for same-document navigations Jun 3, 2024
@sadym-chromium sadym-chromium force-pushed the sadym/browsing_context/navigate/hash.py branch from a8ed063 to 1565132 Compare June 21, 2024 12:07
@sadym-chromium sadym-chromium added the update-expectations Update WPT expectations label Jun 21, 2024
@sadym-chromium sadym-chromium force-pushed the sadym/browsing_context/navigate/hash.py branch from 1565132 to fa8ceda Compare June 21, 2024 14:19
@sadym-chromium sadym-chromium changed the title [EXPERIMENT] fix: provide navigation for same-document navigations [EXPERIMENT] fix: provide navigation in events Jun 21, 2024
@github-actions github-actions bot removed the update-expectations Update WPT expectations label Jun 21, 2024
@sadym-chromium sadym-chromium force-pushed the sadym/browsing_context/navigate/hash.py branch 2 times, most recently from f1f2144 to c5ab873 Compare June 21, 2024 15:02
@sadym-chromium sadym-chromium changed the title [EXPERIMENT] fix: provide navigation in events [EXPERIMENT] fix: provide navigation and url in events Jun 21, 2024
@sadym-chromium sadym-chromium changed the title [EXPERIMENT] fix: provide navigation and url in events fix: provide navigation and url in events Jun 21, 2024
@sadym-chromium sadym-chromium marked this pull request as ready for review June 21, 2024 15:16
@OrKoN OrKoN added the puppeteer Run Puppeteer test when added to PR label Jun 24, 2024
@sadym-chromium sadym-chromium force-pushed the sadym/browsing_context/navigate/hash.py branch from c6b3a10 to 44e978f Compare June 24, 2024 11:19
@sadym-chromium sadym-chromium added the update-expectations Update WPT expectations label Jun 24, 2024
@sadym-chromium sadym-chromium force-pushed the sadym/browsing_context/navigate/hash.py branch from 44e978f to 892cd02 Compare June 24, 2024 12:02
@github-actions github-actions bot removed the update-expectations Update WPT expectations label Jun 24, 2024
Signed-off-by: Browser Automation Bot <browser-automation-bot@google.com>
@sadym-chromium sadym-chromium merged commit 9f058da into main Jun 24, 2024
48 checks passed
@sadym-chromium sadym-chromium deleted the sadym/browsing_context/navigate/hash.py branch June 24, 2024 12:27
sadym-chromium pushed a commit that referenced this pull request Jun 28, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.6.0](chromium-bidi-v0.5.24...chromium-bidi-v0.6.0)
(2024-06-28)


### ⚠ BREAKING CHANGES

* default behavior changed from `ignore` to `dismiss`.

### Features

* body size for non-intercepted requests
([#2348](#2348))
([ec07c7d](ec07c7d))
* respect `unhandledPromptBehavior` capability
([#2351](#2351))
([08672b9](08672b9))


### Bug Fixes

* openerFrameId whenever possible
([#2329](#2329))
([b3ab7ef](b3ab7ef))
* provide `navigation` and `url` in events
([#2264](#2264))
([9f058da](9f058da))
* provide type in `browsingContext.userPromptClosed` event
([#2349](#2349))
([1326c16](1326c16))
* request body size
([#2339](#2339))
([28dc58b](28dc58b))

---
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
puppeteer Run Puppeteer test when added to PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants