Repository navigation
Conversation
…ecks about:debugging and the debugger Tracer compared the local AppConstants.MOZ_APP_VERSION against the remote runtime's platform version. In Zen, MOZ_APP_VERSION is Zen's own version, so the remote always looked too recent. Use Services.appinfo.platformVersion, the value the server reports, on the local side too.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On
about:debugging→ "This Zen", a banner always says the connected browser is more recent than the local one. The Tracer panel in the Browser Toolbox's debugger shows the same kind of false warning: "Client and remote runtime have different versions (1.0.0 vs 161.0.1)".Both read the local version from
AppConstants.MOZ_APP_VERSION, which in Zen is Zen's own version. They compare it with the runtime'splatformversion, which comes fromappInfo.platformVersion(devtools/shared/system.js) and is the Firefox version. In Firefox the two are the same, so the warnings never appear there.remote-debugging/version-checker.js(about:debugging) and the debugger'ssrc/client/firefox.js(Tracer) now useServices.appinfo.platformVersionfor the local version, and the unusedAppConstantsimports are gone. Real mismatches with other runtimes are still reported, now against a range based on the Firefox version.Test:
devtools/browser_remote_debugging_version_check.jsconnects to the local runtime the same way about:debugging does and checks that it's reported as compatible.npm test devtools -- --headless: 2/2 pass (0/2 without the fix)npm run lintandnpm run typecheckpass.Fixes #10158