Re: [w3c/ServiceWorker] How to test "no-referrer-when-downgrade" in a web platform test (#1094)

We have a number of tests in WPT for referrer policy that verify various policies by loading images with wide-open CORS headers that encode the referrer value in their pixels. We read the pixels via `<canvas>` and decode the value. But that relies on lax handling of mixed image content. That's going to be difficult to do from inside a service worker.

That said, I'm not sure I understand what you're trying to test. Since we expect `fetch()` to a non-secure endpoint to be blocked, shouldn't the test make that assertion instead?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1094#issuecomment-289359582

Received on Monday, 27 March 2017 05:49:50 UTC