mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-07 04:05:49 +00:00
bug 115818, context menu slow to appear when images are present, c=ajfeldman@brown.edu, r=morse, sr=waterson -- this is better patch than the one in bug 146048
This commit is contained in:
parent
01ca0583d8
commit
78ea7de70c
@ -45,12 +45,10 @@
|
|||||||
var permissionmanager =
|
var permissionmanager =
|
||||||
Components.classes["@mozilla.org/permissionmanager;1"]
|
Components.classes["@mozilla.org/permissionmanager;1"]
|
||||||
.getService(Components.interfaces.nsIPermissionManager);
|
.getService(Components.interfaces.nsIPermissionManager);
|
||||||
|
if(!permissionmanager) {
|
||||||
if(permissionmanager.testForBlocking(gContextMenu.imageURL,IMAGEPERMISSION))
|
return true;
|
||||||
return false;
|
}
|
||||||
|
return !permissionmanager.testForBlocking(gContextMenu.imageURL, IMAGEPERMISSION);
|
||||||
/* image is not already being blocked, so "Block Image" can appear on the menu */
|
|
||||||
return true;
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// Determine if "imageBlocker.enabled" pref is set
|
// Determine if "imageBlocker.enabled" pref is set
|
||||||
|
Loading…
Reference in New Issue
Block a user