Camino only - Bug 373358: Fix popup whitelisting on some sites. r/sr=josh

This commit is contained in:
stuart.morgan%alumni.case.edu 2007-03-16 03:01:29 +00:00
Родитель 97123573ff
Коммит 53e7ceae3d
1 изменённых файлов: 5 добавлений и 4 удалений

Просмотреть файл

@ -1914,6 +1914,11 @@ enum BWCOpenDest {
//
- (void)showBlockedPopups:(nsIArray*)blockedSites whitelistingSource:(BOOL)shouldWhitelist
{
// Because of the way our UI is set up, we white/blacklist based on the top-level window URI,
// rather than the requesting URI (which can be different on framed sites).
if (shouldWhitelist)
[self whitelistPopupsFromURL:[mBrowserView currentURI]];
nsCOMPtr<nsISimpleEnumerator> enumerator;
blockedSites->Enumerate(getter_AddRefs(enumerator));
PRBool hasMore = PR_FALSE;
@ -1931,10 +1936,6 @@ enum BWCOpenDest {
if (evt)
[self showPopup:evt];
}
// Because of the way our UI is set up, we white/blacklist based on the top-level window URI,
// rather than the requesting URI (which can be different on framed sites).
if (shouldWhitelist)
[self whitelistPopupsFromURL:[mBrowserView currentURI]];
}
- (void)showPopup:(nsIDOMPopupBlockedEvent*)aPopupBlockedEvent