Hi!
I’m porting XPCOM extension jsPrintSetup .
In options page of addon I have button which calls permission manager with allowed/blocked hosts which can access jsPrintSetup
.
This code doesn’t work in web extension options.html
.
function openPermissionManager() {
var params = {
blockVisible : true,
sessionVisible : false,
allowVisible : true,
prefilledHost : "",
permissionType : "jsPrintSetup", //"popup",
windowTitle : "jsPrintSetup",
introText : "jsPrintSetup "+browser.i18n.getMessage("jsp_Permissions")
};
console.log(window);
window.openDialog(
"chrome://browser/content/preferences/permissions.xul"
, "_blank"
, "resizable,dialog=no,centerscreen"
, params
);
}
What is right way to implement host permissions for accessing extension and provide way to manage permissions?
Regards,
Dimitar Angelov