Electron test for a lot of webviews

This is a project for verifying the bug of Electron which fails to load a lot of webviews.

electron/electron#24445

Environment

  • Electron 8.2.4 and 9.0.2
  • Windows 10 (1909)

Abstract

When Main process simultaneously creates and loads a lot of BrowserWindows each of which has a webview tag with a preload script, some of the webviews fail to load its preload script.

The more windows it creates, the more webviews fail.

Exepcted result

The parent renderer process can send ping to the webview, and vise versa.

success

Actual result

In some windows, the parent renderer process catches did-finish-load event from the webview, however pings are ignored.

failure

Direct cause

Preload script is not loaded.

The left image is the dev tool of a failed webview, and the right is that of a succeeded webview.

webview_preload.js is loaded only in the right dev tool.

Compare

Related projects