Issue metadata
Sign in to add a comment
|
event.respondWith ignores the URL if the request is resolved by a redirection
Reported by
esanz...@gmail.com,
Nov 20
|
||||||||||||||||||||||
Issue description
UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3616.0 Safari/537.36
Steps to reproduce the problem:
1. If web worker invokes `event.respondWith(fetch('https://httpbin.org/redirect-to?url=https://httpbin.org/get'))`
2. Fetch resolves via a redirection and results in a response with the final URL of 'https://httpbin.org/get'.
3. event.respondWith ignores the URL of Fetch and assigns the URL: 'https://httpbin.org/redirect-to?url=https://httpbin.org/get'.
Example: https://esanzgar.github.io/respondWith-issue/
Code: https://github.com/esanzgar/respondWith-issue
What is the expected behavior?
URL of the response should be 'https://httpbin.org/get'.
What went wrong?
URL of the response is 'https://httpbin.org/redirect-to?url=https://httpbin.org/get'
Did this work before? N/A
Does this work in other browsers? Yes
Chrome version: 72.0.3616.0 Channel: canary
OS Version: OS X 10.14.1
Flash Version:
,
Dec 14
Thanks for filing this and for the example/code. I'm tracking this at issue 915126 . |
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by wanderview@chromium.org
, Nov 20Status: Duplicate (was: Unconfirmed)