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 738720 - Private browsing leaves data in localstorage
Private browsing leaves data in localstorage
Status: RESOLVED FIXED
Product: epiphany
Classification: Core
Component: General
3.14.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: Michael Catanzaro
Epiphany Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-10-17 20:30 UTC by erusan
Modified: 2014-11-25 13:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Do not use the default WebKitWebContext (27.85 KB, patch)
2014-11-24 13:05 UTC, Carlos Garcia Campos
none Details | Review
embed: Use a custom local storage directory for epiphany (1.38 KB, patch)
2014-11-24 13:05 UTC, Carlos Garcia Campos
committed Details | Review
Do not use the default WebKitWebContext (27.63 KB, patch)
2014-11-24 13:09 UTC, Carlos Garcia Campos
committed Details | Review

Description erusan 2014-10-17 20:30:02 UTC
Reproduce:
1) Open a incognito window
2) Visit a website
3) File appears in ~/.local/share/webkitgtk/localstorage/
4) Exit application
5) Data remains in ~/.local/share/webkitgtk/localstorage/

Private browsing should purge all related data on exit
Comment 1 Carlos Garcia Campos 2014-11-18 11:23:16 UTC
See https://bugs.webkit.org/show_bug.cgi?id=138828
Comment 2 Carlos Garcia Campos 2014-11-24 13:05:05 UTC
Created attachment 291352 [details] [review]
Do not use the default WebKitWebContext
Comment 3 Carlos Garcia Campos 2014-11-24 13:05:41 UTC
Created attachment 291353 [details] [review]
embed: Use a custom local storage directory for epiphany
Comment 4 Carlos Garcia Campos 2014-11-24 13:06:56 UTC
I have disabled the prefetch DNS in location-entry for now, since it's at the wrong place, and this is more important.
Comment 5 Carlos Garcia Campos 2014-11-24 13:09:22 UTC
Created attachment 291354 [details] [review]
Do not use the default WebKitWebContext

Removed a workaround that is no longer needed and I forgot to remove.
Comment 6 Michael Catanzaro 2014-11-24 19:39:25 UTC
Review of attachment 291354 [details] [review]:

Don't forget to bump the minimum WebKit version

::: embed/ephy-web-view.c
@@ +2193,3 @@
 ephy_web_view_new_with_related_view (WebKitWebView *related_view)
 {
+  EphyEmbedShell *shell = ephy_embed_shell_get_default ();

You don't need this one here!

::: lib/widgets/ephy-location-entry.c
@@ +38,3 @@
 #include <string.h>
+#if 0
+/* FIXME: Refactor the DNS prefetch, this is a layering violation */

Huh, didn't realize we were doing this. I wonder where would be a good place to handle this if not the location entry....
Comment 7 Michael Catanzaro 2014-11-24 19:44:48 UTC
(In reply to comment #6)
> Review of attachment 291354 [details] [review]:
> 
> Don't forget to bump the minimum WebKit version

Just kidding.
Comment 8 Carlos Garcia Campos 2014-11-25 07:15:27 UTC
(In reply to comment #6)
> Review of attachment 291354 [details] [review]:
> 
> Don't forget to bump the minimum WebKit version

Already did it in master.

> ::: embed/ephy-web-view.c
> @@ +2193,3 @@
>  ephy_web_view_new_with_related_view (WebKitWebView *related_view)
>  {
> +  EphyEmbedShell *shell = ephy_embed_shell_get_default ();
> 
> You don't need this one here!

Right, forgot to remove this too when removed the workaround. Thanks!

> ::: lib/widgets/ephy-location-entry.c
> @@ +38,3 @@
>  #include <string.h>
> +#if 0
> +/* FIXME: Refactor the DNS prefetch, this is a layering violation */
> 
> Huh, didn't realize we were doing this. I wonder where would be a good place to
> handle this if not the location entry....

lib/widgets don't know anything about embed, the location entry could emit a signal notifying that an element in the completion list has been hovered, for example. But I even doubt that doing a DNS prefetch of the elements hovered in the completion list is that useful.