mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-21 09:49:14 +00:00
Bug 822056 - Use truthy test not typeof == 'object' for OpenBrowserWindow options in browser.js. r=gavin
This commit is contained in:
parent
a0b2f5615f
commit
833fa5f92d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user