mirror of
https://github.com/electron/electron.git
synced 2026-10-28 11:44:46 +08:00
Since the webstorePrivate API moved to //extensions (CL 7874276), the core feature files expose it to web pages on the Chrome Web Store origin and the core provider registers its functions. Electron does not provide a WebstorePrivateAPIDelegate, so a webContents that navigated to chromewebstore.google.com got chrome.webstorePrivate bindings and calling into them dereferenced a null delegate in the browser process. Override the core "webstorePrivate" feature so it is unavailable in every context, and replace the core-registered functions with ones that respond with an error so a stray request cannot crash the browser.