diff --git a/IPython/html/static/notebook/js/menubar.js b/IPython/html/static/notebook/js/menubar.js index 38a67b9dc..766acfa19 100644 --- a/IPython/html/static/notebook/js/menubar.js +++ b/IPython/html/static/notebook/js/menubar.js @@ -131,7 +131,11 @@ var IPython = (function (IPython) { }); this.element.find('#kill_and_exit').click(function () { IPython.notebook.session.delete(); - setTimeout(function(){window.close();}, 500); + setTimeout(function(){ + // allow closing of new tabs in Chromium, impossible in FF + window.open('', '_self', ''); + window.close(); + }, 500); }); // Edit this.element.find('#cut_cell').click(function () {