diff --git a/toolkit/components/places/src/nsPlacesAutoComplete.js b/toolkit/components/places/src/nsPlacesAutoComplete.js index 6503641ba978..e378ea78e52b 100644 --- a/toolkit/components/places/src/nsPlacesAutoComplete.js +++ b/toolkit/components/places/src/nsPlacesAutoComplete.js @@ -158,7 +158,12 @@ function initTempTable(aDatabase) */ function inPrivateBrowsingMode() { - return pb.privateBrowsingEnabled; + try { + return pb.privateBrowsingEnabled; + } + catch (ex) { + return false; + } } ////////////////////////////////////////////////////////////////////////////////