Bug 550894 - unreachable code in nsPluginHost::PostURL. r=josh

This commit is contained in:
Saint Wesonga 2010-03-11 07:49:29 +01:00
parent 282de06977
commit 22dd000e85

View File

@ -1895,15 +1895,11 @@ NS_IMETHODIMP nsPluginHost::PostURL(nsISupports* pluginInst,
nsCOMPtr<nsIPluginInstanceOwner> 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);