Closed notlmn closed 5 years ago
As https://bugzilla.mozilla.org/show_bug.cgi?id=1382953 is out in FF 62(?), wouldn't it be better to convert all the Chrome specific code to a standardized one.
Like basic feature detection should be fine right
if (typeof window.chrome === 'object') { if (typeof window.browser === 'undefined') { window.browser = window.chrome; } }
All browsers use window.chrome for backwards compatibility for the same reason navigator.userAgent always includes Mozilla/5.0. So no change necessary until that changes
window.chrome
navigator.userAgent
Mozilla/5.0
As https://bugzilla.mozilla.org/show_bug.cgi?id=1382953 is out in FF 62(?), wouldn't it be better to convert all the Chrome specific code to a standardized one.
Like basic feature detection should be fine right