Skip to content

Block private browsing mode detection #11543

Closed
brave/brave-core
#6622

Description

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions