Bug 1276339: Storage inspector doesn't work on chrome:// pages and web extensions

Issue #31
This commit is contained in:
janekptacijarabaci 2018-03-02 14:33:20 +01:00 committed by Roy Tam
commit d0ef0781ff
18 changed files with 361 additions and 129 deletions

View file

@ -809,7 +809,10 @@ StorageUI.prototype = {
columns[f.name] = f.name;
let columnName;
try {
columnName = L10N.getStr("table.headers." + type + "." + f.name);
// Path key names for l10n in the case of a string change.
let name = f.name === "keyPath" ? "keyPath2" : f.name;
columnName = L10N.getStr("table.headers." + type + "." + name);
} catch (e) {
columnName = COOKIE_KEY_MAP[f.name];
}