Prerender: Exclude unrelated pages from test expectations
speculation-rules/prerender/clients-matchall.https.html checks if
Service Worker clients include a prerendered page.
Before this CL, the test assumes that a service worker returns an array
of an initiating page and a prerendered page as clients. This should
work in general. However, this doesn't work when the test runs with the
wptrunner and the headless shell, as they creates an additional page
testharness_runner.html
that can be treated as a client. This results
in a test failure.
To fix it, this CL loosely checks if the clients contain the initiator
page and the prerendered page, and ignore other pages.
Bug: 380677632
Change-Id: I2120f9dc1c133454d54555e3f201c6b8ed3b6a1d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6038367
Reviewed-by: Huanpo Lin robertlin@chromium.org
Commit-Queue: Hiroki Nakagawa nhiroki@chromium.org
Cr-Commit-Position: refs/heads/main@{#1387446}