mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 887755 - Lightweight theme preview is broken r=margaret
This commit is contained in:
parent
c09b4eaa3a
commit
fd1c1742b6
@ -95,6 +95,9 @@ XPCOMUtils.defineLazyModuleGetter(this, "CharsetMenu",
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "NetErrorHelper",
|
||||
"resource://gre/modules/NetErrorHelper.jsm");
|
||||
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "PermissionsUtils",
|
||||
"resource://gre/modules/PermissionsUtils.jsm");
|
||||
|
||||
// Lazily-loaded browser scripts:
|
||||
[
|
||||
["SelectHelper", "chrome://browser/content/SelectHelper.js"],
|
||||
@ -2848,6 +2851,9 @@ var LightWeightThemeWebInstaller = {
|
||||
},
|
||||
|
||||
_isAllowed: function (node) {
|
||||
// Make sure the whitelist has been imported to permissions
|
||||
PermissionsUtils.importFromPrefs("xpinstall.", "install");
|
||||
|
||||
let pm = Services.perms;
|
||||
|
||||
let uri = node.ownerDocument.documentURIObject;
|
||||
|
Loading…
Reference in New Issue
Block a user