[Pkg-mozext-commits] [tabmixplus] 22/147: Follow up bug 1000458 (openLinkIn changed)
David Prévot
taffit at moszumanska.debian.org
Sat Aug 5 15:27:32 UTC 2017
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository tabmixplus.
commit f59cd50cf85d8940c34e9471fe1e893cb533baf0
Author: onemen <tabmix.onemen at gmail.com>
Date: Mon Oct 31 11:22:48 2016 +0200
Follow up bug 1000458 (openLinkIn changed)
---
chrome/content/places/places.js | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/chrome/content/places/places.js b/chrome/content/places/places.js
index 5005733..08cef05 100644
--- a/chrome/content/places/places.js
+++ b/chrome/content/places/places.js
@@ -736,7 +736,8 @@ Tabmix.onContentLoaded = {
'$&\n' +
' var bookMarkId = params.bookMarkId;'
)._replace(
- 'where == "current" && w.gBrowser.selectedTab.pinned',
+ 'where == "current" && #1.pinned'
+ .replace("#1", Tabmix.isVersion(520) ? "tab" : "w.gBrowser.selectedTab"),
'$& && !params.suppressTabsOnFileDownload'
)._replace(
'var w = getTopWin();',
@@ -753,9 +754,9 @@ Tabmix.onContentLoaded = {
' }'
)._replace(
/(})(\)?)$/,
- ' var tab = where == "current" ?\n' +
+ ' const targetTab = where == "current" ?\n' +
' w.gBrowser.selectedTab : w.gBrowser.getTabForLastPanel();\n' +
- ' w.TMP_Places.setTabTitle(tab, url, bookMarkId);\n' +
+ ' w.TMP_Places.setTabTitle(targetTab, url, bookMarkId);\n' +
' if (where == "current") {\n' +
' w.gBrowser.ensureTabIsVisible(w.gBrowser.selectedTab);\n' +
' }\n' +
--
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