Add support for runtime.getBrowserInfo
Reported by
7c659...@opayq.com,
Jun 2 2017
|
|||
Issue descriptionChrome Version : Latest build on the master branch as of 2017-06-02T07:45:00Z URLs (if applicable) : https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/runtime/getBrowserInfo Other browsers tested: Add OK or FAIL, along with the version, after other browsers where you have tested this issue: Firefox: OK (Since Firefox 51) Opera: FAIL Edge: FAIL The `runtime.getBrowserInfo()` API asynchronously returns an object that contains the browser’s name, vendor, version and build ID. This is useful when building cross-browser WebExtensions and it’s necessary to know which browser the WebExtension is running on. See also: https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/runtime/getBrowserInfo https://bugzilla.mozilla.org/show_bug.cgi?id=1268399
,
Dec 7 2017
,
Dec 7 2017
Wile waiting for this to be implemented (or not), which is unlikely to happen anytime soon, we can continue to parse navigator.userAgent which has the info about browser version and revision with the added benefit of being available synchronously. Of course it's not as "clear" as a dedicated API, but it's still reliable in Chrome because no other extension or anything else can spoof (override) it in your extension's context including content scripts.
,
Dec 7
Issue has not been modified or commented on in the last 365 days, please re-open or file a new bug if this is still an issue. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot |
|||
►
Sign in to add a comment |
|||
Comment 1 by krajshree@chromium.org
, Jul 13 2017