Bug 1253556 - Remove unnecessary netmonitor.status.* strings. r=vporof

This commit is contained in:
Alexandre Poirot 2016-03-29 06:28:17 -07:00
Родитель 41ecacca17
Коммит 44071a319a
2 изменённых файлов: 5 добавлений и 14 удалений

Просмотреть файл

@ -74,16 +74,6 @@ netmonitor.security.hostHeader=Host %S:
# Organization: <Not Available>
netmonitor.security.notAvailable=<Not Available>
# LOCALIZATION NOTE (netmonitor.status.cached):
# This string is used as tooltip text over the status icon when a request is
# served from cached.
netmonitor.status.cached=cached
# LOCALIZATION NOTE (netmonitor.status.serviceWorker):
# This string is used as tooltip text over the status icon when a request is
# served from a service worker.
netmonitor.status.serviceWorker=service worker
# LOCALIZATION NOTE (collapseDetailsPane): This is the tooltip for the button
# that collapses the network details pane in the UI.
collapseDetailsPane=Hide request details

Просмотреть файл

@ -1849,12 +1849,12 @@ RequestsMenuView.prototype = Heritage.extend(WidgetMethods, {
}
case "status": {
let node = $(".requests-menu-status-icon", target);
// "code" attribute is only used by css to determine the icon color
let code;
if (value.cached) {
code = L10N.getStr("netmonitor.status.cached");
code = "cached";
} else if (value.serviceWorker) {
code = L10N.getStr("netmonitor.status.serviceWorker");
code = "service worker";
} else {
code = value.status;
}
@ -2915,11 +2915,12 @@ NetworkDetailsView.prototype = {
}
if (data.status) {
// "code" attribute is only used by css to determine the icon color
let code;
if (data.fromCache) {
code = L10N.getStr("netmonitor.status.cached");
code = "cached";
} else if (data.fromServiceWorker) {
code = L10N.getStr("netmonitor.status.serviceWorker");
code = "service worker";
} else {
code = data.status;
}