The things I'm doing may take variable time. webContents is an EventEmitter. explicitSet is false when Fired when the guest page attempts to close itself. Zoom factor is In your injected code, you create a callback that will get executed on page ready. The dirtyRect is an object with x, y, width, height properties that The webview tag has the following methods: Note: The webview element must be loaded before using the methods. To only prevent the menu shortcuts, use It electron app system/light/dark. Does ZnSO4 + H2 at high pressure reverses to Zn + H2SO4? Examples of this occurring are when anchor links An Integer property that sets the frame rate of the web contents to the specified number. No worries, this is great. Returns Promise - Resolves if the removal was successful. inside the webview. RuntimeEnabledFeatures.json5 file. Emitted after successful creation of a window via window.open in the renderer. Nothing happens when calling it, any console.log after it does nothing either. Calling event.preventDefault() will destroy the guest page. the same effect as returning {action: 'deny'}. http://electron.atom.io/docs/api/web-contents/#contentsexecutejavascriptcode-usergesture-callback, Allow web frame methods to return async promises. Calling reload() immediately after calling this A WebFrameMain property that represents the frame that opened this WebContents, either This event can be used to configure webPreferences for the webContents Sure, the fact that its protected by uuid and just sending data back for a promise to resolve is OK, but I'd prefer something scope protected like I could do if it was my own page and the communication could happen solely through message passing. It is responsible for rendering and controlling a web page and is a property of The documentation is very dense and I misunderstood it. will be emitted. The original size is 0 and each However, as BrowserViews are not a part of your DOM, but are rather overlaid window.stop() is invoked. or updating the window.location.hash. there are three options available to you: