Fix code inside a phoenix ifdef. NPOB.

git-svn-id: svn://10.0.0.236/trunk@131444 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
hyatt%netscape.com 2002-10-08 19:07:29 +00:00
parent 1817627571
commit ea4b2d7ed6

View File

@ -2901,8 +2901,10 @@ GlobalWindowImpl::CheckForAbusePoint ()
#ifdef MOZ_PHOENIX
// see the definition of the function for details.
if (!IsPopupWhitelisted(mDocument))
FirePopupBlockedEvent(mDocument);
PRBool whitelisted = IsPopupWhitelisted(mDocument);
if (!whitelisted)
FirePopupBlockedEvent(mDocument);
return !whitelisted;
#else
return PR_TRUE;
#endif
@ -2926,9 +2928,10 @@ GlobalWindowImpl::CheckForAbusePoint ()
#endif
#ifdef MOZ_PHOENIX
// see the definition of the function for details.
if (!IsPopupWhitelisted(mDocument))
PRBool whitelisted = IsPopupWhitelisted(mDocument);
if (!whitelisted)
FirePopupBlockedEvent(mDocument);
return !whitelisted;
#else
return PR_TRUE;
#endif