[Webkit-unassigned] [Bug 157010] QuotaExceededError when saving to localStorage in private mode - leaks users browsing preference

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 28 09:34:52 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=157010

--- Comment #10 from Brady Eidson <beidson at apple.com> ---
(In reply to comment #6)
> The issue with just ignoring writes is that it's no different really from
> throwing an exception from the point of view of private mode leak. E.g.
> 
> ```
> function isPrivateMode() {
>   try {
>     localStorage.setItem('a', 'b');
>     return false;
>   } catch(e) {
>     return true;
>   }
> }
> ```
> 
> vs
> 
> ```
> function isPrivateMode() {
>   localStorage.setItem('a', 'b');
>   return localStorage.getItem('a') != 'b';
> }
> ```

I never suggested ignoring writes. Of course that's silly.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160428/20993598/attachment.html>


More information about the webkit-unassigned mailing list