Fix browser prefix detection
Refactor Utils.hasChromePrefix and add tests.
Merge Utils.hasChromePrefix from mrmr1993.