Skip to content

Commit

Permalink
Webview.postMessage hangs when dragging a webview into its own window (
Browse files Browse the repository at this point in the history
…fix #208263) (#208832)
  • Loading branch information
bpasero authored Mar 27, 2024
1 parent 246d700 commit 865cc59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/workbench/contrib/webview/browser/webviewElement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ export class WebviewElement extends Disposable implements IWebview, WebviewFindD
this.element?.classList.add('ready');

if (this._state.type === WebviewState.Type.Initializing) {
this._state.pendingMessages.forEach(({ channel, data }) => this.doPostMessage(channel, data));
this._state.pendingMessages.forEach(({ channel, data, resolve }) => resolve(this.doPostMessage(channel, data)));
}
this._state = WebviewState.Ready;

Expand Down

0 comments on commit 865cc59

Please sign in to comment.