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
Notebook: Error in dev tools when moving editor #99255
Comments
@deepak1556 @mjbvz I often see this error and since I'm just using the norma webview element, I don't know what I did wrong. |
The error indicates a webview method is being called before the webview was attached to the DOM or either after webview was destroyed. The stack trace indicates its happening for We seem to anchor webview methods on presence of the webview element |
Found a stable reproduce with a notebook containing fancy html outputs. After the notebook is opened, click into the notebook, if you click on the webview, the preload main.js will emit
and then it will try to ignore menu shortcut on all webviews, which will lead to the error vscode/src/vs/workbench/contrib/webview/electron-browser/webviewElement.ts Lines 234 to 237 in 6fef595
In this One thing I'm still not clear about the webview is actually attached to the DOM, otherwise how did I click on it? |
It's actually a bug in Notebook. When we create webview we mount it to a detached DOM node which will be attached to DOM later on. Also we didn't dispose the webview properly after editor widget is closed. Both of which will contribute to this error message. |
Awesome, thanks for addressing it 👍 |
Testing #98985
The text was updated successfully, but these errors were encountered: