Closed Bug 1216697 Opened 9 years ago Closed 9 years ago

Remove fetch RequestCache until we can implement

Categories

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

defect
Not set
normal

Tracking

()

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

People

(Reporter: bkelly, Assigned: ehsan.akhgari)

References

Details

Attachments

(2 files)

Currently we define the webidl for RequestCache, but don't implement it. We should remove this webidl until its fully implemented so sites can feature detect it. This should be uplifted to beta/aurora so that they can reasonably feature detect for the next few months until we release the real implementation.
Note, this is just to hide the Request.cache property. We should keep the RequestCache enum since we already set it properly on the Request and plumb it all down into Cache. We just should hide the property so people can feature detect where its useful for or not. Once FetchDriver looks at we can expose the property.
This should probably be behind a pref like RequestContext to avoid removing all our tests and then re-adding them later.
Any chance you have the bandwidth for this? The window is closing before the next merge, and I have some other bugs I'm working on that also need to happen before merge.
Flags: needinfo?(ehsan)
Sure!
Assignee: bkelly → ehsan
Flags: needinfo?(ehsan)
Attachment #8678152 - Flags: review?(bzbarsky)
Comment on attachment 8678152 [details] [diff] [review] Unship Request.cache until the implementation is finished This diff is missing test_request_cache.html. r=me with it added, but I'd like to see that test file.
Attachment #8678152 - Flags: review?(bzbarsky) → review+
Sorry for the missing file!
Comment on attachment 8678248 [details] [diff] [review] Unship Request.cache until the implementation is finished Approval Request Comment [Feature/regressing bug #]: We accidentally exposed this attribute without having a full implementation. I'd like to backport this patch that hides it so that web developers can feature detect it. [User impact if declined]: Web developers won't be able to feature detect whether we support Request.cache, and would have to look at the UA string version number of other terrible hacks like that. [Describe test coverage new/current, TreeHerder]: Locally. [Risks and why]: This is pretty harmless. [String/UUID change made/needed]: None.
Attachment #8678248 - Flags: approval-mozilla-beta?
Attachment #8678248 - Flags: approval-mozilla-aurora?
Comment on attachment 8678248 [details] [diff] [review] Unship Request.cache until the implementation is finished This is really late :/ Taking it because we don't have much choice. Should be in 42 rc1.
Attachment #8678248 - Flags: approval-mozilla-beta?
Attachment #8678248 - Flags: approval-mozilla-beta+
Attachment #8678248 - Flags: approval-mozilla-aurora?
Attachment #8678248 - Flags: approval-mozilla-aurora+
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
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: