mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-13 15:34:01 +00:00
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:
parent
60233d6407
commit
53a6fa9bae
@ -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));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user