Closed
Bug 917432
Opened 11 years ago
Closed 11 years ago
HTTP cache v2: hook to "webapps-clear-data" notification
Categories
(Core :: Networking: Cache, defect)
Tracking
()
RESOLVED
FIXED
mozilla28
People
(Reporter: mayhemer, Assigned: mayhemer)
References
Details
(Whiteboard: [cache2][qa-])
Attachments
(1 file, 4 obsolete files)
30.79 KB,
patch
|
michal
:
review+
mayhemer
:
checkin+
|
Details | Diff | Splinter Review |
See nsHttpHandler::Observe()
Assignee | ||
Comment 1•11 years ago
|
||
This is a WIP to check we can do it with the new API. The patch might be added to bug 917275, as I'm thinking of it.
However, I think this doesn't belong to the nsHttpHandler any more. This needs to move to CacheObserver.
Assignee: nobody → honzab.moz
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•11 years ago
|
||
- correct hook to web-apps-clear-data inside the new cache code
- however, still doesn't delete data on disk:
EvictionRunnable(nsCSubstring const & aContextKey, TCacheEntryTable* aEntries,
...
NS_IMETHOD Run()
{
LOG(("EvictionRunnable::Run [this=%p, disk=%d]", this, mUsingDisk));
if (CacheStorageService::IsOnManagementThread()) {
if (mUsingDisk) {
// TODO for non private entries:
// - rename/move all files to TRASH, block shutdown
// - start the TRASH removal process
// - may also be invoked from the main thread...
}
We need a plan also on deleting individual files by certain criteria.
Attachment #806216 -
Attachment is obsolete: true
Assignee | ||
Comment 3•11 years ago
|
||
Comment on attachment 810021 [details] [diff] [review]
v1
This shows up being a regular fix. Deleting individual files should be handled in a different bug (the eviction or index bug).
Needs a more careful review this time, some of the default running code is modified.
Attachment #810021 -
Attachment description: WIP2 → v1
Attachment #810021 -
Flags: review?(michal.novotny)
Assignee | ||
Comment 4•11 years ago
|
||
I have an updated patch already. Will submit tomorrow.
Assignee | ||
Updated•11 years ago
|
Attachment #810021 -
Flags: review?(michal.novotny)
Assignee | ||
Comment 5•11 years ago
|
||
Changes from v1:
- if a URL scheme is not one of http,ftp,wiciwyg, then the URL scheme is used as session name ; v1 was assert(false)'ing
Attachment #810021 -
Attachment is obsolete: true
Attachment #813756 -
Flags: review?(michal.novotny)
Assignee | ||
Comment 6•11 years ago
|
||
Comment on attachment 813756 [details] [diff] [review]
v2
Here is a try run of stack of patches for:
bug 922659
bug 922671
bug 922741
bug 917432 (this one)
https://tbpl.mozilla.org/?tree=Try&rev=b830b18e9c1c
and is green for cache2 disabled :)
Assignee | ||
Comment 7•11 years ago
|
||
- same as previous v2, just merged
Attachment #813756 -
Attachment is obsolete: true
Attachment #813756 -
Flags: review?(michal.novotny)
Attachment #827976 -
Flags: review?(michal.novotny)
Assignee | ||
Comment 8•11 years ago
|
||
- cleanup of GetCacheSessionNameForStoragePolicy ; using sessionName.Assign(NS_LITERAL_CSTRING()) which is the fastest way of assigning a literal
- schemes other then http, wyciwyg or ftp are using session name 'other' or 'other-private' + appid/in-browser jar
- this allows the new API to consistently delete any user data inside a defined load context (correct cache partitioning according the new api) even with cache2 off
cache2 on: https://tbpl.mozilla.org/?tree=Gum&rev=ae6d25ad7724
cache2 off: https://tbpl.mozilla.org/?tree=Try&rev=7b66d8eaea88
Attachment #827976 -
Attachment is obsolete: true
Attachment #827976 -
Flags: review?(michal.novotny)
Attachment #831057 -
Flags: review?(michal.novotny)
Updated•11 years ago
|
Attachment #831057 -
Flags: review?(michal.novotny) → review+
Assignee | ||
Comment 9•11 years ago
|
||
Comment on attachment 831057 [details] [diff] [review]
v3
https://hg.mozilla.org/integration/mozilla-inbound/rev/66a063b14ddb
https://tbpl.mozilla.org/?tree=Try&rev=69d73cf7f79a
Attachment #831057 -
Flags: checkin+
Comment 10•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Updated•11 years ago
|
Whiteboard: [cache2] → [cache2][qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•