Bug 1576785 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Image permissions can be:
1-Accept, 2-Deny, 3-dontAcceptForeign
See https://searchfox.org/mozilla-central/source/modules/libpref/init/all.js#2228
At the moment SitePermissions.jsm does not cater for the value 3, it only gives ALLOW and BLOCK
Bug 1543812 has given the ability to create a custom getMultichoiceStateLabel for image permissions and PROMPT_ACTION equates to BEHAVIOR_NOFOREIGN from nsContentBlocker.cpp so should be fairly straight forward to add suitable code to SitePermissions.jsm and appropriate string into sitePermissions.properties
Image permissions can be:
1-Accept, 2-Deny, 3-dontAcceptForeign
See https://searchfox.org/mozilla-central/source/modules/libpref/init/all.js#2228
At the moment SitePermissions.jsm does not cater for the value 3, it only gives ALLOW and BLOCK
Bug 1543812 has given the ability to create a custom getMultichoiceStateLabel for image permissions and the value of SitePermissions.PROMPT equates to BEHAVIOR_NOFOREIGN from nsContentBlocker.cpp so should be fairly straight forward to add suitable code to SitePermissions.jsm and appropriate string into sitePermissions.properties

Back to Bug 1576785 Comment 0