save AboutGroup.js for decide by fx version.
This commit is contained in:
parent
77209de931
commit
e5465309f8
@ -47,17 +47,24 @@ AboutGroup.prototype = {
|
|||||||
|
|
||||||
newChannel : function(aURI)
|
newChannel : function(aURI)
|
||||||
{
|
{
|
||||||
//return Services.io.newChannel('chrome://treestyletab/content/group.xul', null, null);
|
const version = Services.appinfo.platformVersion;
|
||||||
return Services.io.newChannel2(
|
console.log("hello! this firefox version is"+version);
|
||||||
'chrome://treestyletab/content/group.xul',
|
if(version){
|
||||||
null,
|
console.log("hello! this firefox newChannel");
|
||||||
null,
|
return Services.io.newChannel('chrome://treestyletab/content/group.xul', null, null);
|
||||||
null,
|
}else{
|
||||||
Services.scriptSecurityManager.getSystemPrincipal(),
|
console.log("hello! this firefox newChannel");
|
||||||
Services.scriptSecurityManager.getSystemPrincipal(),
|
return Services.io.newChannel2(
|
||||||
Components.interfaces.nsILoadInfo.SEC_REQUIRE_SAME_ORIGIN_DATA_IS_BLOCKED,
|
'chrome://treestyletab/content/group.xul',
|
||||||
Components.interfaces.nsIContentPolicy.TYPE_OTHER
|
null,
|
||||||
);
|
null,
|
||||||
|
null,
|
||||||
|
Services.scriptSecurityManager.getSystemPrincipal(),
|
||||||
|
Services.scriptSecurityManager.getSystemPrincipal(),
|
||||||
|
Components.interfaces.nsILoadInfo.SEC_REQUIRE_SAME_ORIGIN_DATA_IS_BLOCKED,
|
||||||
|
Components.interfaces.nsIContentPolicy.TYPE_OTHER
|
||||||
|
);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
getURIFlags : function(aURI)
|
getURIFlags : function(aURI)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user