diff --git a/modules/plugin/base/src/nsPluginHost.cpp b/modules/plugin/base/src/nsPluginHost.cpp index 6fcd0753117..b182459ca52 100644 --- a/modules/plugin/base/src/nsPluginHost.cpp +++ b/modules/plugin/base/src/nsPluginHost.cpp @@ -1895,15 +1895,11 @@ NS_IMETHODIMP nsPluginHost::PostURL(nsISupports* pluginInst, nsCOMPtr owner; rv = instance->GetOwner(getter_AddRefs(owner)); if (owner) { - if (!target) { + if ((0 == PL_strcmp(target, "newwindow")) || + (0 == PL_strcmp(target, "_new"))) { + target = "_blank"; + } else if (0 == PL_strcmp(target, "_current")) { target = "_self"; - } else { - if ((0 == PL_strcmp(target, "newwindow")) || - (0 == PL_strcmp(target, "_new"))) { - target = "_blank"; - } else if (0 == PL_strcmp(target, "_current")) { - target = "_self"; - } } rv = owner->GetURL(url, target, postStream, (void*)postHeaders, postHeadersLength);