From ad36dbc902a993e8361ba35ec0b29f0039e41e32 Mon Sep 17 00:00:00 2001 From: Prathiksha Date: Sun, 9 Apr 2017 16:50:02 +0530 Subject: [PATCH] Bug 1333532 - Changed the permissions.js file to make the Page Info dialog work. r=johannh MozReview-Commit-ID: 2zJeMhtYEds --HG-- extra : rebase_source : 7db88f2451c740e1b5179d81f699ead14fbd585f --- browser/base/content/pageinfo/permissions.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/browser/base/content/pageinfo/permissions.js b/browser/base/content/pageinfo/permissions.js index 712c1e7ddccd..895e8ed6b080 100644 --- a/browser/base/content/pageinfo/permissions.js +++ b/browser/base/content/pageinfo/permissions.js @@ -181,6 +181,11 @@ function setRadioState(aPartId, aValue) { } 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");