[Pkg-mozext-commits] [tabmixplus] 07/13: Foloow up bug 1364127 - Set the initial tab label to the URL for new tabs and to the saved title for restored tabs, and make sure that label doesn't subsequently get clobbered with a placeholder
David Prévot
taffit at moszumanska.debian.org
Sat Aug 5 15:28:28 UTC 2017
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to tag 0.5.0.4pre.170525a1
in repository tabmixplus.
commit 1ba652f3c88ec2e50666619f249690643e696db2
Author: onemen <tabmix.onemen at gmail.com>
Date: Thu May 18 07:54:16 2017 +0300
Foloow up bug 1364127 - Set the initial tab label to the URL for new tabs and to the saved title for restored tabs, and make sure that label doesn't subsequently get clobbered with a placeholder
---
chrome/content/places/places.js | 4 ++++
chrome/content/session/session.js | 2 ++
2 files changed, 6 insertions(+)
diff --git a/chrome/content/places/places.js b/chrome/content/places/places.js
index 8b03fd8..6ba80ce 100644
--- a/chrome/content/places/places.js
+++ b/chrome/content/places/places.js
@@ -304,11 +304,15 @@ var TMP_Places = {
} else {
aTab = gBrowser.addTab(loadProgressively ? "about:blank" : url, {
skipAnimation: multiple,
+ noInitialLabel: true,
dontMove: true,
forceNotRemote: loadProgressively,
});
}
this.setTabTitle(aTab, url, bmIds[i]);
+ if (Tabmix.isVersion(550)) {
+ aTab._suppressTransientPlaceholderLabel = true;
+ }
if (loadProgressively) {
tabs.push(aTab);
let entry = {url, title: aTab.label};
diff --git a/chrome/content/session/session.js b/chrome/content/session/session.js
index 5945d6c..e6d6d31 100644
--- a/chrome/content/session/session.js
+++ b/chrome/content/session/session.js
@@ -3246,6 +3246,7 @@ TabmixSessionManager = {
function TMP_addTab() {
let newTab = gBrowser.addTab("about:blank", {
skipAnimation: true,
+ noInitialLabel: true,
skipBackgroundNotify: true,
dontMove: true,
isPending: pending
@@ -3409,6 +3410,7 @@ TabmixSessionManager = {
let forceNotRemote = !data.pinned;
tab = gBrowser.addTab("about:blank", {
skipAnimation: true,
+ noInitialLabel: true,
forceNotRemote,
userContextId,
skipBackgroundNotify: true,
--
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