Bug 71631

Summary: Need a way to allow a scheme access to Local Storage and Databases while Private Browsing is enabled
Product: WebKit Reporter: Jessie Berlin <jberlin>
Component: WebKit APIAssignee: Jessie Berlin <jberlin>
Status: RESOLVED FIXED    
Severity: Normal CC: adauria, dglazkov, jberlin, sam, timothy, webkit.review.bot, yong.li.webkit
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
sam: review+, webkit.review.bot: commit-queue-
Patch (with Chromium build fix) none

Jessie Berlin
Reported 2011-11-06 12:54:37 PST
Attachments
Patch (14.81 KB, patch)
2011-11-06 13:24 PST, Jessie Berlin
sam: review+
webkit.review.bot: commit-queue-
Patch (with Chromium build fix) (16.27 KB, patch)
2011-11-06 14:09 PST, Jessie Berlin
no flags
Jessie Berlin
Comment 1 2011-11-06 13:24:43 PST
WebKit Review Bot
Comment 2 2011-11-06 13:45:42 PST
Comment on attachment 113800 [details] Patch Attachment 113800 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/10338488
Jessie Berlin
Comment 3 2011-11-06 14:09:05 PST
Created attachment 113802 [details] Patch (with Chromium build fix)
Jon Honeycutt
Comment 4 2011-11-07 01:25:45 PST
Comment on attachment 113802 [details] Patch (with Chromium build fix) View in context: https://bugs.webkit.org/attachment.cgi?id=113802&action=review r=me > Source/WebCore/ChangeLog:24 > + (WebCore::SchemeRegistry::registerURLSchmeAsIgnoringPrivateBrowsingForLocalStorage): Typo: Schme > Source/WebCore/ChangeLog:26 > + (WebCore::SchemeRegistry::registerURLSchmeAsIgnoringPrivateBrowsingForDatabases): And here (and elsewhere). > Source/WebCore/platform/SchemeRegistry.h:77 > + static bool shouldIgnorePrivateBrowsingForLocalStorage(const String& scheme); > + static void registerURLSchmeAsIgnoringPrivateBrowsingForDatabases(const String& scheme); > + static bool shouldIgnorePrivateBrowsingForDatabases(const String& scheme); I think names like "allowsLocalStorageInPrivateBrowsing()" would be more readable, especially when testing the inverse condition. > Source/WebCore/storage/Storage.cpp:32 > +#include "SchemeRegistry.h" > +#include "SecurityOrigin.h" Doesn't look like you need these.
Jessie Berlin
Comment 5 2011-11-07 09:02:44 PST
(In reply to comment #4) > (From update of attachment 113802 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=113802&action=review > > r=me Thanks! > > > Source/WebCore/ChangeLog:24 > > + (WebCore::SchemeRegistry::registerURLSchmeAsIgnoringPrivateBrowsingForLocalStorage): > > Typo: Schme Fixed. > > > Source/WebCore/ChangeLog:26 > > + (WebCore::SchemeRegistry::registerURLSchmeAsIgnoringPrivateBrowsingForDatabases): > > And here (and elsewhere). Fixed. > > > Source/WebCore/platform/SchemeRegistry.h:77 > > + static bool shouldIgnorePrivateBrowsingForLocalStorage(const String& scheme); > > + static void registerURLSchmeAsIgnoringPrivateBrowsingForDatabases(const String& scheme); > > + static bool shouldIgnorePrivateBrowsingForDatabases(const String& scheme); > > I think names like "allowsLocalStorageInPrivateBrowsing()" would be more readable, especially when testing the inverse condition. Changed to "allowsLocalStorageAccessInPrivateBrowsing". > > > Source/WebCore/storage/Storage.cpp:32 > > +#include "SchemeRegistry.h" > > +#include "SecurityOrigin.h" > > Doesn't look like you need these. Removed.
Jessie Berlin
Comment 6 2011-11-07 10:19:05 PST
Comment on attachment 113802 [details] Patch (with Chromium build fix) Committed with the fixes mentioned above in http://trac.webkit.org/changeset/99439
Yong Li
Comment 7 2012-08-01 11:10:38 PDT
May I ask a question, should session storage be allowed in private browsing mode?
Note You need to log in before you can comment on or make changes to this bug.