一応修正できた。Warning: NetUtil.asyncFetch() requires the channel to have one of the security flags set in the loadinfo (see nsILoadInfo). Please create channel using NetUtil.newChannel()

This commit is contained in:
oonuma ryouyu 2016-06-03 09:35:39 +09:00
parent 7d023b122d
commit 1f60e17a85

View File

@ -47,7 +47,17 @@ AboutGroup.prototype = {
newChannel : function(aURI) newChannel : function(aURI)
{ {
return Services.io.newChannel('chrome://treestyletab/content/group.xul', null, null); //return Services.io.newChannel('chrome://treestyletab/content/group.xul', null, null);
return Services.io.newChannel2(
'chrome://treestyletab/content/group.xul',
null,
null,
null,
Services.scriptSecurityManager.getSystemPrincipal(),
null,
Components.interfaces.nsILoadInfo.SEC_NORMAL,
Components.interfaces.nsIContentPolicy.TYPE_OTHER
);
}, },
getURIFlags : function(aURI) getURIFlags : function(aURI)