45 _arguments: [
"private",
"silent"],
46 get length getLength() {
47 return this._arguments.length;
49 getArgument:
function getArgument(aIndex) {
50 return this._arguments[aIndex];
52 findFlag:
function findFlag(aFlag, aCaseSensitive) {
53 for (let
i = 0;
i < this._arguments.length; ++
i)
55 (this._arguments[
i] == aFlag) :
56 (this._arguments[
i].toLowerCase() == aFlag.toLowerCase()))
60 removeArguments:
function removeArguments(aStart, aEnd) {
61 this._arguments.splice(aStart, aEnd - aStart + 1);
63 handleFlag:
function handleFlag (aFlag, aCaseSensitive) {
64 let res = this.findFlag(aFlag, aCaseSensitive);
66 this.removeArguments(res, res);
71 handleFlagWithParam:
function handleFlagWithParam(aFlag, aCaseSensitive) {
74 STATE_INITIAL_LAUNCH: 0,
76 STATE_REMOTE_EXPLICIT: 2,
77 get state getState() {
78 return this.STATE_INITIAL_LAUNCH;
80 preventDefault:
false,
81 workingDirectory:
null,
83 resolveFile:
function resolveFile (aArgument) {
86 resolveURI:
function resolveURI (aArgument) {
90 if (!aIID.equals(
Ci.nsICommandLine)
91 && !aIID.equals(
Ci.nsISupports))
92 throw Cr.NS_ERROR_NO_INTERFACE;
104 let catMan =
Cc[
"@mozilla.org/categorymanager;1"].
106 let categories = catMan.enumerateCategory(
"command-line-handler");
107 while (categories.hasMoreElements()) {
108 let category = categories.getNext().QueryInterface(
Ci.nsISupportsCString).data;
109 let
contractID = catMan.getCategoryEntry(
"command-line-handler", category);
111 handler.handle(testcl);
115 do_check_true(pb.privateBrowsingEnabled);
117 do_check_true(pb.autoStarted);
sbDeviceFirmwareAutoCheckForUpdate prototype contractID
sbOSDControlService prototype QueryInterface
getService(Ci.sbIFaceplateManager)
var PRIVATEBROWSING_CONTRACT_ID
_getSelectedPageStyle s i