gecko-dev/xpinstall/packager/windows/inspector.jst
caillon%returnzero.com 3987f2a037 Bug 199566 - Inspector needs a command line handler.
The following should now work:
./mozilla -inspector
./mozilla -inspector "http://www.foo.com/"

r=timeless sr=jst a=asa
2003-05-20 21:30:42 +00:00

26 lines
869 B
Plaintext

var err = initInstall("DOM Inspector", "Inspector", "$Version$");
logComment("initInstall: " + err);
var fProgram = getFolder("Program");
logComment("fProgram: " + fProgram);
err = addDirectory("", "$Version$", "bin", fProgram, "", true);
logComment("addDirectory: " + err);
addFile("Inspector Command Line Handler",
"bin/components/inspector-cmdline.js",
getFolder("Components"),
"");
var jarFolder = getFolder("Chrome", "inspector.jar");
registerChrome(PACKAGE | DELAYED_CHROME, jarFolder, "content/inspector/");
registerChrome(SKIN | DELAYED_CHROME, jarFolder, "skin/modern/inspector/");
registerChrome(SKIN | DELAYED_CHROME, jarFolder, "skin/classic/inspector/");
registerChrome(LOCALE | DELAYED_CHROME, jarFolder, "locale/en-US/inspector/");
err = getLastError();
if (err==SUCCESS)
performInstall();
else
cancelInstall(err);