diff --git a/lib/browser/guest-view-manager.ts b/lib/browser/guest-view-manager.ts index 674e3bdcf4e1..4b43fb7e25d0 100644 --- a/lib/browser/guest-view-manager.ts +++ b/lib/browser/guest-view-manager.ts @@ -34,12 +34,12 @@ const createGuest = function (embedder: Electron.WebContents, params: Record { const { guestViewInternal, WebViewImpl } = webViewImpl; return class WebViewElement extends HTMLElement { - public internalInstanceId?: number; - static get observedAttributes () { return [ WEB_VIEW_CONSTANTS.ATTRIBUTE_PARTITION, @@ -78,7 +76,6 @@ const defineWebViewElement = (v8Util: NodeJS.V8UtilBinding, webViewImpl: typeof guestViewInternal.detachGuest(internal.guestInstanceId); } internal.elementAttached = false; - this.internalInstanceId = 0; internal.reset(); } }; diff --git a/typings/internal-electron.d.ts b/typings/internal-electron.d.ts index eef89b821305..1e0cb010d461 100644 --- a/typings/internal-electron.d.ts +++ b/typings/internal-electron.d.ts @@ -285,16 +285,6 @@ declare namespace ElectronInternal { loader: ModuleLoader; } - interface WebFrameResizeEvent extends WebViewEvent { - newWidth: number; - newHeight: number; - } - - interface WebViewEvent extends Event { - url: string; - isMainFrame: boolean; - } - class WebViewElement extends HTMLElement { static observedAttributes: Array;