This file is indexed.

/usr/share/xul-ext/downthemall/modules/json.jsm is in xul-ext-downthemall 2.0.13-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* You may find the license in the LICENSE file */

const EXPORTED_SYMBOLS = ['parse', 'stringify'];

const Cc = Components.classes;
const Ci = Components.interfaces;
const Cr = Components.results;
const Cu = Components.utils;
const log = Components.utils.reportError;
const Exception = Components.Exception;

let parse = function() { throw new Exception("No implementation available"); }
let stringify = parse;

if ('JSON' in this) {
	parse = JSON.parse;
	stringify = JSON.stringify;
}
else {
	log("Using nsIJSON");
	let _json = Cc["@mozilla.org/dom/json;1"].createInstance(Ci.nsIJSON);
	parse = function(source) _json.decode(source);
	stringify = function(value, replacer, space) _json.encode(value, replacer);
}