Detect if private browser session is on Firefox with Javascript
<p>I'm working on Rails app and I need to detect if I'm on Firefox private session using Javascript code or some JS plugin.
I'm testing on Firefox 43.</p>

<p>I was trying using Components.classes but this is undefined. The problem is like Firefox on private session uses Tracking protected, this is not loading some JS files and I need to know if I'm on private session (then Protected Tracking is enabled), and then, I'm not going to load this tracking JS files.</p>

<p>Thanks in advance.</p>

<p>I saw some posts to check if we are in private session on Chrome and Safari and these work well on these browsers but don't work on Firefox!</p>