Permalink
Browse files

Issue #31 - moar advanced workaround

  • Loading branch information...
1 parent 2687864 commit 5e0db21c951c8c83a3c636d6207fc0e4ad289ed5 @xabolcs committed Oct 27, 2012
Showing with 9 additions and 4 deletions.
  1. +9 −4 extension/chrome/content/suite.js
@@ -37,11 +37,12 @@ init: function()
var debugQABundle = document.getElementById("debugQANavigatorBundle");
if (debugQABundle) {
- var titlemodifier = debugQABundle.getFormattedString("titlemodifier",
+ var debugQAModifier = debugQABundle.getFormattedString("titlemodifier",
[nightly.variables.name,
nightly.variables.appbuildid]);
- if (document.documentElement.getAttribute("titlemodifier") === titlemodifier){
+ var docModifier = document.documentElement.getAttribute("titlemodifier");
+ if (docModifier === debugQAModifier) {
nightlyApp.debugQATitleModifierWorkaround = nightly.variables.name;
}
}
@@ -75,8 +76,12 @@ getWindowTitleForNavigator: function (aBrowser) {
var docTitle;
var docElement = document.documentElement;
var sep = docElement.getAttribute("titlemenuseparator");
- var modifier = nightlyApp.debugQATitleModifierWorkaround ||
- docElement.getAttribute("titlemodifier");
+ var modifier = "";
+
+ if (!Application.platformIsMac) {
+ modifier = nightlyApp.debugQATitleModifierWorkaround ||
+ docElement.getAttribute("titlemodifier");
+ }
if (aBrowser.docShell.contentViewer)
docTitle = aBrowser.contentTitle;

0 comments on commit 5e0db21

Please sign in to comment.