1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-30 03:52:29 +01:00

fixed PageLoad autoevent

This commit is contained in:
Martin Stubenschrott
2008-07-14 19:00:35 +00:00
parent b7ece207ca
commit 87de347a8e

View File

@@ -447,8 +447,10 @@ liberator.Events = function () //{{{
// code which should happen for all (also background) newly loaded tabs goes here:
var url = liberator.buffer.URL;
var title = liberator.buffer.title;
// loaded page can be not current (e.g. background tab loaded)
// so we should use defaultView from event object, not liberator.buffer.
var url = doc.defaultView.location.href;
var title = doc.defaultView.title;
//update history
if (url && liberator.history)