mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 550894 - unreachable code in nsPluginHost::PostURL. r=josh
This commit is contained in:
parent
282de06977
commit
22dd000e85
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user