Sensible defaults are very different for the browser and the shell so I added separate constants. I think the JS testing functions can get called from the browser and so may pick the wrong default but it's not too serious. Differential Revision: https://phabricator.services.mozilla.com/D210058