[Pkg-mozext-commits] [tabmixplus] 34/44: Use the read-only document.URL property to retrieve just the URL as a string. document.location.baseURI is undefined

David Prévot taffit at moszumanska.debian.org
Wed Oct 15 02:10:04 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository tabmixplus.

commit 750781a9c805ab24de336810ac6c2125560e2464
Author: onemen <tabmix.onemen at gmail.com>
Date:   Thu Oct 9 11:37:41 2014 +0300

    Use the read-only document.URL property to retrieve just the URL as a string. document.location.baseURI is undefined
---
 modules/ContentClick.jsm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/ContentClick.jsm b/modules/ContentClick.jsm
index 04427d1..64d88bb 100644
--- a/modules/ContentClick.jsm
+++ b/modules/ContentClick.jsm
@@ -253,8 +253,7 @@ let ContentClickInternal = {
         */
         let node = linkNode || onClickNode;
         ///XXX [object CPOW [object HTMLDocument]] linkNode.ownerDocument
-        let location = node.ownerDocument.location;
-        let curpage = location ? location.href || location.baseURI : self._data.currentURL;
+        let curpage = node.ownerDocument.URL || self._data.currentURL;
         let href = self._data.hrefFromOnClick || self._window.XULBrowserWindow.overLink || node;
         return self.isLinkToExternalDomain(curpage, href);
       });
@@ -302,6 +301,7 @@ let ContentClickInternal = {
       return ["default at 3"];
 
     // Check if new tab already opened from onclick event // 2006-09-26
+    ///XXX [object CPOW [object HTMLDocument]] linkNode.ownerDocument
     if (linkNode && this._data.onclick && linkNode.ownerDocument.location.href != this._focusedWindow.top.location.href)
       return ["default at 4"];
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/tabmixplus.git



More information about the Pkg-mozext-commits mailing list