Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block private browsing mode detection #11543

Closed
antonok-edm opened this issue Sep 1, 2020 · 2 comments · Fixed by brave/brave-core#6622
Closed

Block private browsing mode detection #11543

antonok-edm opened this issue Sep 1, 2020 · 2 comments · Fixed by brave/brave-core#6622

Comments

@antonok-edm
Copy link
Collaborator

antonok-edm commented Sep 1, 2020

A number of websites use the navigator.storage.estimate() API to detect users in private browsing mode. That API returns a hard-limited quota of 120MB in private browsing, and larger values otherwise.

This has been proposed in Chromium, but appears to be a wontfix as the quota is intended to be kept fully in-memory for private browsing sessions.

There are several options here, including increasing the available quota as a temporary workaround, or simply lying about the available space (it is an estimate, after all!).

Edit: for future reference, the QA pass for Android below was completed using the following HTML:

<html>
    <body>
    <script>
        navigator.storage.estimate().then(estimate => alert(estimate.quota))
    </script>
    </body>
</html>
@antonok-edm antonok-edm added privacy OS/Android Fixes related to Android browser functionality OS/Desktop labels Sep 1, 2020
@antonok-edm antonok-edm self-assigned this Sep 1, 2020
@fmarier
Copy link
Member

fmarier commented Sep 11, 2020

@srirambv
Copy link
Contributor

srirambv commented Nov 27, 2020

Verification passed on the following devices running 1.18.63 x64 beta build

OnePlus 6T (Android 10) Samsung Tab A (Android 10)
oneplusinspect samsunginspect
  • Verified on a private tab shows the same size


Verification passed on


Brave | 1.18.68 Chromium: 87.0.4280.67 (Official Build) dev (64-bit)
-- | --
Revision | 0e5d92df40086cf0050c00f87b11da1b14580930-refs/branch-heads/4280@{#1441}
OS | Windows 10 OS Version 2004 (Build 19041.630)

Normal Tab:
image

Private Tab
image

Guest window
image


Verification passed on

Brave 1.18.70 Chromium: 87.0.4280.101 (Official Build) (64-bit)
Revision 9407c80213cda69c2b7abcb4fa8e3f74488f4956-refs/branch-heads/4280@{#1807}
OS Ubuntu 18.04 LTS

Normal Tab:
image

Private Tab
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants