Closed Bug 1215290 Opened 9 years ago Closed 9 years ago

Cache API should store the unfiltered response URL

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla44
Tracking Status
firefox43 --- fixed
firefox44 --- fixed

People

(Reporter: bkelly, Assigned: bkelly)

References

Details

Attachments

(1 file)

Currently Cache API just stores the content visible response URL.  It should be storing the real unfiltered URL to fully recreate the Response on cache.match().  Currently opaque responses read from Cache API will have an empty string unfiltered URL.
Assignee: nobody → bkelly
Status: NEW → ASSIGNED
Attachment #8674492 - Flags: review?(ehsan)
Attachment #8674492 - Flags: review?(ehsan) → review+
https://hg.mozilla.org/mozilla-central/rev/e4417f0eeeee
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
Comment on attachment 8674492 [details] [diff] [review]
Cache API should store unfiltered Response URL. r=ehsan

Approval Request Comment
[Feature/regressing bug #]: service workers and cache API
[User impact if declined]: We need this to fully support certain types of service worker interception.  In particular, I want to uplift this to avoid the corner case where someone creates a Cache in 43, gets a wrong URL stored on disk, and then later runs into a problem when we enable service worker opaque interception.
[Describe test coverage new/current, TreeHerder]: No impact until service workers enabled.
[Risks and why]: None.  One line change and no user visible effect yet.
[String/UUID change made/needed]:  None.
Attachment #8674492 - Flags: approval-mozilla-aurora?
Again, I want to get this in 43 so that people don't create cache objects on disk that will later be a problem when we enable service workers.
Comment on attachment 8674492 [details] [diff] [review]
Cache API should store unfiltered Response URL. r=ehsan

OK to uplift to aurora; SW will be disabled by default soon but it will be good to make sure this is consistent in 43
Attachment #8674492 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: