Permalink
Browse files

Issue #31 - more nightly.oldUpdateTitlebar checks

  • Loading branch information...
1 parent d51983f commit cc899b5749bffaa5155c1cb74649bfe6aa3617f7 @xabolcs committed Nov 8, 2012
Showing with 8 additions and 2 deletions.
  1. +8 −2 extension/chrome/content/suite.js
@@ -10,11 +10,15 @@ oldUpdateTitlebar: null,
debugQATitleModifierWorkaround: null,
get defaultTitle() {
- return nightlyApp.getWindowTitleForNavigator(gBrowser.mCurrentBrowser);
+ if (nightlyApp.oldUpdateTitlebar) {
+ return nightlyApp.getWindowTitleForNavigator(gBrowser.mCurrentBrowser);
+ }
},
get tabTitle() {
- return gBrowser.mCurrentBrowser.contentTitle;
+ if (nightlyApp.oldUpdateTitlebar) {
+ return gBrowser.mCurrentBrowser.contentTitle;
+ }
},
init: function()
@@ -60,6 +64,8 @@ setStandardTitle: function()
{
if (nightlyApp.oldUpdateTitlebar) {
nightlyApp.oldUpdateTitlebar.call(gBrowser);
+ } else {
@xabolcs

xabolcs Nov 9, 2012

Owner

This change isn't really needed.

+ gBrowser.updateTitlebar.call(gBrowser);
@xabolcs

xabolcs Nov 9, 2012

Owner

If nightlyApp.oldUpdateTitlebar is null (or something) then this would fail.

}
},

0 comments on commit cc899b5

Please sign in to comment.