From 112c09494dd2369173f2ea31a103fd4dbdbd1553 Mon Sep 17 00:00:00 2001 From: "mgalli%geckonnection.com" Date: Fri, 7 Oct 2005 21:03:55 +0000 Subject: [PATCH] minimo title does not update anymore, based on tabbrowser activity. bug 311564 git-svn-id: svn://10.0.0.236/trunk@181787 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/minimo/chrome/content/minimo.js | 26 +++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/mozilla/minimo/chrome/content/minimo.js b/mozilla/minimo/chrome/content/minimo.js index 670d52d4057..9ccffbc3ce8 100755 --- a/mozilla/minimo/chrome/content/minimo.js +++ b/mozilla/minimo/chrome/content/minimo.js @@ -274,6 +274,14 @@ function MiniNavStartup() */ document.addEventListener("focus",eventHandlerFocus,false); + /* + * Override the title attribute in this doc with a setter. + * This is our workaround solution so that when the tabbrowser::updateTitle + * tries to update this document's title, nothing happens. Bug 311564 + */ + + document.__defineSetter__("title",function(x){}); // Stays with the titled defined by the XUL element. + } /* @@ -651,3 +659,21 @@ function BrowserSNAVToggle(state) { gStateSNAV=state; } } + + +/* + * Util function for the phone call calculation. + */ + +function util_stripCharsFromString (s, bag) { + var i; + var returnString = ""; + for (i = 0; i < s.length; i++) + { + var c = s.charAt(i); + if (bag.indexOf(c) == -1) returnString += c; + } + return returnString; +} + +