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
Regression introduced in Webviews #179295
Comments
Sorry you are running into this. Do you have an extension you can share that shows this issue? I can't simply revert the change because it was made to fix an hang with webviews opening. If I can repo this locally though, I can try to investigate |
Thanks for checking this one! My extension is this one: Find attached a sample project: These are the steps:
Find here a video with the steps on how to open the webview, and the behavior when its working: Thanks! |
Needless to say that if I should perform any changes on the extension to make it work, it's not a problem at all. That is, if I can get an idea on what the changes are, have no problem on that. :-) Thanks! |
Fixes microsoft#179295 This should fix the `Cannot read properties of undefined (reading 'active')` error a few webviews were seeing when trying to load resources by using the current controller directly instead of trying to get it through the registration
@mjbvz ignore my last message, I have merged your changes locally and works perfect! So once this is merged, consider the issue fixed, thanks a lot!! |
Fixes microsoft#179295 This should fix the `Cannot read properties of undefined (reading 'active')` error a few webviews were seeing when trying to load resources by using the current controller directly instead of trying to get it through the registration
Fixes #179295 This should fix the `Cannot read properties of undefined (reading 'active')` error a few webviews were seeing when trying to load resources by using the current controller directly instead of trying to get it through the registration
This bug has been fixed in the latest release of VS Code Insiders! @qadram, you can help us out by commenting If things still don't seem right, please ensure you're on version 3a69e15 of Insiders (today's or later - you can use Happy Coding! |
/verified |
Does this issue occur when all extensions are disabled?: No
Steps to Reproduce:
This is not a problem in the extension, the extension code is the same, but a commit changes the way webviews are loaded and it's breaking it.
This commit:
f193f2a
Has introduced a regression that makes my extension unusable. It introduces a problem on webviews in which workers are not available, and causes the following errors in the console:
Found unexpected service worker controller. Found: undefined. Expected: service-worker.js?v=4&vscode-resource-base-authority=vscode-resource.vscode-cdn.net&remoteAuthority=
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'active') at index.html?id=bec20bb6-e8e9-4468-aa44-b4e99f01e3ba&origin=fc8bf63c-5f3c-4cc5-8d01-08dc873d6c64&swVersion=4&extensionId=tmssoftware.tmswebcore&platform=electron&vscode-resource-base-authority=vscode-resource.vscode-cdn.net&parentOrigin=vscode-file%3A%2F%2Fvscode-app:442:34
I have been tracking all changes since 1.76.2 release, building VSCode myself, and setting the build to the previous commit, my webview works flawlessly, if I checkout this commit, it's totally broken.
I have not been able to send you are reproducible test case, but if interested, I can show you a video on how to use my extension, so you can check for yourself the issue.
Thanks!
The text was updated successfully, but these errors were encountered: