1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 15:17:58 +01:00

Fix issues with help rendering hack.

This commit is contained in:
Kris Maglione
2010-12-10 23:48:19 -05:00
parent 272cbc5c66
commit 5e165d9a6b

View File

@@ -195,8 +195,6 @@ const Buffer = Module("buffer", {
if (doc.location.protocol === "dactyl:") { if (doc.location.protocol === "dactyl:") {
dactyl.initHelp(); dactyl.initHelp();
config.styleHelp(); config.styleHelp();
// Workaround for bugs 591425 and 606877, dactyl bug #81
config.browser.getBrowserForDocument(doc).collapsed = false;
} }
// mark the buffer as loaded, we can't use buffer.loaded // mark the buffer as loaded, we can't use buffer.loaded
@@ -255,6 +253,9 @@ const Buffer = Module("buffer", {
} }
} }
else if (flags & Ci.nsIWebProgressListener.STATE_STOP) { else if (flags & Ci.nsIWebProgressListener.STATE_STOP) {
// Workaround for bugs 591425 and 606877, dactyl bug #81
config.browser.mCurrentBrowser.collapsed = false;
webProgress.DOMWindow.document.pageIsFullyLoaded = (status == 0 ? 1 : 2); webProgress.DOMWindow.document.pageIsFullyLoaded = (status == 0 ? 1 : 2);
statusline.updateUrl(); statusline.updateUrl();
} }
@@ -289,9 +290,9 @@ const Buffer = Module("buffer", {
for (let frame in values(buffer.allFrames())) for (let frame in values(buffer.allFrames()))
frame.dactylFocusAllowed = false; frame.dactylFocusAllowed = false;
if (uri.scheme === "dactyl" && webProgress.isLoadingDocument) // Workaround for bugs 591425 and 606877, dactyl bug #81
// Workaround for bugs 591425 and 606877, dactyl bug #81 config.browser.mCurrentBrowser.collapsed =
config.browser.mCurrentBrowser.collapsed = true; uri.scheme === "dactyl" && webProgress.isLoadingDocument;
util.timeout(function () { util.timeout(function () {
autocommands.trigger("LocationChange", { url: buffer.URL }); autocommands.trigger("LocationChange", { url: buffer.URL });