After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 737808 - Remove broken cache size preference
Remove broken cache size preference
Status: RESOLVED FIXED
Product: epiphany
Classification: Core
Component: General
git master
Other All
: Normal normal
: ---
Assigned To: Epiphany Maintainers
Epiphany Maintainers
Depends on:
Blocks: 741447
 
 
Reported: 2014-10-02 22:11 UTC by Michael Catanzaro
Modified: 2015-02-08 15:46 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Remove cache size preference (11.03 KB, patch)
2014-10-02 22:11 UTC, Michael Catanzaro
none Details | Review
Add Clear Personal Data to app menu (3.72 KB, patch)
2014-10-02 22:11 UTC, Michael Catanzaro
none Details | Review
Remove the cache size preference and clear personal data dialog (35.96 KB, patch)
2014-12-12 15:14 UTC, Michael Catanzaro
none Details | Review
Remove cache size preference (9.94 KB, patch)
2015-02-08 02:25 UTC, Michael Catanzaro
none Details | Review
screenshot (38.54 KB, image/png)
2015-02-08 02:26 UTC, Michael Catanzaro
  Details
Remove cache size preference (10.48 KB, patch)
2015-02-08 02:29 UTC, Michael Catanzaro
accepted-commit_now Details | Review
Remove cache size preference (10.48 KB, patch)
2015-02-08 15:27 UTC, Michael Catanzaro
none Details | Review
Remove cache size preference (11.10 KB, patch)
2015-02-08 15:46 UTC, Michael Catanzaro
committed Details | Review

Description Michael Catanzaro 2014-10-02 22:11:17 UTC
Lapo in #gnome-design agreed the app menu would be a good location for Clear Personal Data.

Since this doesn't require any new strings, I think we have a chance at getting a UI freeze break for this for 3.14.1. Is it OK if I request one?
Comment 1 Michael Catanzaro 2014-10-02 22:11:20 UTC
Created attachment 287623 [details] [review]
Remove cache size preference

It's not hooked up to anything, and there's no WebKit API for
controlling cache size, and we're not going to add one.

A casualty of this commit is the clear personal data dialog, which was
previously located right next to the cache size spin button. That will
be restored in the next commit.
Comment 2 Michael Catanzaro 2014-10-02 22:11:23 UTC
Created attachment 287624 [details] [review]
Add Clear Personal Data to app menu

The button to launch this dialog was removed from the preferences
dialog in the previous patch.
Comment 3 Carlos Garcia Campos 2014-12-09 09:04:46 UTC
I'm not sure if the app menu is the best place for the clear personal data.
Comment 4 Claudio Saavedra 2014-12-09 10:59:27 UTC
Nope, definitely not the app menu. Preferences would be a better place.
Comment 5 Michael Catanzaro 2014-12-09 11:05:08 UTC
If we want it in preferences, we need help from a designer, since I have no clue where I would put it.

(The app menu seemed like a good idea since the dialog has nothing to do with preferences. :)
Comment 6 Michael Catanzaro 2014-12-10 19:13:23 UTC
We decided to remove the clear data dialog, cause the button to clear the browser cache (without deleting history, cookies, or passwords -- we have three other dialogs for those already), replace the cache size spin button with a sentence explaining the functionality of the button, and move the button to the right of that sentence.

Maybe the sentence could be something like this:

"You can clear temporary files that are cached on your computer. These files speed up web browsing, but can reveal your browsing history."

There's no need to warn that the action cannot be undone, since it's just the cache.

Actually, this should clear localstorage as well (though I bet it currently does not). I wonder if we need to warn about that?
Comment 7 Michael Catanzaro 2014-12-12 15:14:47 UTC
Created attachment 292614 [details] [review]
Remove the cache size preference and clear personal data dialog

The cache size preference is next to the Clear Personal Data button, so
to remove it we must find a better home for this button. Use a sentence
label to explain the effect of the button, and remove the actual dialog,
since all of the options are redundant with existing dialogs (passwords,
cookies, history) except for clearing the cache.
 
This is an initial implementation, probably not something to commit because it (a) could look better, and (b) I've been warned that there is not enough space f
or translators.
Comment 8 Michael Catanzaro 2015-02-08 02:25:03 UTC
Created attachment 296359 [details] [review]
Remove cache size preference

There is no way to set the cache size in WebKit2, and the max size is
ludicrously lower (sans bugs) than anybody would care about.

So this patch keeps the clear data dialog, which we agreed to remove, but I had a bit of trouble doing that with a professional-looking result. So this patch still launches the dialog when you press the button, which we can remove in the future if we want to.
Comment 9 Michael Catanzaro 2015-02-08 02:26:17 UTC
Created attachment 296360 [details]
screenshot

We can also move the button up parallel to the heading, like it is for the other two buttons, but I think it looks better down lower.
Comment 10 Michael Catanzaro 2015-02-08 02:29:42 UTC
Created attachment 296361 [details] [review]
Remove cache size preference

The last heading in the screeshot should be "Stored Data" not "Temporary Files"
Comment 11 Carlos Garcia Campos 2015-02-08 11:13:12 UTC
Review of attachment 296361 [details] [review]:

I guess this is ok, until we figure out how to properly rework the data cleanup in general. Please, remove also the definition of EPHY_PREFS_CACHE_SIZE in lib/ephy-prefs.h
Comment 12 Michael Catanzaro 2015-02-08 15:27:45 UTC
Created attachment 296384 [details] [review]
Remove cache size preference

There is no way to set the cache size in WebKit2, and the max size is
ludicrously lower (sans bugs) than anybody would care about.
Comment 13 Michael Catanzaro 2015-02-08 15:46:48 UTC
The following fix has been pushed:
3a26cf2 Remove cache size preference
Comment 14 Michael Catanzaro 2015-02-08 15:46:53 UTC
Created attachment 296385 [details] [review]
Remove cache size preference

There is no way to set the cache size in WebKit2, and the max size is
ludicrously lower (sans bugs) than anybody would care about.