I use firefox and browse a link from this website. It easily detects whether I use private mode and then it blocks me if I am in the private mode.
I searched on stackoverflow.
This answer says it is impossible. But, this website has made it possible.
Another answer suggests
var db = indexedDB.open("test");
db.onerror = function(){alert('Firefox PB enabled')};
db.onsuccess =function(){alert('Not enabled')};
And this method works fine. Although, I am not sure if the mentioned website uses the same technique.
Then, I am wondering about two questions:
1- Is this the only way to detect the private mode in firefox?
2- Why does firefox stab back its users? Is it a part of its design or is it a bug in firefox?