src/vs/workbench/contrib/webview/browser/webviewElement.ts/WebviewElement/dispose
class WebviewElement:	override dispose(): void {
		this._disposed = true;

		this.element?.remove();
		this._element = undefined;

		this.messagePort = undefined;

		if (this._state.type === WebviewState.Type.Initializing) {
			for (const message of this._state.pendingMessages) {
				message.resolve(false);
			}
			this._state.pendingMessages = [];
		}

		this._onDidDispose.fire();

		this._resourceLoadingCts.dispose(true);

		super.dispose();
	}