This file is indexed.

/usr/share/xul-ext/greasemonkey/modules/scriptDependency.js is in xul-ext-greasemonkey 1.15-1~deb7u1.

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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
var EXPORTED_SYMBOLS = ['ScriptDependency'];

Components.utils.import('resource://greasemonkey/util.js');

/** Base implementation for Icon, Require, Resource. */
function ScriptDependency(aScript) {
  this._charset = null;
  this._dataURI = null;
  this._downloadURL = null;
  this._filename = null;
  this._mimetype = null;
  this._name = null;
  this._script = aScript || null;
  this._tempFile = null;

  this.type = 'UnknownDependency';
}

ScriptDependency.prototype = {
  setCharset: function(aCharset) {
    this._charset = aCharset;
  },

  setFilename: function(aFile) {
    aFile.QueryInterface(Components.interfaces.nsIFile);
    this._filename = aFile.leafName;
  },

  setMimetype: function(aMimetype) {
    this._mimetype = aMimetype;
  },

  toString: function() {
    return '[' + this.type + '; ' + this.filename + ']';
  },
};

ScriptDependency.prototype.__defineGetter__('downloadURL',
function ScriptDependency_getDownloadURL() {
  return '' + (this._downloadURL || '');
});

ScriptDependency.prototype.__defineGetter__('file',
function ScriptDependency_getFile() {
  var file = this._script.baseDirFile;
  file.append(this._filename);
  return file;
});

ScriptDependency.prototype.__defineGetter__('filename',
function ScriptDependency_getFilename() {
  return '' + (this._filename || this._dataURI || '');
});

ScriptDependency.prototype.__defineGetter__('mimetype',
function ScriptDependency_getMimetype() {
  var mimetype = this._mimetype;
  if (this._charset && this._charset.length > 0) {
    mimetype += ';charset=' + this._charset;
  }
  return mimetype;
});

ScriptDependency.prototype.__defineGetter__('name',
function ScriptDependency_getName() { return '' + this._name; });

ScriptDependency.prototype.__defineGetter__('textContent',
function ScriptDependency_getTextContent() {
  return GM_util.getContents(this.file);
});