Skip to content

Feature Request: Litmus incognito reminder #2

@VibroAxe

Description

@VibroAxe

If a browser is switched into incognito mode the dns and hsts caches are removed. As such the litmus test should always be run from a "clean" browser. Apparently on chrome/firefox this can be detected with the following:

if ('storage' in navigator && 'estimate' in navigator.storage) {
	const {usage, quota} = await navigator.storage.estimate();
    console.log(`Using ${usage} out of ${quota} bytes.`);

	if(quota < 120000000){
        console.log('Incognito')
    } else {
        console.log('Not Incognito')
    }	
} else {
	console.log('Can not detect')
}

Adding a big model to the front of the litmus site reminding people to switch to a fresh incognito mode before trusting the results seems like a sensible idea

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions