Skip to content

testdriver: Add push message delivery and subscription change - #65094

Open
eerii wants to merge 1 commit into
web-platform-tests:masterfrom
eerii:push-api-delivery
Open

eerii wants to merge 1 commit into
web-platform-tests:masterfrom
eerii:push-api-delivery

Conversation

@eerii

@eerii eerii commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Add test_driver.deliver_push_message(scope, data) and test_driver.fire_push_subscription_change_event(scope), backed by two new DevTools commands. No test can reach a push event or pushsubscriptionchange today without a push service. Both skip with PRECONDITION_FAILED when the command is absent. No WebDriver BiDi equivalent exists yet, any suggestion is welcome.

Chromium CL: https://crrev.com/c/8803074
Tracker: 576760751

@eerii
eerii force-pushed the push-api-delivery branch from 170cd8f to 00dab0d Compare November 12, 2026 12:47

@Ms2ger Ms2ger left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

As far as I can tell, using CDP means this isn't covered by the RFC 127 exemption, so would need its own RFC.

@marcoscaceres

Copy link
Copy Markdown
Contributor

Does this need something on the spec side?

@ikram1201

Copy link
Copy Markdown
Contributor

@eerii, thanks for starting on this. I've proposed a spec-defined "Deliver push message" WebDriver command in w3c/push-api#365, which would give this a standard endpoint and could address the RFC concern Ms2ger raised. I'd be glad to work together on it: spec text, wptrunner wiring, and test ports. Feedback on the sketch there is very welcome.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs infra push-api testdriver.js wg-s_webapps wptrunner The automated test runner, commonly called through ./wpt run

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants