mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 13:21:28 +00:00
Bug 712588 - Clear location not available in 'Clear Site Settings' [r=mfinkle]
This commit is contained in:
parent
78db0e852c
commit
c873b33571
@ -3347,7 +3347,7 @@ var PluginHelper = {
|
||||
|
||||
var PermissionsHelper = {
|
||||
|
||||
_permissonTypes: ["password", "geo", "popup", "indexedDB",
|
||||
_permissonTypes: ["password", "geolocation", "popup", "indexedDB",
|
||||
"offline-app", "desktop-notification"],
|
||||
_permissionStrings: {
|
||||
"password": {
|
||||
@ -3355,10 +3355,10 @@ var PermissionsHelper = {
|
||||
allowed: "password.remember",
|
||||
denied: "password.never"
|
||||
},
|
||||
"geo": {
|
||||
"geolocation": {
|
||||
label: "geolocation.shareLocation",
|
||||
allowed: "geolocation.alwaysShare",
|
||||
denied: "geolocation.neverShare"
|
||||
allowed: "geolocation.alwaysAllow",
|
||||
denied: "geolocation.neverAllow"
|
||||
},
|
||||
"popup": {
|
||||
label: "blockPopups.label",
|
||||
@ -3450,7 +3450,7 @@ var PermissionsHelper = {
|
||||
*
|
||||
* @param aType
|
||||
* The permission type string stored in permission manager.
|
||||
* e.g. "cookie", "geo", "indexedDB", "popup", "image"
|
||||
* e.g. "geolocation", "indexedDB", "popup"
|
||||
*
|
||||
* @return A permission value defined in nsIPermissionManager.
|
||||
*/
|
||||
@ -3471,7 +3471,7 @@ var PermissionsHelper = {
|
||||
}
|
||||
|
||||
// Geolocation consumers use testExactPermission
|
||||
if (aType == "geo")
|
||||
if (aType == "geolocation")
|
||||
return Services.perms.testExactPermission(aURI, aType);
|
||||
|
||||
return Services.perms.testPermission(aURI, aType);
|
||||
@ -3482,7 +3482,7 @@ var PermissionsHelper = {
|
||||
*
|
||||
* @param aType
|
||||
* The permission type string stored in permission manager.
|
||||
* e.g. "cookie", "geo", "indexedDB", "popup", "image"
|
||||
* e.g. "geolocation", "indexedDB", "popup"
|
||||
*/
|
||||
clearPermission: function clearPermission(aURI, aType) {
|
||||
// Password saving isn't a nsIPermissionManager permission type, so handle
|
||||
|
Loading…
x
Reference in New Issue
Block a user