Firefox addon 使关于:页面认为它是https(或chrome://page-safe for untrusted)
我想知道是否有可能让Firefox认为一个页面是Firefox addon 使关于:页面认为它是https(或chrome://page-safe for untrusted),firefox-addon,Firefox Addon,我想知道是否有可能让Firefox认为一个页面是https 我已经设置了一个about:页面,并使用这些标志使其认为它是http: getURIFlags: function(aURI) { return Ci.nsIAboutModule.URI_SAFE_FOR_UNTRUSTED_CONTENT | Ci.nsIAboutModule.ALLOW_SCRIPT | Ci.nsIAboutModule.URI_MUST_LOAD_IN_CHILD; }, 不
https
我已经设置了一个about:页面,并使用这些标志使其认为它是http
:
getURIFlags: function(aURI) {
return Ci.nsIAboutModule.URI_SAFE_FOR_UNTRUSTED_CONTENT | Ci.nsIAboutModule.ALLOW_SCRIPT | Ci.nsIAboutModule.URI_MUST_LOAD_IN_CHILD;
},
不受信任内容的URI\u SAFE\u
使其与普通网页一样
有没有办法让它表现得像https?因为否则我就无法让webrtc屏幕共享工作
我还尝试了一些棘手的事情,比如从framesccript中选择setCurrentURI
,将位置更改为其他位置:
var webNav = contentWindow.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIWebNavigation);
webNav.setCurrentURI(Services.io.newURI('https://mozilla.github.io/', null, null));
这也没用
或者,对于不受信任的内容,chrome://页面是URI安全的吗?我尝试在清单中设置contentaccessible=yes
,但没有成功:
content screencastify ./ contentaccessible=yes
locale screencastify en-US locale/en-US/