DescriptionUpstream Service Worker window test to WPT
The Chromium infrastructure runs tests through the `localhost` address,
allowing tests there to include insecure iframe resources without
triggering "mixed content" errors. The WPT infrastructure executes tests
via an aliased host name, precluding this approach.
Re-factor the test to create insecure browsing contexts as new windows
since windows are not subject to the same constraints. Update the
inter-context messaging protocol to account for this change.
Update the `claim-worker.js` "resource" script to extend worker
lifecycle until the asynchronous operation is complete.
Because the modification from using iframes to using windows is
non-trivial and may expose distinct behaviors, the WPT-compatible
version is not a suitable replacement for the original Chromium version.
Persist the Chromium version of the test, adding a comment to document
the distinction.
BUG=688116
R=mek@chromium.org
Patch Set 1 #
Total comments: 3
Patch Set 2 : Incorporate review feedback #Messages
Total messages: 10 (2 generated)
|