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