Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: chrome/content/watcher.js

Issue 29331959: Issue 3377 - Add Private column to Diagnostics (Closed)
Patch Set: Created Dec. 4, 2015, 4:06 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/content/watcher.xul » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/content/watcher.js
===================================================================
--- a/chrome/content/watcher.js
+++ b/chrome/content/watcher.js
@@ -126,16 +126,17 @@ function processQueue()
for each (let entry in processingQueue)
{
entry.cols = {
address: stringify(entry.location),
type: stringify(entry.type),
result: stringBundle.GetStringFromName(entry.result && entry.result.allow ? "decision.allow" : "decision.block"),
origin: stringify(entry.frames && entry.frames[0] && entry.frames[0].location),
+ private: stringBundle.GetStringFromName(entry.isPrivate ? "private.yes" : "private.no"),
filters: stringify(entry.filters && entry.filters.join(", ")),
time: stringify(entry.processingTime)
};
treeView.add(entry);
}
processingQueue = [];
}
@@ -264,17 +265,17 @@ var treeView = {
setTree: function(boxObject)
{
if (!boxObject)
return;
this.boxObject = boxObject;
let atomService = Cc["@mozilla.org/atom-service;1"].getService(Ci.nsIAtomService);
- for each (let col in ["address", "type", "result", "origin", "filter", "time"])
+ for each (let col in ["address", "type", "result", "origin", "private", "filter", "time"])
{
let atomStr = "col-" + col;
this.atoms[atomStr] = atomService.getAtom(atomStr);
}
for each (let flag in ["selected", "blocked"])
{
let atomStr = flag + "-true";
this.atoms[atomStr] = atomService.getAtom(atomStr);
« no previous file with comments | « no previous file | chrome/content/watcher.xul » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld