mirror of
https://github.com/electron/electron.git
synced 2026-02-07 05:35:02 -05:00
When a link is clicked with the middle mouse button, chrome opens a window with "background-tab" disposition. This is not currently handled in sandbox mode, causing an api::WebContents to leak leading to eventual crash(since it has no wrapper). Also fix the event handler for "-add-new-contents" by having it call `event.preventDefault()` when the window creation should be cancelled.
6.2 KiB
6.2 KiB