diff --git a/content/events.js b/content/events.js index 18184a02..777d4974 100644 --- a/content/events.js +++ b/content/events.js @@ -775,9 +775,11 @@ vimperator.Events = function () //{{{ Components.interfaces.nsIWebProgressListener.STATE_IS_WINDOW)) { // This fires when the load event is initiated + // only thrown for the current tab, not when another tab changes if (flags & Components.interfaces.nsIWebProgressListener.STATE_START) { vimperator.statusline.updateProgress(0); + vimperator.modes.reset(false); } else if (flags & Components.interfaces.nsIWebProgressListener.STATE_STOP) ;// vimperator.statusline.updateUrl(); diff --git a/content/help.js b/content/help.js index 03905fee..779c40ae 100644 --- a/content/help.js +++ b/content/help.js @@ -215,25 +215,30 @@ vimperator.help = function (section, easter) //{{{ '\n\n\n'; var doc = window.content.document; + dump("before open\n"); try { - doc.open(); + alert(doc.open()); } catch (e) { - // FIXME: what's this all about then, eh? Works the same for if it's removed. -- djk - // when the url is "about:" or any other xhtml page the doc is not open - // then retry again in 250ms but just once - if (arguments[3] && arguments[3].recursive) - return false; - - vimperator.open("about:blank"); - setTimeout(function () { vimperator.help(section, false, null, { recursive: true }); }, 250); +// dump("catched open\n"); +// // FIXME: what's this all about then, eh? Works the same for if it's removed. -- djk +// // when the url is "about:" or any other xhtml page the doc is not open +// // then retry again in 250ms but just once +// if (arguments[3] && arguments[3].recursive) +// return false; +// +// vimperator.open("about:blank"); +// setTimeout(function () { vimperator.help(section, false, null, { recursive: true }); }, 250); return; } + dump("before write\n"); doc.write(fulldoc); + dump("after write\n"); doc.close(); + dump("closed doc\n"); // TODO: change to getBoundingClientRect() for FF 3.0