зеркало из https://github.com/mozilla/pjs.git
Attempt at bustage fix for bug 354973. r=froodian/ardissone
This commit is contained in:
Родитель
661f32547b
Коммит
b58fad343a
|
@ -1945,11 +1945,19 @@ enum BWCOpenDest {
|
|||
popupWindowURI->GetSpec(uriStr);
|
||||
|
||||
// whitelist the URL
|
||||
[self whitelistURL:requestingWindowURI];
|
||||
|
||||
nsCOMPtr<nsIURI> requestingWindowURI;
|
||||
nsCOMPtr<nsIWebNavigation> webNav = do_GetInterface(requestingWindow);
|
||||
if (webNav)
|
||||
webNav->GetCurrentURI(getter_AddRefs(requestingWindowURI));
|
||||
|
||||
if (requestingWindowURI)
|
||||
[self whitelistURL:requestingWindowURI];
|
||||
else
|
||||
NSLog(@"Couldn't whitelist the URI");
|
||||
|
||||
// show the blocked popup
|
||||
nsCOMPtr<nsIDOMWindow> openedWindow;
|
||||
nsresult rv = domWin->Open(NS_ConvertUTF8toUTF16(uriStr), windowName, features, getter_AddRefs(openedWindow));
|
||||
nsresult rv = piDomWin->Open(NS_ConvertUTF8toUTF16(uriStr), windowName, features, getter_AddRefs(openedWindow));
|
||||
if (NS_FAILED(rv))
|
||||
NSLog(@"Couldn't show the blocked popup window for %@", [NSString stringWith_nsACString:uriStr]);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче