[Pkg-mozext-commits] [tabmixplus] 16/23: Follow up bug 1246907 - Open link in a Container Tab - in the context menu. open link in background doesn't working
David Prévot
taffit at moszumanska.debian.org
Wed Feb 17 18:34:00 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository tabmixplus.
commit 3e7788e77c0489a94722333033687c3196c71706
Author: onemen <tabmix.onemen at gmail.com>
Date: Tue Feb 16 00:06:18 2016 +0200
Follow up bug 1246907 - Open link in a Container Tab - in the context menu. open link in background doesn't working
---
chrome/content/minit/tablib.js | 4 ++--
chrome/content/tabmix.xul | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/chrome/content/minit/tablib.js b/chrome/content/minit/tablib.js
index aba8ccd..0207f9c 100644
--- a/chrome/content/minit/tablib.js
+++ b/chrome/content/minit/tablib.js
@@ -1087,7 +1087,7 @@ var tablib = { // eslint-disable-line
this.duplicateTab(gBrowser.selectedTab, url);
};
- gBrowser.openInverseLink = function() {
+ gBrowser.openInverseLink = function(event) {
var {target, linkURL} = gContextMenu;
var url = tablib.getValidUrl(linkURL, target);
if (!url)
@@ -1096,7 +1096,7 @@ var tablib = { // eslint-disable-line
gContextMenu.linkURL = url;
// originalFunctions.openInverseLink is a copy of original
// nsContextMenu.prototype.openLinkInTab
- Tabmix.originalFunctions.openInverseLink.apply(gContextMenu);
+ Tabmix.originalFunctions.openInverseLink.call(gContextMenu, event);
};
tablib.openLinkInCurrent = function() {
diff --git a/chrome/content/tabmix.xul b/chrome/content/tabmix.xul
index e12028c..d2f6b10 100644
--- a/chrome/content/tabmix.xul
+++ b/chrome/content/tabmix.xul
@@ -112,7 +112,7 @@
<menuitem id="tm-openinverselink" label="" fglabel="&linkForegroundTab.label;" bglabel="&linkBackgroundTab.label;"
fgaccesskey="&linkForegroundTab.accesskey;" bgaccesskey="&linkBackgroundTab.accesskey;"
insertafter="context-openlinkintab"
- oncommand="gBrowser.openInverseLink();"/>
+ oncommand="gBrowser.openInverseLink(event);"/>
<menuitem id="tm-openAllLinks" label="&openalllinks.label;" accesskey="&openalllinks.accesskey;"
insertafter="context-openlinkintab" oncommand="TabmixContext.openMultipleLinks();"/>
<menuitem id="tm-linkWithhistory" label="&linkwithhistory.label;" accesskey="&linkwithhistory.accesskey;"
--
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