Added inBrowser to redfinition conditionals