mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 23:08:39 +09:00
[Pale-Moon] Issue MoonchildProductions/UXP#516 - Remove named function syntax from palemoon/components/pageinfo.
This commit is contained in:
parent
3d1be0ea0f
commit
85de6bf035
1 changed files with 7 additions and 7 deletions
|
|
@ -18,21 +18,21 @@ var gPrefs;
|
|||
var gUsageRequest;
|
||||
|
||||
var gPermObj = {
|
||||
image: function getImageDefaultPermission()
|
||||
image: function ()
|
||||
{
|
||||
if (gPrefs.getIntPref("permissions.default.image") == IMAGE_DENY) {
|
||||
return DENY;
|
||||
}
|
||||
return ALLOW;
|
||||
},
|
||||
popup: function getPopupDefaultPermission()
|
||||
popup: function ()
|
||||
{
|
||||
if (gPrefs.getBoolPref("dom.disable_open_during_load")) {
|
||||
return DENY;
|
||||
}
|
||||
return ALLOW;
|
||||
},
|
||||
cookie: function getCookieDefaultPermission()
|
||||
cookie: function ()
|
||||
{
|
||||
if (gPrefs.getIntPref("network.cookie.cookieBehavior") == COOKIE_DENY) {
|
||||
return DENY;
|
||||
|
|
@ -42,28 +42,28 @@ var gPermObj = {
|
|||
}
|
||||
return ALLOW;
|
||||
},
|
||||
"desktop-notification": function getNotificationDefaultPermission()
|
||||
"desktop-notification": function ()
|
||||
{
|
||||
if (!gPrefs.getBoolPref("dom.webnotifications.enabled")) {
|
||||
return DENY;
|
||||
}
|
||||
return UNKNOWN;
|
||||
},
|
||||
install: function getInstallDefaultPermission()
|
||||
install: function ()
|
||||
{
|
||||
if (Services.prefs.getBoolPref("xpinstall.whitelist.required")) {
|
||||
return DENY;
|
||||
}
|
||||
return ALLOW;
|
||||
},
|
||||
geo: function getGeoDefaultPermissions()
|
||||
geo: function ()
|
||||
{
|
||||
if (!gPrefs.getBoolPref("geo.enabled")) {
|
||||
return DENY;
|
||||
}
|
||||
return ALLOW;
|
||||
},
|
||||
plugins: function getPluginsDefaultPermissions()
|
||||
plugins: function ()
|
||||
{
|
||||
return UNKNOWN;
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue