New issue
Advanced search Search tips

Issue 728952 link

Starred by 5 users

Issue metadata

Status: Archived
Owner: ----
Closed: Dec 7
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Add support for runtime.getBrowserInfo

Reported by 7c659...@opayq.com, Jun 2 2017

Issue description

Chrome 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
 
Labels: TE-NeedsTriageHelp
The issue seems to be out of TE-scope. Hence adding label TE-NeedsTriageHelp for further investigation.

Thanks...!!
Components: Platform>Extensions>API

Comment 3 by woxxom@gmail.com, 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.
Project Member

Comment 4 by sheriffbot@chromium.org, Dec 7

Status: Archived (was: Unconfirmed)
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