Bug 184269 - Redirect fails when navigating to a different origin on a page with a service worker
Summary: Redirect fails when navigating to a different origin on a page with a service...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Service Workers (show other bugs)
Version: Safari Technology Preview
Hardware: Mac macOS 10.13
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-03 10:17 PDT by Sergey Peshkov
Modified: 2018-04-03 10:17 PDT (History)
1 user (show)

See Also:


Attachments
Minimal application configuration to reproduce the bug (1.58 KB, application/zip)
2018-04-03 10:17 PDT, Sergey Peshkov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Peshkov 2018-04-03 10:17:10 PDT
Created attachment 337085 [details]
Minimal application configuration to reproduce the bug

The attachment contains a minimal case to reproduce the following issue. It includes a Dockerfile with a minimal application configuration, consisting of an html page, an empty service worker script and Nginx server. Nginx is configured to operate on ports 5000 and 5001.

Server on port 5000 is used to serve index.html and serviceworker.js. It also performs a redirect to the second server which runs on port 5001 and serves file.txt.

index.html has an <a> tag with ‘href’ set to ‘/redirect’. When a user clicks this link, navigating to :5001/file.txt, while being expected, does not occur.

Safari version: Release 52 (Safari 11.2, WebKit 13606.1.9.3.1)
OS version: macOS 10.13.4