Fixing bug 343175. Make the popup blocker events point to the window on which the popup open was attempted rather than that window's top window. r=mrbkap@gmail.com, sr=bzbarsky@mit.edu

This commit is contained in:
jst%mozilla.jstenback.com 2006-07-18 14:41:51 +00:00
parent 60233d6407
commit 53a6fa9bae

View File

@ -4214,7 +4214,8 @@ nsGlobalWindow::FireAbuseEvents(PRBool aBlocked, PRBool aWindow,
nsCOMPtr<nsIURI> requestingURI;
nsCOMPtr<nsIURI> popupURI;
nsCOMPtr<nsIWebNavigation> webNav(do_GetInterface(topWindow));
nsCOMPtr<nsIWebNavigation> webNav =
do_GetInterface((nsIScriptGlobalObject *)this);
if (webNav)
webNav->GetCurrentURI(getter_AddRefs(requestingURI));