@crh0716 - It was not being mocked, but due to the way the code was moved around and this helper was implemented, it now fails. The helper is now undefined whereas before it could at least access the navigator property.

This is the easiest patch possible for now, and I'd like to do something simple like this as we eventually plan on removing this helper in the long run.

As this breaks the browser development environment for many people, we need to land something by tomorrow or revert the previous patch.