Firefox 59 forgets to set Content-Type request header when re-posting multipart form data?

bug refference: Bug 1341301 Resending form post data is broken if a service worker is registered

steps to reproduce:

  1. First, visit page without Service Worker (SW off)

  2. There are two forms on the page. With each form do these:

    1. Post the form once clicking the submit button.

    2. Check if page has content-type in its request http headers (see status display below).

    3. Then reload the posted page (of course, Firefox will warn you if you are sure to post the data again).

    4. Check if the page reloads, or reloaded page has content-type in its request http headers (see status display below).

    EXPECTED: Reloads fine, with content-type header sent as request http header.

    ACTUAL: Works as expected.

  3. Then, visit page with Service Worker (SW ON, content of sw.js here)

  4. Do the test as shown in (2.) above for each form.

    EXPECTED: Reloads fine, with content-type header sent as request http header.

    ACTUAL: Form 1 does not reloads. Form 2 reloads but without content-type request http header.

status

Form 1

Form 2