Browser detection fixes

[ci skip]