Bug 253597 Trunk crash blocking ads/images [@ nsImgManager::TestPermission]

p=mvl r=dwitte sr=darin
This commit is contained in:
dwitte%stanford.edu 2004-08-01 22:38:10 +00:00
Родитель 8298355fdc
Коммит 3441040ff5
1 изменённых файлов: 4 добавлений и 0 удалений

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

@ -276,6 +276,10 @@ nsImgManager::TestPermission(nsIURI *aCurrentURI,
// Third party checking
if (mBehaviorPref == IMAGE_NOFOREIGN) {
// We need a requesting uri for third party checks to work.
if (!aFirstURI)
return NS_OK;
// compare tails of names checking to see if they have a common domain
// we do this by comparing the tails of both names where each tail
// includes at least one dot