зеркало из https://github.com/mozilla/pjs.git
Fix code inside a phoenix ifdef. NPOB.
This commit is contained in:
Родитель
82ccce91b1
Коммит
231f1c4a82
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче