-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Visual Studio 2019/2022 debugging site remains at about:blank #1939
Comments
Disable Suspend network activity until all filter lists are loaded setting and try again. |
Did you try without uBO? |
@gorhill Yes. |
Setting |
I fail to see how uBO is causing the issue.
So? Is the issue present without uBO? |
Somebody else able to investigate code will have to look into this one, I do not have Visual Studio and your local configuration. |
The issue only surfaces when uBO is installed. |
The issue does not seem to happen in the dev build 1.40.9.1 I think this might have something to with tab reloading which now has been removed. VS launches Chrome/Edge in a separate user-data folder with about:blank e.g. After that VS debugger communicated with Chrome over websockets and then eventually asks it to navigate to the actual debug url. This initial handshake navigation errors out/aborts.
|
uBO can't block navigating to a URL, but can block the network request for the main document. This means that even if the network request is blocked, the tab should have started navigating to the target URL, and it should show in the address bar -- at which point if uBO force a reload of the tab, it would force a reload of that URL. Can you reproduce the issue in 1.40.8 if you disable all the filter lists such that there are zero filters to enforce? (and there should be no rules either -- I want to know whether the issue is uBO blocking some communication between the browser and VS). |
Valid values are |
Just to be sure, you have no block rules either in "My rules"? |
There were no rules. This was in a new machine which did not have uBlock installed. |
So after all it does appear that forcing a reload of the currently active tab at launch is causing the issue -- this unconditional reload of the currently active tab at launch has been removed in the current dev build, in favor of reloading only if network requests were seen for a given tab before all lists were loaded. Additionally, there is a new setting which can be toggled by the user if ever the maybe-reload-tab-at-launch is causing unforeseen issues in some edge cases. |
To solve the issue of launching debugging through the browser in Visual Studio/Rider/Visual Studio Core on Windows 11, I checked the value of a parameter in the registry at:
Here are the steps to open the registry editor and check/update this parameter:
|
Prerequisites
I tried to reproduce the issue when...
Description
When debugging a sing page web application using Visual Studio with Chrome or Edge as browse target, VS launches the browser as something like this
"C:\Program Files\Google\Chrome\Application\chrome.exe" --remote-debugging-port=55961 --no-first-run --no-default-browser-check --user-data-dir=C:\Users\_____\AppData\Local\Microsoft\VisualStudio\17.0_ca437560\WebTools\45106691_34FBCA4 about:blank
.The debug url actually is define as
http://localhost:1979/HSWeb/
in the project and is somehow passed to the browser during debugging.But the browser window continues to remain at
about:blank
This was noticed just around Dec 26 which coincides with 1.40.2 where a related localhost issue was reported.
Upgrading to 1.40.8 did not help.
A specific URL where the issue occurs
about:blank
Steps to Reproduce
Start debugging (F5) the web application against using Chrome or Edge.
Expected behavior
The browser should continue navigating to the debug url as before.
Actual behavior
Browser remains at about:blank
uBlock Origin version
1.40.8
Browser name and version
Chrome 97.0.4692.71, Edge 97.0.1072.62
Operating System and version
Win10 20H2 OS build 19042.1415
The text was updated successfully, but these errors were encountered: