From e9072147e57d102e51ae29a59717b98c14e96350 Mon Sep 17 00:00:00 2001 From: Tim Hammerquist Date: Mon, 23 Jun 2008 08:42:08 +0000 Subject: [PATCH] added PageLoadPre autocmd event. --- content/events.js | 2 ++ locale/en-US/autocommands.txt | 1 + 2 files changed, 3 insertions(+) diff --git a/content/events.js b/content/events.js index 60dcb5a6..7057292d 100644 --- a/content/events.js +++ b/content/events.js @@ -1405,6 +1405,8 @@ liberator.Events = function () //{{{ liberator.buffer.loaded = 0; liberator.statusline.updateProgress(0); + liberator.autocommands.trigger("PageLoadPre", liberator.buffer.URL); + // don't reset mode if a frame of the frameset gets reloaded which // is not the focused frame if (document.commandDispatcher.focusedWindow == webProgress.DOMWindow) diff --git a/locale/en-US/autocommands.txt b/locale/en-US/autocommands.txt index d5c12704..940972ee 100644 --- a/locale/en-US/autocommands.txt +++ b/locale/en-US/autocommands.txt @@ -22,6 +22,7 @@ Available {events}: `----------------`-------------------------------------------- *LocationChange* Triggered when changing tabs or when navigating to a new location +*PageLoadPre* Triggered after a page load is initiated. *PageLoad* Triggered when a page gets (re)loaded/opened *Quit* Triggered before exiting Firefox *Startup* Triggered after Firefox starts