зеркало из https://github.com/mozilla/gecko-dev.git
Bug 253597 Trunk crash blocking ads/images [@ nsImgManager::TestPermission]
p=mvl r=dwitte sr=darin
This commit is contained in:
Родитель
8298355fdc
Коммит
3441040ff5
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче