mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1038756: Callsites creating a channel in /editor/ (r=ehsan)
This commit is contained in:
parent
a1af7cf629
commit
a07bf525b2
@ -86,6 +86,7 @@
|
||||
#include "nsWSRunObject.h"
|
||||
#include "nsXPCOM.h"
|
||||
#include "nscore.h"
|
||||
#include "nsContentUtils.h"
|
||||
|
||||
class nsIAtom;
|
||||
class nsILoadContext;
|
||||
@ -1080,7 +1081,12 @@ nsresult nsHTMLEditor::InsertObject(const char* aType, nsISupports* aObject, boo
|
||||
nsCOMPtr<nsIInputStream> imageStream;
|
||||
if (insertAsImage) {
|
||||
NS_ASSERTION(fileURI, "The file URI should be retrieved earlier");
|
||||
rv = NS_OpenURI(getter_AddRefs(imageStream), fileURI);
|
||||
rv = NS_OpenURI(getter_AddRefs(imageStream),
|
||||
fileURI,
|
||||
nsContentUtils::GetSystemPrincipal(),
|
||||
nsILoadInfo::SEC_NORMAL,
|
||||
nsIContentPolicy::TYPE_OTHER);
|
||||
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
} else {
|
||||
imageStream = do_QueryInterface(aObject);
|
||||
|
Loading…
Reference in New Issue
Block a user