From 1f60e17a853fe80f76d17a36e6550ff083cad92c Mon Sep 17 00:00:00 2001 From: oonuma ryouyu Date: Fri, 3 Jun 2016 09:35:39 +0900 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E5=BF=9C=E4=BF=AE=E6=AD=A3=E3=81=A7?= =?UTF-8?q?=E3=81=8D=E3=81=9F=E3=80=82Warning:=20NetUtil.asyncFetch()=20re?= =?UTF-8?q?quires=20the=20channel=20to=20have=20one=20of=20the=20security?= =?UTF-8?q?=20flags=20set=20in=20the=20loadinfo=20(see=20nsILoadInfo).=20P?= =?UTF-8?q?lease=20create=20channel=20using=20NetUtil.newChannel()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/AboutGroup.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/components/AboutGroup.js b/components/AboutGroup.js index cf87bc5d..efb66f7f 100644 --- a/components/AboutGroup.js +++ b/components/AboutGroup.js @@ -47,7 +47,17 @@ AboutGroup.prototype = { 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)