Retrieve branding name and version from chrome priv JS (remote debugging) #2016
Comments
@cpeterso is there a GV bug for this? |
@snorp - What do you think we should do here? Is Gecko handling the remote debugging protocol itself or does GV or the app mediate the remote connections? IIUC, GV doesn't know the name or version of the app embedding GV, but we could probably sniff the app's metadata at run-time to return meaningful messages in the remote debugging protocol. |
GV bug 1542286 (to show the proper runtime name and app icon for Fenix in about:debugging) was fixed in GV 68. Does this Fenix issue require more GV work? |
Any update here, it seems the code we initially used in remote debugging is starting to break cf https://bugzilla.mozilla.org/show_bug.cgi?id=1589087 |
@cpeterso Sorry missed your message! Nothing was fixed in GV in this bug, we simply used hardcoded strings and workarounds in order to have something ready for the release for Firefox Preview. We would still need a reliable API to get the runtime name and version |
I see. I filed a new GV bug requesting this new API: https://bugzilla.mozilla.org/show_bug.cgi?id=1589805 |
See: #17373 This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
For DevTools' remote debugging, we currently retrieve the browser name from the "chrome://branding/locale/brand.properties" string bundle, and the browser version from
Services.appInfo.version
(from Services.jsm).When connected to Fenix/Firefox Preview, we currently get:
brandFullName
string68.0.a1
) for Services.appInfo.versionFor the browser name we can for now hardcode "Firefox Preview" / "Firefox Preview Beta" / "Firefox Preview Nightly", but it would be nice to have the brand name available via a localized string or any other API.
For the version, I don't think you would like to show the firefox version, but rather the application version? Maybe for now we can get it from ADB when we connect to the browser? But similarly it would be nice to have it available via an API.
Current bugzilla bug to improve Fenix/Firefox Preview support in remote debugging is https://bugzilla.mozilla.org/show_bug.cgi?id=1542286 for reference.
Thanks!
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: