Closed Bug 398478 Opened 17 years ago Closed 17 years ago

clear globalStorage for offline apps separately from cookies

Categories

(Firefox :: General, defect, P4)

defect

Tracking

()

RESOLVED FIXED
Firefox 3 beta3

People

(Reporter: dcamp, Assigned: dcamp)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

Attached patch v1 (obsolete) (deleted) — Splinter Review
When clearing private data: * We don't want offline website data to be cleared with cookies * We do want globalStorage for non-offline apps to be cleared with cookies. The attached patch clears these two sets separately. It's a bit ugly, suggestions for alternate approaches would be nice.
Attachment #283461 - Flags: review?(enndeakin)
Flags: blocking-firefox3?
Flags: blocking-firefox3? → blocking-firefox3+
Blocks: 398161
Attachment #283461 - Flags: review?(enndeakin) → review+
Target Milestone: --- → Firefox 3 M11
Priority: -- → P5
not blocking, but we'd take this if its ready.
Flags: wanted-firefox3+
Flags: blocking-firefox3-
Flags: blocking-firefox3+
Priority: P5 → P4
Target Milestone: Firefox 3 Mx → Firefox 3 M11
Comment on attachment 283461 [details] [diff] [review] v1 biesi, you ok with the cache service change?
Attachment #283461 - Flags: review?(cbiesinger)
Comment on attachment 283461 [details] [diff] [review] v1 + if (type == NS_LITERAL_CSTRING("offline-app")) { type.EqualsLiteral sr=biesi
Attachment #283461 - Flags: review?(cbiesinger) → review+
Attachment #283461 - Flags: review?(mconnor)
Blocks: 405708
Blocks: 405709
Comment on attachment 283461 [details] [diff] [review] v1 >diff --git a/browser/base/content/sanitize.js b/browser/base/content/sanitize.js >--- a/browser/base/content/sanitize.js >+++ b/browser/base/content/sanitize.js >@@ -118,16 +118,38 @@ Sanitizer.prototype = { > }, > > get canClear() > { > return true; > } > }, > >+ offlineApps: { >+ clear: function () >+ { >+ const cc = Components.classes; >+ const ci = Components.interfaces; uber-nit: Cc/Ci vs. cc/ci for consistency with everywhere else. >+ var cacheService = cc["@mozilla.org/network/cache-service;1"] >+ .getService(ci.nsICacheService); prevailing browser style is: var cacheService = Cc["@mozilla.org/network/cache-service;1"]. getService(ci.nsICacheService); leading dots only if they align. >diff --git a/browser/base/content/sanitize.xul b/browser/base/content/sanitize.xul >@@ -144,16 +145,20 @@ gSanitizePromptDialog.onReadGeneric();"/> >+ <checkbox label="&itemOfflineApps.label;" >+ accesskey="&itemOfflineApps.accesskey;" >+ preference="privacy.item.offlineApps" >+ onsyncfrompreference="return gSanitizePromptDialog.onReadGeneric tabs are evil, use spaces or this looks funny. r=me with nits addressed
Attachment #283461 - Flags: review?(mconnor) → review+
Attachment #283461 - Flags: approval1.9+
Attached patch patch as committed (deleted) — Splinter Review
Checking in browser/base/content/sanitize.js; /cvsroot/mozilla/browser/base/content/sanitize.js,v <-- sanitize.js new revision: 1.25; previous revision: 1.24 done Checking in browser/base/content/sanitize.xul; /cvsroot/mozilla/browser/base/content/sanitize.xul,v <-- sanitize.xul new revision: 1.16; previous revision: 1.15 done Checking in browser/components/preferences/sanitize.xul; /cvsroot/mozilla/browser/components/preferences/sanitize.xul,v <-- sanitize.xul new revision: 1.16; previous revision: 1.15 done Checking in browser/locales/en-US/chrome/browser/sanitize.dtd; /cvsroot/mozilla/browser/locales/en-US/chrome/browser/sanitize.dtd,v <-- sanitize.dtd new revision: 1.10; previous revision: 1.9 done Checking in dom/public/idl/storage/nsIDOMStorageManager.idl; /cvsroot/mozilla/dom/public/idl/storage/nsIDOMStorageManager.idl,v <-- nsIDOMStorageManager.idl new revision: 1.2; previous revision: 1.1 done Checking in dom/src/storage/nsDOMStorage.cpp; /cvsroot/mozilla/dom/src/storage/nsDOMStorage.cpp,v <-- nsDOMStorage.cpp new revision: 1.22; previous revision: 1.21 done Checking in dom/src/storage/nsDOMStorageDB.cpp; /cvsroot/mozilla/dom/src/storage/nsDOMStorageDB.cpp,v <-- nsDOMStorageDB.cpp new revision: 1.12; previous revision: 1.11 done Checking in dom/src/storage/nsDOMStorageDB.h; /cvsroot/mozilla/dom/src/storage/nsDOMStorageDB.h,v <-- nsDOMStorageDB.h new revision: 1.11; previous revision: 1.10 done Checking in netwerk/cache/src/nsCacheService.cpp; /cvsroot/mozilla/netwerk/cache/src/nsCacheService.cpp,v <-- nsCacheService.cpp new revision: 1.116; previous revision: 1.115 done
Attachment #283461 - Attachment is obsolete: true
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
I haven't verified it but bug 413817 looks related.
Depends on: 413817
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: