Propagate the principal responsible an image load all the way to
CanLoadImage/LoadImage in nsContentUtils, and use it for security checks there. Bug 310165, r=sicking, sr=dbaron git-svn-id: svn://10.0.0.236/trunk@229261 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -435,9 +435,10 @@ nsCSSValue::Image::Image(nsIURI* aURI, nsStringBuffer* aString,
|
||||
MOZ_COUNT_CTOR(nsCSSValue::Image);
|
||||
|
||||
if (mURI &&
|
||||
nsContentUtils::CanLoadImage(mURI, aDocument, aDocument)) {
|
||||
nsContentUtils::LoadImage(mURI, aDocument, aReferrer, nsnull,
|
||||
nsIRequest::LOAD_NORMAL,
|
||||
nsContentUtils::CanLoadImage(mURI, aDocument, aDocument,
|
||||
aOriginPrincipal)) {
|
||||
nsContentUtils::LoadImage(mURI, aDocument, aOriginPrincipal, aReferrer,
|
||||
nsnull, nsIRequest::LOAD_NORMAL,
|
||||
getter_AddRefs(mRequest));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user