1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 16:57:59 +01:00

Make :addons marginally functional on FF36.

This commit is contained in:
Kris Maglione
2011-01-29 20:36:48 -05:00
parent cccb95e807
commit ffba231f56
7 changed files with 319 additions and 89 deletions

View File

@@ -314,13 +314,14 @@ var Buffer = Module("buffer", {
statusline.updateUrl();
if (webProgress.DOMWindow && uri) {
statusline.updateProgress(webProgress.DOMWindow);
let win = webProgress.DOMWindow;
if (win && uri) {
statusline.updateProgress(win);
let oldURI = webProgress.document.dactylURI;
if (webProgress.document.dactylLoadIdx === webProgress.loadedTransIndex
|| !oldURI || uri.spec.replace(/#.*/, "") !== oldURI.replace(/#.*/, ""))
for (let frame in values(buffer.allFrames(webProgress.DOMWindow)))
for (let frame in values(buffer.allFrames(win)))
frame.document.dactylFocusAllowed = false;
webProgress.document.dactylURI = uri.spec;
webProgress.document.dactylLoadIdx = webProgress.loadedTransIndex;
@@ -334,7 +335,7 @@ var Buffer = Module("buffer", {
util.timeout(function () {
buffer._triggerLoadAutocmd("LocationChange",
(webProgress.DOMWindow || content).document,
(win || content).document,
uri);
});