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

This commit is contained in:
Saint Wesonga 2010-03-11 07:49:29 +01:00
Родитель c5eb15d04c
Коммит 5f4aee574a
1 изменённых файлов: 4 добавлений и 8 удалений

Просмотреть файл

@ -1895,16 +1895,12 @@ NS_IMETHODIMP nsPluginHost::PostURL(nsISupports* pluginInst,
nsCOMPtr<nsIPluginInstanceOwner> owner;
rv = instance->GetOwner(getter_AddRefs(owner));
if (owner) {
if (!target) {
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);
}