Bug 619659 nsPlacesAutoComplete.js depends on nsIPrivateBrowsingService being implemented (Perma Orange for Non-FF apps) - cope with the private browsing service not being there. r=mak a=Unit test bustage fix for non-Firefox apps.

This commit is contained in:
Mark Banner 2010-12-16 14:38:58 +00:00
parent 3b22162d5b
commit 08f2414d7a

View File

@ -158,7 +158,12 @@ function initTempTable(aDatabase)
*/
function inPrivateBrowsingMode()
{
return pb.privateBrowsingEnabled;
try {
return pb.privateBrowsingEnabled;
}
catch (ex) {
return false;
}
}
////////////////////////////////////////////////////////////////////////////////