-
Notifications
You must be signed in to change notification settings - Fork 5.1k
[wasm][debugger] Never send messages from our internal protocol extensions to the browser #77616
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
Conversation
Tagging subscribers to this area: @thaystg Issue DetailsFixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1644970
|
/backport to release/7.0 |
Started backporting to release/7.0: https://github.com/dotnet/runtime/actions/runs/3348521274 |
/backport to release/6.0 |
Started backporting to release/6.0: https://github.com/dotnet/runtime/actions/runs/3348522633 |
@thaystg backporting to release/6.0 failed, the patch most likely resulted in conflicts: $ git am --3way --ignore-whitespace --keep-non-patch changes.patch
Applying: ignore messages from protocol extensions even for unknown context
Using index info to reconstruct a base tree...
M src/mono/wasm/debugger/BrowserDebugProxy/MonoProxy.cs
Falling back to patching base and 3-way merge...
Auto-merging src/mono/wasm/debugger/BrowserDebugProxy/MonoProxy.cs
CONFLICT (content): Merge conflict in src/mono/wasm/debugger/BrowserDebugProxy/MonoProxy.cs
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 ignore messages from protocol extensions even for unknown context
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Error: The process '/usr/bin/git' failed with exit code 128 Please backport manually! |
Adding the warning message fixed in this PR as a known issue for .net7.0: dotnet/runtime#77616
Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1644970
BrowserDebugProxy was receiving from IDE messages like
DotnetDebugger.SetProperty
from context that didn't exist, then it was returning false, then the message was sent to browser, and browser doesn't know this message and return an error, then it was printing an error like this:B7CCCEF5694F2EF11713AE7F86743A45:::1018 -> [Result: IsOk: False, IsErr: True, Value: , Error: { "code": -32601, "message": "'DotnetDebugger.setDebuggerProperty' wasn't found" } ]
In this PR we avoid sending
DotnetDebugger.*
commands that are our own extension, and unknown to the browser.