Closed Bug 342590 Opened 16 years ago Closed 6 years ago

Make --enable-extensions=venkman work for XULRunner


(Toolkit Graveyard :: XULRunner, defect)

Windows XP
Not set


(Not tracked)



(Reporter: WeirdAl, Unassigned)


(Keywords: helpwanted)

When I use --enable-extensions=default,inspector,venkman the resulting dist/bin/chrome contains a installed-chrome.txt file with the following:


It does not contain a venkman.manifest file.

Also, when I am able to add Venkman to my toolsPopup via overlay, I get this error message:

JavaScript error: chrome://venkman/content/venkman-overlay.js, line 43: toOpenWindowByType is not defined indicates it is a per-application function (calendar, browser, mail, suite).

I intend to fix this.
Ref bug 299716 for a better solution than I had in mind.
So to clarify this bug isn't about making venkman "work" with XULRunner... It works ok (I usually launch it by typing |x-jsd:debugger| into the url bar). This bug is about fixing venkman to use the new chrome.manifest format for registration and implementing a toolkit version of toOpenWindowByType. Maybe a separate bug? provides some interesting MOZ_XUL_APP code, particularly rev 1.10.  I think this is what we want for chrome.manifest and the other goodies.
Okay, I'm lost. calls on

determines when we use installed-chrome.txt (it will use installed-chrome.txt by calling on RegIt)

Unfortunately, we get into some messy regexp's.  The regexp's take in lines from the given and determine from that when to turn on chrome.manifest.

By reading, I stumbled across the -e flag.  Adding that to had no effect, as far as I could tell.  But I may have added it in the wrong spot on lines 78, 80, 82.
Can you provide *any* reason for needing chrome.manifest? The current setup without one is handled fine by the ChromeReg's importing code in toolkit.
The problem with installed-chrome.txt is that the user is required to have write access to the install directory at first run. That is not an issue with the .manifest files (and allows apps to run directly from CDs and DMG mounts, for instance).
That's just the ChromeReg sucking; either way, do not change to make a chrome.manifest. There is no use for it.
In that case, someone else should do the work on this bug.
Keywords: helpwanted
There is value IMO in moving the dependency from the client to the build system which generating the chrome.manifest during the build process provides.
Can you please stop misinterpreting. is used for making releases - not for building Venkman during the normal build.

Make the normal build create a chrome.manifest (but only when required), just don't make the release script do it.
Since it isn't clear... the chrome.manifest will be used with apps that use the new toolkit so it should be created when building a new toolkit app or creating xpi's for new toolkit apps.
The XPI does not and will not have a chrome.manifest at this time.
All right, so here's where we stand.  The approach is clearly being vetoed by Silver.  Fine.  makexpi is not called as part of the build process (which confused me greatly until that was explained to me), so for all intents and purposes we should ignore it.

That still leaves the problem of not interpreting the file in a way we expect.  I erred in how is referenced, obviously.  But I don't understand how gets called by the or files via  I also don't understand why it reads and insists on generating installed-chrome.txt instead of chrome.manifest. runs the stuff over if it exists. That's just an automatic thing.

It's generating what it does because of what's in the makefile, as I explained on IRC. Adding NO_JAR_AUTO_REG will make it not create installed-chrome, and the other options from Inspector will make it spam out the app-installed-extension structure instead of the normal location for the jar.
Assignee: ajvincent → nobody
Group: security
Group: security
No longer depends on:
(In reply to comment #15)
> Gijs: see
> .
>  Is this bug fixed?

Not sure. I was under the impression that the bug was about having the build flag work, which I very much doubt it does under mozilla-central, which to my knowledge does not import venkman from hg. Not sure how it'd deal with it if you add it, ie if the build logic is still there or not. Someone'd have to test it, and I am not in a position to do so until at least a week from now, I'm afraid.
XULRunner has been removed from the Mozilla tree: see!topic/ for context.

I am closing all the bugs currently in the XULRunner bugzilla component, in preparation for moving this component to the graveyard. If this bug is still valid in a XULRunner-less world, it will need to be moved to a different bugzilla component to be reopened.
Closed: 6 years ago
Resolution: --- → INCOMPLETE
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.