[Pkg-mozext-commits] [greasemonkey] 03/25: GM_openInTab with insertRelatedAfterCurrent = true (frame, iframe)
David Prévot
taffit at moszumanska.debian.org
Wed Sep 17 21:14:00 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository greasemonkey.
commit 80f03f9ad26700a2029168077f3245ce13f63105
Author: janekptacijarabaci <janekptacijarabaci at centrum.cz>
Date: Sat Aug 2 08:46:40 2014 +0200
GM_openInTab with insertRelatedAfterCurrent = true (frame, iframe)
Ad https://github.com/greasemonkey/greasemonkey/issues/1897
---
components/greasemonkey.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/components/greasemonkey.js b/components/greasemonkey.js
index 45ffe0a..ead33a0 100644
--- a/components/greasemonkey.js
+++ b/components/greasemonkey.js
@@ -199,7 +199,7 @@ function openInTab(safeContentWin, url, aLoadInBackground) {
var chromeWin = getChromeWinForContentWin(safeContentWin);
var browser = chromeWin.gBrowser;
var currentTab = browser.tabs[
- browser.getBrowserIndexForDocument(safeContentWin.document)];
+ browser.getBrowserIndexForDocument(safeContentWin.top.document)];
var newTab = browser.loadOneTab(
uri.spec, {'inBackground': aLoadInBackground});
var newWin = GM_windowForTab(newTab, browser);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/greasemonkey.git
More information about the Pkg-mozext-commits
mailing list