Skip to content

Commit 2a5438d

Browse files
jryansturt2live
authored andcommitted
Revert "Remove will-navigate comment after Electron fix"
This reverts commit 749d7e8.
1 parent 7068349 commit 2a5438d

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎electron_app/src/webcontents-handler.js‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,18 @@ function onEditableContextMenu(ev, params) {
174174

175175
module.exports = (webContents) => {
176176
webContents.on('new-window', onWindowOrNavigate);
177+
// XXX: The below now does absolutely nothing because of
178+
// https://github.com/electron/electron/issues/8841
179+
// Whilst this isn't a security issue since without
180+
// node integration and with the sandbox, it should be
181+
// no worse than opening the site in Chrome, it obviously
182+
// means the user has to restart Riot to make it usable
183+
// again (often unintuitive because it minimises to the
184+
// system tray). We therefore need to be vigilant about
185+
// putting target="_blank" on links in Riot (although
186+
// we should generally be doing this anyway since links
187+
// navigating you away from Riot in the browser is
188+
// also annoying).
177189
webContents.on('will-navigate', onWindowOrNavigate);
178190

179191
webContents.on('context-menu', function(ev, params) {

0 commit comments

Comments
 (0)