Bug 1413780 - Make canvas permission visible in site information panel. draft
authorChung-Sheng Fu <cfu@mozilla.com>
Tue, 31 Oct 2017 16:56:36 +0800
changeset 714047 c7fb60750317924ef59c9c18a2cce27d36d287ea
parent 713998 5b1fdaa14d35ddf1a638c9422786ede707cacf1f
child 714048 191eb82bc8e169ca1f9cc99623376b7081e15afd
push id93827
push userbmo:cfu@mozilla.com
push dateThu, 21 Dec 2017 16:43:05 +0000
bugs1413780
milestone59.0a1
Bug 1413780 - Make canvas permission visible in site information panel. MozReview-Commit-ID: 1SmF9ZLkLmw
browser/locales/en-US/chrome/browser/sitePermissions.properties
browser/modules/SitePermissions.jsm
--- a/browser/locales/en-US/chrome/browser/sitePermissions.properties
+++ b/browser/locales/en-US/chrome/browser/sitePermissions.properties
@@ -33,8 +33,9 @@ permission.camera.label = Use the Camera
 permission.microphone.label = Use the Microphone
 permission.screen.label = Share the Screen
 permission.install.label = Install Add-ons
 permission.popup.label = Open Pop-up Windows
 permission.geo.label = Access Your Location
 permission.shortcuts.label = Override Keyboard Shortcuts
 permission.focus-tab-by-prompt.label = Switch to this Tab
 permission.persistent-storage.label = Store Data in Persistent Storage
+permission.canvas.label = Extract Canvas Data
--- a/browser/modules/SitePermissions.jsm
+++ b/browser/modules/SitePermissions.jsm
@@ -626,16 +626,20 @@ var gPermissionObject = {
   },
   "persistent-storage": {
     exactHostMatch: true
   },
 
   "shortcuts": {
     states: [ SitePermissions.ALLOW, SitePermissions.BLOCK ],
   },
+
+  "canvas/extractData": {
+    labelID: "canvas"
+  },
 };
 
 // Delete this entry while being pre-off
 // or the persistent-storage permission would appear in Page info's Permission section
 if (!Services.prefs.getBoolPref("browser.storageManager.enabled")) {
   delete gPermissionObject["persistent-storage"];
 }