From 2dc790a1e4f14eadc2ce83f5c988dd0ca7a832d9 Mon Sep 17 00:00:00 2001 From: Martin Stubenschrott Date: Mon, 5 May 2008 20:30:06 +0000 Subject: [PATCH] made macros muttator compatible --- Donators | 1 + content/events.js | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Donators b/Donators index 0a18a314..5f579784 100644 --- a/Donators +++ b/Donators @@ -2,6 +2,7 @@ Note: If you don't wish to appear on this list when making a donation, please tell me. 2008: +* Sam Griffin * Ivan Pantuyev * Spike Spiegal * Mark Hashimoto diff --git a/content/events.js b/content/events.js index 48b61574..28dd973d 100644 --- a/content/events.js +++ b/content/events.js @@ -686,7 +686,13 @@ liberator.Events = function () //{{{ if (macros[lastMacro]) { liberator.modes.isReplaying = true; - BrowserStop(); // make sure the page is stopped before starting to play the macro + + // make sure the page is stopped before starting to play the macro + try + { + getWebNavigation().stop(nsIWebNavigation.STOP_ALL); + } catch (ex) { } + liberator.buffer.loaded = 1; // even if not a full page load, assume it did load correctly before starting the macro liberator.events.feedkeys(macros[lastMacro], true); // true -> noremap liberator.modes.isReplaying = false;