Closed Bug 1419684 Opened 7 years ago Closed 7 years ago

Have a temporary quirk for CORS Response with same-origin mode Request with a pref

Categories

(Core :: DOM: Service Workers, enhancement, P2)

enhancement

Tracking

()

RESOLVED WONTFIX

People

(Reporter: tt, Assigned: tt)

References

Details

Attachments

(1 file)

Please refer to bug 1222008 comment #55. Basically, when the service worker intercepts a "same-origin" mode request and responds a "Cors" type response, we would like to reject the promise. However, we need to deal with this case after collecting data in bug 1416629. Thus, the temporary solution for this is to have a pref which have a method to trim the response and turn it on by default. The method to trim the response should behave the same as the following js executed in the service worker's script: var quirkResponse = new Response(corsResponse.body, corsResponse);
It should be a follow-up patch instead of a follow-up bug
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
Reopen the bug since we decide to reject the promise by default and add a pref for enabling the quirk response.
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Status: REOPENED → ASSIGNED
Ha! I forgot you wrote this bug and I asked you to close it before. So sorry for the back and forth.
Attached patch wip (deleted) — Splinter Review
Tom, given the low hit rate on the telemetry in both Firefox and chrome so far, let's wait to put any more effort in here for a while. We can check the telemetry again in January and add the quick before 59 merged to beta then, if necessary. Sound reasonable?
(In reply to Ben Kelly [:bkelly] from comment #5) > Tom, given the low hit rate on the telemetry in both Firefox and chrome so > far, let's wait to put any more effort in here for a while. We can check > the telemetry again in January and add the quick before 59 merged to beta > then, if necessary. > > Sound reasonable? Yeah, sounds reasonable. Thanks!
Priority: -- → P2
Sounds reasonable. Can you look at updating the tests we marked expected fail for this change? We should also signal to the spec we want to ship this.
(In reply to Ben Kelly [:bkelly] from comment #8) > Sounds reasonable. Can you look at updating the tests we marked expected > fail for this change? We should also signal to the spec we want to ship > this. Sure, I filed bug 1427978 for it.
Mark this bug as "won't fix" based on the result of collecting data in comment #7
Status: ASSIGNED → RESOLVED
Closed: 7 years ago7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: