mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
6c24b952da
commit
d1b2421fdc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user