port stuff from mozcompat to browser and view