summaryrefslogtreecommitdiffstats
path: root/application/basilisk
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-07-02 21:20:26 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-07-02 21:20:26 +0200
commit1e48edfc97fa993372330c182bb4b0cd9c56b92e (patch)
treec0f6601ea9a83affce467e338e498e747e33983a /application/basilisk
parentdc4e425944146f495b9af9a2924357c1acc733f7 (diff)
downloadUXP-1e48edfc97fa993372330c182bb4b0cd9c56b92e.tar
UXP-1e48edfc97fa993372330c182bb4b0cd9c56b92e.tar.gz
UXP-1e48edfc97fa993372330c182bb4b0cd9c56b92e.tar.lz
UXP-1e48edfc97fa993372330c182bb4b0cd9c56b92e.tar.xz
UXP-1e48edfc97fa993372330c182bb4b0cd9c56b92e.zip
Bug 1334411 - Remove the UI for indexedDB in Page Info and Permissions Manager
Diffstat (limited to 'application/basilisk')
-rw-r--r--application/basilisk/base/content/browser.xul2
-rw-r--r--application/basilisk/base/content/pageinfo/pageInfo.xul8
-rw-r--r--application/basilisk/base/content/pageinfo/permissions.js66
-rw-r--r--application/basilisk/locales/en-US/chrome/browser/browser.dtd1
-rw-r--r--application/basilisk/locales/en-US/chrome/browser/pageInfo.dtd3
-rw-r--r--application/basilisk/locales/en-US/chrome/browser/sitePermissions.properties1
-rw-r--r--application/basilisk/modules/SitePermissions.jsm2
-rw-r--r--application/basilisk/themes/shared/notification-icons.inc.css4
-rw-r--r--application/basilisk/themes/shared/notification-icons.svg1
9 files changed, 0 insertions, 88 deletions
diff --git a/application/basilisk/base/content/browser.xul b/application/basilisk/base/content/browser.xul
index 028df609f..982edfcd9 100644
--- a/application/basilisk/base/content/browser.xul
+++ b/application/basilisk/base/content/browser.xul
@@ -644,8 +644,6 @@
tooltiptext="&urlbar.webNotificationsBlocked.tooltip;"/>
<image data-permission-id="camera" class="blocked-permission-icon camera-icon" role="button"
tooltiptext="&urlbar.cameraBlocked.tooltip;"/>
- <image data-permission-id="indexedDB" class="blocked-permission-icon indexedDB-icon" role="button"
- tooltiptext="&urlbar.indexedDBBlocked.tooltip;"/>
<image data-permission-id="microphone" class="blocked-permission-icon microphone-icon" role="button"
tooltiptext="&urlbar.microphoneBlocked.tooltip;"/>
<image data-permission-id="screen" class="blocked-permission-icon screen-icon" role="button"
diff --git a/application/basilisk/base/content/pageinfo/pageInfo.xul b/application/basilisk/base/content/pageinfo/pageInfo.xul
index 8352a8aa7..42b4dff65 100644
--- a/application/basilisk/base/content/pageinfo/pageInfo.xul
+++ b/application/basilisk/base/content/pageinfo/pageInfo.xul
@@ -280,14 +280,6 @@
</hbox>
<vbox id="permList" flex="1">
- <hbox id="perm-indexedDB-extras">
- <spacer flex="1"/>
- <vbox id="permIndexedDBStatusBox" pack="center">
- <label id="indexedDBStatus" control="indexedDBClear" hidden="true"/>
- </vbox>
- <button id="indexedDBClear" label="&permClearStorage;" hidden="true"
- accesskey="&permClearStorage.accesskey;" onclick="onIndexedDBClear();"/>
- </hbox>
<vbox class="permission" id="perm-plugins-row">
<label class="permissionLabel" id="permPluginsLabel"
value="&permPlugins;" control="pluginsRadioGroup"/>
diff --git a/application/basilisk/base/content/pageinfo/permissions.js b/application/basilisk/base/content/pageinfo/permissions.js
index 0e6b9cba1..1e73b6d65 100644
--- a/application/basilisk/base/content/pageinfo/permissions.js
+++ b/application/basilisk/base/content/pageinfo/permissions.js
@@ -5,8 +5,6 @@
Components.utils.import("resource:///modules/SitePermissions.jsm");
Components.utils.import("resource://gre/modules/BrowserUtils.jsm");
-const nsIQuotaManagerService = Components.interfaces.nsIQuotaManagerService;
-
var gPermURI;
var gPermPrincipal;
var gUsageRequest;
@@ -90,10 +88,6 @@ function initRow(aPartId)
perm = SitePermissions.getDefault(aPartId);
}
setRadioState(aPartId, perm);
-
- if (aPartId == "indexedDB") {
- initIndexedDBRow();
- }
}
function createRow(aPartId) {
@@ -188,66 +182,6 @@ function setRadioState(aPartId, aValue)
}
}
-function initIndexedDBRow()
-{
- 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);
- gUsageRequest =
- quotaManagerService.getUsageForPrincipal(gPermPrincipal,
- onIndexedDBUsageCallback);
-
- var status = document.getElementById("indexedDBStatus");
- var button = document.getElementById("indexedDBClear");
-
- status.value = "";
- status.setAttribute("hidden", "true");
- button.setAttribute("hidden", "true");
-}
-
-function onIndexedDBClear()
-{
- Components.classes["@mozilla.org/dom/quota-manager-service;1"]
- .getService(nsIQuotaManagerService)
- .clearStoragesForPrincipal(gPermPrincipal);
-
- Components.classes["@mozilla.org/serviceworkers/manager;1"]
- .getService(Components.interfaces.nsIServiceWorkerManager)
- .removeAndPropagate(gPermURI.host);
-
- SitePermissions.remove(gPermURI, "indexedDB");
- initIndexedDBRow();
-}
-
-function onIndexedDBUsageCallback(request)
-{
- let uri = request.principal.URI;
- if (!uri.equals(gPermURI)) {
- throw new Error("Callback received for bad URI: " + uri);
- }
-
- let usage = request.result.usage;
- if (usage) {
- if (!("DownloadUtils" in window)) {
- Components.utils.import("resource://gre/modules/DownloadUtils.jsm");
- }
-
- var status = document.getElementById("indexedDBStatus");
- var button = document.getElementById("indexedDBClear");
-
- status.value =
- gBundle.getFormattedString("indexedDBUsage",
- DownloadUtils.convertByteUnits(usage));
- status.removeAttribute("hidden");
- button.removeAttribute("hidden");
- }
-}
-
function fillInPluginPermissionTemplate(aPluginName, aPermissionString) {
let permPluginTemplate = document.getElementById("permPluginTemplate").cloneNode(true);
permPluginTemplate.setAttribute("permString", aPermissionString);
diff --git a/application/basilisk/locales/en-US/chrome/browser/browser.dtd b/application/basilisk/locales/en-US/chrome/browser/browser.dtd
index 0b2e41612..f75aa46a7 100644
--- a/application/basilisk/locales/en-US/chrome/browser/browser.dtd
+++ b/application/basilisk/locales/en-US/chrome/browser/browser.dtd
@@ -215,7 +215,6 @@ These should match what Safari and other Apple applications use on OS X Lion. --
<!ENTITY urlbar.microphoneBlocked.tooltip "You have blocked your microphone for this website.">
<!ENTITY urlbar.screenBlocked.tooltip "You have blocked this website from sharing your screen.">
<!ENTITY urlbar.geolocationBlocked.tooltip "You have blocked location information for this website.">
-<!ENTITY urlbar.indexedDBBlocked.tooltip "You have blocked data storage for this website.">
<!ENTITY urlbar.webNotificationsBlocked.tooltip "You have blocked notifications for this website.">
<!ENTITY urlbar.openHistoryPopup.tooltip "Show history">
diff --git a/application/basilisk/locales/en-US/chrome/browser/pageInfo.dtd b/application/basilisk/locales/en-US/chrome/browser/pageInfo.dtd
index 1e861c59c..1a4efbf15 100644
--- a/application/basilisk/locales/en-US/chrome/browser/pageInfo.dtd
+++ b/application/basilisk/locales/en-US/chrome/browser/pageInfo.dtd
@@ -59,9 +59,6 @@
<!ENTITY permissionsFor "Permissions for:">
<!ENTITY permPlugins "Activate Plugins">
-<!ENTITY permClearStorage "Clear Storage">
-<!ENTITY permClearStorage.accesskey "C">
-
<!ENTITY securityTab "Security">
<!ENTITY securityTab.accesskey "S">
<!ENTITY securityView.certView "View Certificate">
diff --git a/application/basilisk/locales/en-US/chrome/browser/sitePermissions.properties b/application/basilisk/locales/en-US/chrome/browser/sitePermissions.properties
index 8126995f2..4a95570f6 100644
--- a/application/basilisk/locales/en-US/chrome/browser/sitePermissions.properties
+++ b/application/basilisk/locales/en-US/chrome/browser/sitePermissions.properties
@@ -17,4 +17,3 @@ 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.indexedDB.label = Maintain Offline Storage
diff --git a/application/basilisk/modules/SitePermissions.jsm b/application/basilisk/modules/SitePermissions.jsm
index d15ddb21b..237ad1f8d 100644
--- a/application/basilisk/modules/SitePermissions.jsm
+++ b/application/basilisk/modules/SitePermissions.jsm
@@ -262,8 +262,6 @@ var gPermissionObject = {
"geo": {
exactHostMatch: true
},
-
- "indexedDB": {}
};
const kPermissionIDs = Object.keys(gPermissionObject);
diff --git a/application/basilisk/themes/shared/notification-icons.inc.css b/application/basilisk/themes/shared/notification-icons.inc.css
index 86dce73a1..f641e72c1 100644
--- a/application/basilisk/themes/shared/notification-icons.inc.css
+++ b/application/basilisk/themes/shared/notification-icons.inc.css
@@ -87,10 +87,6 @@
list-style-image: url(chrome://browser/skin/notification-icons.svg#indexedDB);
}
-.indexedDB-icon.blocked-permission-icon {
- list-style-image: url(chrome://browser/skin/notification-icons.svg#indexedDB-blocked);
-}
-
.login-icon {
list-style-image: url(chrome://browser/skin/notification-icons.svg#login);
}
diff --git a/application/basilisk/themes/shared/notification-icons.svg b/application/basilisk/themes/shared/notification-icons.svg
index 206157cf2..06bd6f7d2 100644
--- a/application/basilisk/themes/shared/notification-icons.svg
+++ b/application/basilisk/themes/shared/notification-icons.svg
@@ -85,7 +85,6 @@
<use id="geo-windows-blocked" class="blocked" xlink:href="#geo-windows-icon" />
<use id="geo-windows-detailed" xlink:href="#geo-windows-detailed-icon" />
<use id="indexedDB" xlink:href="#indexedDB-icon" />
- <use id="indexedDB-blocked" class="blocked" xlink:href="#indexedDB-icon" />
<use id="login" xlink:href="#login-icon" />
<use id="login-highlighted" class="highlighted" xlink:href="#login-icon" />
<use id="login-detailed" xlink:href="#login-detailed-icon" />