mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 06:35:42 +00:00
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:
parent
3b22162d5b
commit
08f2414d7a
@ -158,7 +158,12 @@ function initTempTable(aDatabase)
|
||||
*/
|
||||
function inPrivateBrowsingMode()
|
||||
{
|
||||
return pb.privateBrowsingEnabled;
|
||||
try {
|
||||
return pb.privateBrowsingEnabled;
|
||||
}
|
||||
catch (ex) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user