mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-02 03:49:37 +00:00
bug#36242: add test in il_PermitLoad(). pnunn, rev:morse.
This commit is contained in:
parent
8fbbd840e7
commit
27c76f8f47
@ -1918,17 +1918,20 @@ PRBool il_PermitLoad(const char * image_url, nsIImageRequestObserver * aObserver
|
||||
rv = frameImageLoader->GetPresContext(getter_AddRefs(presContext));
|
||||
if (presContext) {
|
||||
nsCOMPtr<nsIURI> firstURI;
|
||||
|
||||
presContext->GetBaseURL(getter_AddRefs(firstURI));
|
||||
|
||||
/* Check to see if the image is the whole page, in which case accept it */
|
||||
PRBool eq;
|
||||
firstURI->Equals(uri, &eq);
|
||||
if (eq) {
|
||||
Recycle(host);
|
||||
return PR_TRUE;
|
||||
|
||||
if(firstURI){
|
||||
firstURI->Equals(uri, &eq);
|
||||
if (eq) {
|
||||
Recycle(host);
|
||||
return PR_TRUE;
|
||||
}
|
||||
rv = firstURI->GetHost(&firstHost);
|
||||
}
|
||||
|
||||
rv = firstURI->GetHost(&firstHost);
|
||||
}
|
||||
}
|
||||
if (!firstHost) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user