Bug 1333532 - Changed the permissions.js file to make the Page Info dialog work. r?johannh
MozReview-Commit-ID: 2zJeMhtYEds
--- a/browser/base/content/pageinfo/permissions.js
+++ b/browser/base/content/pageinfo/permissions.js
@@ -176,16 +176,21 @@ function onRadioClick(aPartId) {
function setRadioState(aPartId, aValue) {
var radio = document.getElementById(aPartId + "#" + aValue);
if (radio) {
radio.radioGroup.selectedItem = radio;
}
}
function initIndexedDBRow() {
+ // IndexedDB information is not shown for pages with a null principal
+ // such as sandboxed pages because these pages do not have access to indexedDB.
+ if (gPermPrincipal.isNullPrincipal)
+ return;
+
let row = document.getElementById("perm-indexedDB-row");
let extras = document.getElementById("perm-indexedDB-extras");
row.appendChild(extras);
var quotaManagerService =
Components.classes["@mozilla.org/dom/quota-manager-service;1"]
.getService(nsIQuotaManagerService);