Open
Bug 1864824
Opened 2 years ago
Updated 2 years ago
getBrowserInfo().name returns "Firefox Nightly"
Categories
(Firefox for Android :: WebExtensions, defect)
Tracking
()
UNCONFIRMED
People
(Reporter: regseb, Unassigned)
Details
Attachments
(1 file)
|
749 bytes,
application/zip
|
Details |
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/119.0
Steps to reproduce:
- Load extension as attachment (which only print
browser.runtime.getBrowserInfo()andbrowser.runtime.getPlatformInfo()). - Open console.
Actual results:
{ name: "Firefox Nightly", vendor: "Mozilla", version: "121.0a1", buildID: "20231114213927" }
{ os: "android", arch: "aarch64" }
The name contains "Nightly".
Expected results:
{ name: "Firefox", vendor: "Mozilla", version: "121.0a1", buildID: "20231114213927" }
{ os: "android", arch: "aarch64" }
The name doesn't contain "Nightly".
| Reporter | ||
Comment 1•2 years ago
|
||
manifest.json:
{
"manifest_version": 3,
"name": "Test case",
"version": "1.0.0",
"background": {
"scripts": ["background.js"],
"type": "module"
}
}
background.js:
console.log(await browser.runtime.getBrowserInfo());
console.log(await browser.runtime.getPlatformInfo());
| Reporter | ||
Comment 2•2 years ago
|
||
I'm opening this bug to have the same value in Firefox Nightly on desktop and on Android.
Values in:
- Firefox Nightly on Ubuntu:
Firefox - Firefox Nightly on Android:
Firefox Nightly - Firefox on Ubuntu:
Firefox
Comment 3•2 years ago
|
||
Some context:
Android
- Name from https://searchfox.org/mozilla-central/source/toolkit/xre/nsAppRunner.cpp#1109-1111
- Geckoview's implment of getAppName https://searchfox.org/mozilla-central/source/mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoAppShell.java#1572-1575
- labelRes from https://searchfox.org/mozilla-mobile/source/firefox-android/fenix/app/src/main/AndroidManifest.xml#48
- https://searchfox.org/mozilla-mobile/source/firefox-android/fenix/app/src/nightly/res/values/static_strings.xml#7
Desktop
- Name from config.appdata https://searchfox.org/mozilla-central/source/toolkit/xre/nsAppRunner.cpp#5742-5743
- appdata is hard-coded https://searchfox.org/mozilla-central/source/browser/app/nsBrowserApp.cpp#206
- https://searchfox.org/mozilla-central/source/__GENERATED__/__win64__/build/application.ini.h#4
- application.ini.h generated from https://searchfox.org/mozilla-central/source/build/appini_header.py and https://searchfox.org/mozilla-central/source/build/moz.build#114
- it depends on MOZ_APP_BASENAME in config file , Ref https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/gecko.v2.mozilla-central.latest.firefox.linux64-artifact-opt/artifacts/public%2Fbuild%2Fconfig.status
Comment 4•2 years ago
|
||
The severity field is not set for this bug.
:jonalmeida, could you have a look please?
For more information, please visit BugBot documentation.
Flags: needinfo?(jonalmeida942)
Updated•2 years ago
|
Severity: -- → S3
Component: General → WebExtensions
Updated•2 years ago
|
Flags: needinfo?(jonalmeida942)
You need to log in
before you can comment on or make changes to this bug.
Description
•