Closed Bug 352447 Opened 18 years ago Closed 18 years ago

move "Show Passwords" button to RHS, add "Clear Now" for cache

Categories

(Firefox :: Settings UI, defect)

2.0 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 2

People

(Reporter: beltzner, Assigned: beltzner)

References

Details

(Keywords: fixed1.8.1)

Attachments

(1 file, 2 obsolete files)

A couple of preference panel cleanups with no l10n effects: - move the "Show Passwords" button to be right-aligned like the other buttons - add a "Clear Now" button to Advanced > Network > Cache Patch pending.
Attached patch moves and adds buttons (obsolete) — Splinter Review
Attachment #238131 - Flags: review?(gavin.sharp)
Apparently this works better when the function I call, you know, actually exists. This time I actually tested it and it does, indeed, clear the cache.
Attachment #238131 - Attachment is obsolete: true
Attachment #238135 - Flags: review?(gavin.sharp)
Attachment #238131 - Flags: review?(gavin.sharp)
Gavin points out that the button doesn't really give any feedback that it's done anything at all. Lucy points out that this is also true of the "Clear Now" button. I think a good (if somewhat fake) solution for this would be to disable the button after it's clicked, but re-enable it when the prefwindow blurs, as until that point it would be impossible to reaccumulate private data. If there's a better way to listen for changes to cache/private data entries, that would be even better. Either way, that feels like a separate bug.
Comment on attachment 238135 [details] [diff] [review] moves and adds buttons, function to js file >Index: browser/components/preferences/advanced.js >+ clearCache: function () >+ { >+ const cc = Components.classes; >+ const ci = Components.interfaces; >+ var cacheService = cc["@mozilla.org/network/cache-service;1"] >+ .getService(ci.nsICacheService); >+ try { >+ cacheService.evictEntries(ci.nsICache.STORE_ANYWHERE); >+ } catch(er) {} >+ }, I'll fix a little style nit here on checkin.
Attachment #238135 - Flags: review?(gavin.sharp) → review+
Assignee: nobody → beltzner
Attached patch as checked inSplinter Review
mozilla/browser/components/preferences/security.xul 1.12 mozilla/browser/components/preferences/advanced.xul 1.34 mozilla/browser/components/preferences/advanced.js 1.26
Attachment #238135 - Attachment is obsolete: true
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Drivers: low risk fix for medium gain usability increase. The patch contains some absolutely safe XUL changes and also copies an existing function (for cache clearing) into advanced.js to allow us to clear the cache from the prefpane; this makes the task of clearing the cache much easier for web developers and other users who must do it often. Adding new code, not changing existing, so there's no chance of causing regressions in other areas.
Whiteboard: [drivers see comment 6]
Comment on attachment 238160 [details] [diff] [review] as checked in a=schrep for 181drivers for functional regression (clear cache now) from 1.5.x
Attachment #238160 - Flags: approval1.8.1? → approval1.8.1+
Whiteboard: [drivers see comment 6] → [checkin needed (1.8 branch)]
mozilla/browser/components/preferences/security.xul 1.5.2.7 mozilla/browser/components/preferences/advanced.xul 1.17.2.19 mozilla/browser/components/preferences/advanced.js 1.15.2.12
Keywords: fixed1.8.1
Whiteboard: [checkin needed (1.8 branch)]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: