Closed
Bug 398478
Opened 17 years ago
Closed 17 years ago
clear globalStorage for offline apps separately from cookies
Categories
(Firefox :: General, defect, P4)
Firefox
General
Tracking
()
RESOLVED
FIXED
Firefox 3 beta3
People
(Reporter: dcamp, Assigned: dcamp)
References
Details
Attachments
(1 file, 1 obsolete file)
17.03 KB,
patch
|
Details | Diff | 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)
Assignee | ||
Updated•17 years ago
|
Flags: blocking-firefox3?
Updated•17 years ago
|
Flags: blocking-firefox3? → blocking-firefox3+
Updated•17 years ago
|
Attachment #283461 -
Flags: review?(enndeakin) → review+
Updated•17 years ago
|
Target Milestone: --- → Firefox 3 M11
Updated•17 years ago
|
Priority: -- → P5
Comment 1•17 years ago
|
||
not blocking, but we'd take this if its ready.
Flags: wanted-firefox3+
Flags: blocking-firefox3-
Flags: blocking-firefox3+
Priority: P5 → P4
Updated•17 years ago
|
Target Milestone: Firefox 3 Mx → Firefox 3 M11
Assignee | ||
Comment 2•17 years ago
|
||
Comment on attachment 283461 [details] [diff] [review]
v1
biesi, you ok with the cache service change?
Attachment #283461 -
Flags: review?(cbiesinger)
Comment 3•17 years ago
|
||
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+
Assignee | ||
Updated•17 years ago
|
Attachment #283461 -
Flags: review?(mconnor)
Comment 4•17 years ago
|
||
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+
Updated•17 years ago
|
Attachment #283461 -
Flags: approval1.9+
Assignee | ||
Comment 5•17 years ago
|
||
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
Assignee | ||
Updated•17 years ago
|
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Comment 6•17 years ago
|
||
I haven't verified it but bug 413817 looks related.
You need to log in
before you can comment on or make changes to this bug.
Description
•