New issue
Advanced search Search tips

Issue 793783 link

Starred by 3 users

Issue metadata

Status: Assigned
Owner:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Posting a file fails if there's a service worker

Project Member Reported by jakearchibald@chromium.org, Dec 11 2017

Issue description

https://post-file-serviceworker-test.glitch.me/

1. Click the file input and select a file.
1. JS will post the file to the server.
1. See the console.

Without the service worker (shift+reload) the server posts the file back. However, this fails when the service worker is controlling the page.

The service worker seems to lose the request body & the fetch fails.
 
I added a "Send hello world blob" button which sends a JS-constructed blob. This appears to work fine, so the problem isn't universal to all blobs.

Comment 2 by falken@chromium.org, Dec 12 2017

Owner: falken@chromium.org
Status: Assigned (was: Untriaged)
Huh interesting. Uploading the file by submitting a form seems to work:
https://aware-flame.glitch.me/ (go to "main resource test")

I'm currently working on request bodies for S13nSW, didn't know there are also bugs in non-S13nSW.

Comment 3 by falken@chromium.org, Dec 18 2017

Components: -Blink>Network>FetchAPI Blink>Storage

Comment 4 by jsb...@chromium.org, Jan 18 2018

Components: -Blink>Storage Blink>FileAPI
I'm not seeing anything storage related... ? Marking FileAPI due to blob use.
Components: Blink>Storage>FileAPI
Components: -Blink>FileAPI

Sign in to add a comment