Closed Bug 1874394 Opened 1 year ago Closed 1 year ago

Prototype WPT push subscription tests

Categories

(Core :: DOM: Push Subscriptions, task)

task

Tracking

()

RESOLVED FIXED
134 Branch
Tracking Status
firefox134 --- fixed

People

(Reporter: saschanaz, Assigned: saschanaz)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file, 1 obsolete file)

No description provided.
See Also: → 1887014

We should be able to use the existing python server infra in WPT to handle the subscription request, and let the test script communicate with that server to trigger push messages.

Depends on: 1919741
Attachment #9425646 - Attachment description: WIP: Bug 1874394 - Add basic subscription test with dummy push server → Bug 1874394 - Add basic subscription test with dummy push server r=jgraham!,asuth!

Do you think we can allow mozilla push server connection in WPT? Having a dummy server allows WPT+/mozilla to be self-contained without external dependency, but then it may miss important interop issues caused by the server implementation. Currently I have to run the test with ./mach wpt-serve; ./mach run to make sure the test runs with the actual server, I'd be happy if we at least have some opt-in parameter so that I can run ./mach wpt with the actual server.

Flags: needinfo?(james)

At the moment we're just setting MOZ_DISABLE_NONLOCAL_CONNECTIONS=1 c.f. https://searchfox.org/mozilla-central/source/testing/mozbase/mozrunner/mozrunner/utils.py#141 so practically we'd need some way to make the actual server look like a local connection for the sake of the check in https://searchfox.org/mozilla-central/source/netwerk/base/nsSocketTransport2.cpp#1275-1277. If we could do that via a pref we could arrange for the pref to be set for specific tests.

Flags: needinfo?(james)
Attachment #9432273 - Attachment is obsolete: true
No longer blocks: 1928406
Pushed by krosylight@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/34aec3a048ad Add basic subscription test with dummy push server r=jgraham,asuth
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/49143 for changes under testing/web-platform/tests
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 134 Branch
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: