зеркало из https://github.com/mozilla/gecko-dev.git
Bug 550894 - unreachable code in nsPluginHost::PostURL. r=josh
This commit is contained in:
Родитель
c5eb15d04c
Коммит
5f4aee574a
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче