WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
71631
Need a way to allow a scheme access to Local Storage and Databases while Private Browsing is enabled
https://bugs.webkit.org/show_bug.cgi?id=71631
Summary
Need a way to allow a scheme access to Local Storage and Databases while Priv...
Jessie Berlin
Reported
2011-11-06 12:54:37 PST
<
rdar://problem/8605670
>
Attachments
Patch
(14.81 KB, patch)
2011-11-06 13:24 PST
,
Jessie Berlin
sam
: review+
webkit.review.bot
: commit-queue-
Details
Formatted Diff
Diff
Patch (with Chromium build fix)
(16.27 KB, patch)
2011-11-06 14:09 PST
,
Jessie Berlin
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Jessie Berlin
Comment 1
2011-11-06 13:24:43 PST
Created
attachment 113800
[details]
Patch
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.
Top of Page
Format For Printing
XML
Clone This Bug