This file is indexed.

/usr/share/xul-ext/foxyproxy-standard/components/commandlinehandler.js is in xul-ext-foxyproxy-standard 3.4-1.1.

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
/**
  FoxyProxy
  Copyright (C) 2006-2011 Eric H. Jung and FoxyProxy, Inc.
  http://getfoxyproxy.org/
  eric.jung@yahoo.com

  This source code is released under the GPL license,
  available in the LICENSE file at the root of this installation
  and also online at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
**/
const CC = Components.classes;
const CI = Components.interfaces;
Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");

function CmdLineHandler() {}
CmdLineHandler.prototype = {
  QueryInterface: XPCOMUtils.generateQI([CI.nsISupports, CI.nsICommandLineHandler]),    
  classDescription: "FoxyProxy CommandLine Handler",
  classID: Components.ID("{ea321380-6b35-4e15-8d1e-fe6dc9c2ccae}"),
  contractID: "@mozilla.org/commandlinehandler/general-startup;1?type=foxyproxy",
  _xpcom_categories: /* this var for for pre gecko-2.0 */ [{category:"command-line-handler", entry:"m-foxyproxy"}],  
  _xpcom_factory: {
    singleton: null,
    createInstance: function (aOuter, aIID) {
      if (aOuter) throw CR.NS_ERROR_NO_AGGREGATION;
      if (!this.singleton) this.singleton = new CmdLineHandler();
      return this.singleton.QueryInterface(aIID);
    }
  },

  /* nsICommandLineHandler */
  handle : function(cmdLine) {
    try {
      var mode = cmdLine.handleFlagWithParam("foxyproxy-mode", false);
      if (mode)
        CC["@leahscape.org/foxyproxy/service;1"].getService().wrappedJSObject.setMode(mode, false, true);
    }
    catch (e) {
      Components.utils.reportError("incorrect parameter passed to -foxyproxy-mode on the command line.");
    }
  },

  // Per nsICommandLineHandler.idl: flag descriptions should start at
  // character 24, and lines should be wrapped at
  // 72 characters with embedded newlines,
  // and finally, the string should end with a newline
  helpInfo : "  -foxyproxy-mode      Start FoxyProxy in the specified mode. Valid\n" +
             "                       values are:\n" +
             "                         patterns\n" +
             "                         disabled\n" +
             "                         <id of a proxy as specified in foxyproxy.xml's proxy element>\n" +
             "                         random (not supported)\n" +
             "                         roundrobin (not supported)\n"
};

/**
 * XPCOMUtils.generateNSGetFactory was introduced in Mozilla 2 (Firefox 4)
 * XPCOMUtils.generateNSGetModule is for Mozilla 1.9.2 and earlier (Firefox 3.6)
 */
if (XPCOMUtils.generateNSGetFactory)
  var NSGetFactory = XPCOMUtils.generateNSGetFactory([CmdLineHandler]);
else
  var NSGetModule = XPCOMUtils.generateNSGetModule([CmdLineHandler]);