diff --git a/dom/ipc/ContentParent.cpp b/dom/ipc/ContentParent.cpp index 45cb646f44ea..18fb6fd7ae65 100644 --- a/dom/ipc/ContentParent.cpp +++ b/dom/ipc/ContentParent.cpp @@ -5539,10 +5539,13 @@ ContentParent::RecvCreateWindow(PBrowserParent* aThisTab, nsCOMPtr window; TabParent::AutoUseNewTab aunt(newTab, aWindowIsNew, aURLToLoad); - const char* name = aName.IsVoid() ? nullptr : NS_ConvertUTF16toUTF8(aName).get(); const char* features = aFeatures.IsVoid() ? nullptr : aFeatures.get(); - *aResult = pwwatch->OpenWindow2(parent, nullptr, name, features, aCalledFromJS, + *aResult = pwwatch->OpenWindow2(parent, nullptr, + aName.IsVoid() ? + nullptr : + NS_ConvertUTF16toUTF8(aName).get(), + features, aCalledFromJS, false, false, thisTabParent, nullptr, aFullZoom, 1, getter_AddRefs(window));