Bug 1225053 - use null principal in gfxSVGGlyphs.cpp r=edwin

From 5dc33ddf1254acb5356490a4d1a50b97ae61c7e2 Mon Sep 17 00:00:00 2001
---
 gfx/thebes/gfxSVGGlyphs.cpp | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
This commit is contained in:
Yoshi Huang 2016-02-19 15:35:24 +08:00
parent 6c24b952da
commit d1b2421fdc

View File

@ -347,10 +347,8 @@ gfxSVGGlyphsDocument::ParseDocument(const uint8_t *aBuffer, uint32_t aBufLen)
rv = NS_NewURI(getter_AddRefs(uri), mSVGGlyphsDocumentURI);
NS_ENSURE_SUCCESS(rv, rv);
// TODO: Bug 1225053 - gfxSVGGlyphs.cpp should use correct principal
PrincipalOriginAttributes attrs;
nsCOMPtr<nsIPrincipal> principal =
BasePrincipal::CreateCodebasePrincipal(uri, attrs);
do_CreateInstance("@mozilla.org/nullprincipal;1", &rv);
NS_ENSURE_TRUE(principal, NS_ERROR_FAILURE);
nsCOMPtr<nsIDOMDocument> domDoc;