mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Attempt at bustage fix for bug 354973. r=froodian/ardissone
This commit is contained in:
parent
52aff8ddeb
commit
46bb196672
@ -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]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user