[Pkg-mozext-commits] [sage-extension] 23/49: modified link visitor code to account for a new argument in the addURI method of nsIGlobalHistory2 in Deer Park
David Prévot
taffit at moszumanska.debian.org
Fri May 1 03:10:54 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to tag sage_1_3_10
in repository sage-extension.
commit 2322aa0e5c99516f4035f3e32eb1ab445cc6e5e3
Author: Peter Andrews <petea at jhu.edu>
Date: Fri Jun 24 05:24:23 2005 +0000
modified link visitor code to account for a new argument in the addURI method of nsIGlobalHistory2 in Deer Park
---
src/sage/content/sage.js | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/src/sage/content/sage.js b/src/sage/content/sage.js
index 8bd9cf9..b7ac28b 100755
--- a/src/sage/content/sage.js
+++ b/src/sage/content/sage.js
@@ -631,10 +631,14 @@ var linkVisitor = {
if (fixupURI == null)
return;
if (bRead) {
- if (this._ff08)
+ if (this._ff08) {
this._globalHistory.addPage(fixupURI);
- else
- this._globalHistory.addURI(fixupURI, false, true);
+ } else {
+ if (this._globalHistory.addURI.length == 4) // a fourth argumenth was added in Firefox 1.1 for the referrer URI
+ this._globalHistory.addURI(fixupURI, false, true, fixupURI);
+ else
+ this._globalHistory.addURI(fixupURI, false, true);
+ }
}
else
this._browserHistory.removePage(fixupURI);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/sage-extension.git
More information about the Pkg-mozext-commits
mailing list