[release/8.0] [release/9.0] Fixed devtools url used for debug with chrome and edge #62080
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.
Backport of #61948 to release/8.0
/cc @javiercn @github-actions[bot]
[release/9.0] Fixed devtools url used for debug with chrome and edge
Fixed devtools url used for debug with chrome and edge
Description
Ensures the correct creation of the devtools url with proxy to use for debug with chrome and edge browser which recently changed how urls are returned from "localhost:9222/json".
Fixes #61559
Customer Impact
Fixes a debugging issue in "debug in browser" mode.

Regression?
The format of http://localhost:9222/json changed, instead of relative uri it contains an absolute one in new browser versions.
Risk
It still supports the old way, just adds an additional fallback for cases of absolute paths.
Verification
Packaging changes reviewed?