Bug 822056 - Use truthy test not typeof == 'object' for OpenBrowserWindow options in browser.js. r=gavin

This commit is contained in:
Frank Yan 2012-12-15 15:59:19 -08:00
parent a0b2f5615f
commit 833fa5f92d

View File

@ -3499,7 +3499,7 @@ function OpenBrowserWindow(options)
var extraFeatures = "";
#ifdef MOZ_PER_WINDOW_PRIVATE_BROWSING
if (typeof options == "object" && options.private) {
if (options && options.private) {
#else
if (gPrivateBrowsingUI.privateBrowsingEnabled) {
#endif