Skip to content

Conversation

@srwei
Copy link
Contributor

@srwei srwei commented Oct 7, 2025

Spec: https://wicg.github.io/nav-speculation/prefetch.html#automated-testing
chromium-bidi implementation: GoogleChromeLabs/chromium-bidi@66d3585

Adding testdriver extension for the speculation module that is mainly to add the prefetch_status_updated event. No commands.

This event will replace the current timeout mechanism for speculation rules prefetch in the wpt prefetch corpus: https://github.com/web-platform-tests/wpt/tree/master/speculation-rules/prefetch

Follow up CLs will be raised to update the above tests to use the new event handling.

@sadym-chromium would you be able to help with rollover for chromium?

@sadym-chromium
Copy link
Contributor

Please add wdspec tests as well. Actually, I'd prefer to have wdspec tests first in a separate PR, but it's up to you.

@srwei
Copy link
Contributor Author

srwei commented Oct 7, 2025

Please add wdspec tests as well. Actually, I'd prefer to have wdspec tests first in a separate PR, but it's up to you.

Oh I thought webdriver/tests/bidi/external/speculation/prefetch_status_updated/ tests were the wdpsec tests

@sadym-chromium
Copy link
Contributor

Closing and opening to re-run CI

Copy link
Contributor

@sadym-chromium sadym-chromium left a comment

Choose a reason for hiding this comment

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

Sorry, forgot to publish the comment

Copy link
Contributor

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.

Thank you! Looks like all checks are passing now

@sadym-chromium
Copy link
Contributor

@web-platform-tests/wpt-core-team please review

@mdmanikhossen013135822-ship-it

Please patient me

@sadym-chromium
Copy link
Contributor

@jcscottiii could you please take a look?

Copy link
Member

@foolip foolip left a comment

Choose a reason for hiding this comment

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

testdriver*.js LGTM

const subscription_id = action_result["subscription"];

return async ()=>{
console.log("!!@@## unsubscribing")
Copy link
Member

Choose a reason for hiding this comment

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

Yeah, removing this seems like a good idea, sure looks like frustrated debugging left in :)

@sadym-chromium sadym-chromium merged commit 14d7ab5 into web-platform-tests:master Dec 2, 2025
51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infra testdriver.js webdriver-bidi wg-s_browser-tools-testing wptrunner The automated test runner, commonly called through ./wpt run

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants