biancadanforth / tracking-protection-shield-study

A Shield study to determine the optimal messaging, if any, for Tracking Protection in Firefox.
0 stars 3 forks source link

End study if user turns on private browsing autostart. Follow up for … #150

Closed biancadanforth closed 6 years ago

biancadanforth commented 6 years ago

…#147.

In PR #149, I added an eligibility requirement that this private browsing autostart pref is not enabled. However, that does not end the study if the user turns the pref on during the study. This PR handles that case.

I added this pref observer to bootstrap.js rather than Feature.jsm, since it really should be a check all Shield studies make generally, just like study expiry. I also: