aspnetcore icon indicating copy to clipboard operation
aspnetcore copied to clipboard

[release/9.0] Fixed devtools url used for debug with chrome and edge

Open github-actions[bot] opened this issue 7 months ago • 16 comments

Backport of #61813 to release/9.0

/cc @javiercn @Dona278

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. image

Regression?

  • [ ] Yes
  • [X] No

The format of http://localhost:9222/json changed, instead of relative uri it contains an absolute one in new browser versions.

Risk

  • [ ] High
  • [ ] Medium
  • [X] Low

It still supports the old way, just adds an additional fallback for cases of absolute paths.

Verification

  • [X] Manual (required)
  • [ ] Automated

Packaging changes reviewed?

  • [ ] Yes
  • [ ] No
  • [X] N/A

github-actions[bot] avatar May 15 '25 09:05 github-actions[bot]

@javiercn courtesy ping hoping that will be merged before next net9 release 🙏

Dona278 avatar May 22 '25 15:05 Dona278

@Dona278 I need to check if this is already in a public .NET 10.0 release.

We normally fix things first in a preview then backport the patch. It might take an extra patch cycle as that help us reduce risk. I have triggered the PR tests to make sure that it is ready when we decide to merge it, and I'll bring it up for consideration on the next patch cycle.

javiercn avatar May 22 '25 15:05 javiercn

@ilonatommy were you looking at these same E2E test failures recently?

javiercn avatar May 22 '25 17:05 javiercn

Will we backport to release/8.0?

thaystg avatar May 22 '25 19:05 thaystg

@ilonatommy were you looking at these same E2E test failures recently?

yes, it got blocked on main https://github.com/dotnet/aspnetcore/blob/5678f227fafa5dcd10b98801d4da54f1add7de6d/src/Components/test/E2ETest/ServerRenderingTests/FormHandlingTests/FormWithParentBindingContextTest.cs#L1312

ilonatommy avatar May 23 '25 07:05 ilonatommy

/ba-g failure is known and not related

ilonatommy avatar May 23 '25 07:05 ilonatommy

I see, branch protection was elevated only for main, in backports having review + Build Analysis green is not enough to merge.

ilonatommy avatar May 23 '25 07:05 ilonatommy

/backport to release/8.0

javiercn avatar May 23 '25 09:05 javiercn

Started backporting to release/8.0: https://github.com/dotnet/aspnetcore/actions/runs/15207479105

github-actions[bot] avatar May 23 '25 09:05 github-actions[bot]

I'll leave the PR prepared, and we can make a decision

javiercn avatar May 23 '25 09:05 javiercn

@lewing, the net10 equivalent fixed the issue.

ilonatommy avatar May 29 '25 07:05 ilonatommy

@ilonatommy @javiercn do we need to take this one thru tactics? Ditto https://github.com/dotnet/aspnetcore/pull/62080

wtgodbe avatar Jun 04 '25 18:06 wtgodbe

@wtgodbe yes, but I believe we are waiting for validation from a preview to bring it in.

javiercn avatar Jun 05 '25 09:06 javiercn

Waiting on approval from Tactics to merge this

joperezr avatar Jun 09 '25 22:06 joperezr

Dropping the Servicing-consider label for now as this is still pending some validation.

joperezr avatar Jul 01 '25 18:07 joperezr

Hi @joperezr I can image what checks have to pass a PR before merging.. but can I ask what is awaited? Maybe there is someone at work and we have to wait for a different solution? There were past 2 months, the debug with browser it totally broken, the fix is currently in preview and (I suppose) work, VS code work, VS studio work and we used the same copy-paste code in our sources because we need to debug through browser. I ask this only because I would remove the copy-paste code and allow other collugues to work with the release. Thank you and sorry for the ping

Dona278 avatar Jul 01 '25 19:07 Dona278

I'm a little confused -- has this made it into a 9.0 release yet?

burtonrodman avatar Jul 31 '25 15:07 burtonrodman

No... Still to merge this PR. Only in net10 is available..

Dona278 avatar Jul 31 '25 18:07 Dona278

/azp run

ilonatommy avatar Sep 18 '25 07:09 ilonatommy

Azure Pipelines successfully started running 3 pipeline(s).

azure-pipelines[bot] avatar Sep 18 '25 07:09 azure-pipelines[bot]

We apologize folks, there was a mix-up as we are gearing for 10.0 and we didn't have the PR correctly labeled so we didn't see it.

@ilonatommy confirmed that she's done validation for this, so I will get put it on the list of candidates for the next servicing release.

javiercn avatar Sep 18 '25 10:09 javiercn

@lewing @wtgodbe this can go through tactics any time now, @ilonatommy validated things.

javiercn avatar Sep 18 '25 10:09 javiercn

@javiercn we'll need to send an ask-mode email then - could you send one?

wtgodbe avatar Sep 18 '25 20:09 wtgodbe

@wtgodbe, we got the approval from tactics.

ilonatommy avatar Sep 19 '25 16:09 ilonatommy

Nice, will merge this (and the other one) once the branches re-open in a couple weeks

wtgodbe avatar Sep 19 '25 16:09 wtgodbe

/azp run

ilonatommy avatar Sep 29 '25 07:09 ilonatommy

Azure Pipelines successfully started running 3 pipeline(s).

azure-pipelines[bot] avatar Sep 29 '25 07:09 azure-pipelines[bot]

/azp run

ilonatommy avatar Oct 06 '25 15:10 ilonatommy

Azure Pipelines successfully started running 3 pipeline(s).

azure-pipelines[bot] avatar Oct 06 '25 15:10 azure-pipelines[bot]