From ceff37e7d029970e0b69dae6a9d6b984bde498f7 Mon Sep 17 00:00:00 2001 From: Olli Pettay Date: Tue, 31 May 2016 22:38:44 +0300 Subject: [PATCH] bug 1276013, fix regression in e10s window name handling, r=mconley --HG-- extra : rebase_source : 0ed994af42ae9f070fb31ec4a1e82914dbf7e48e --- dom/ipc/ContentParent.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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));