Charles Henri d'Argent wrote:
>
> thanks for your help on the syntax necessary to use InstallTrigger.install() method.
>
> I went to Netscape's feedback pages and pressed some links and the browser just sat
>there and
> did not go anywhere which is why
> I am pursuing you.
This is an appropriate forum for developer help, I'm happy to respond here.
The feedback pages, frankly, are a one-way street; we gather information
about problems to fix but can't possibly respond individually given the
deluge that must be processed.
> Inside the callback function, I can access the window and navigator.plugins object.
>However,
> due to an unknown reason,
> I cannot access the location and document object in the callback function?! I do
>not know
> why this is so but I cannot try
> your "fiddling with the window location" because I cannot access the location
>object. Also,
> I cannot call window.navigate() !?(don't know why?)
using window.location explicitly doesn't work? Beyond sending the event and
making sure it's on the correct thread the XPInstall code doesn't have much
to do with this; it *should* be the full context of the page which set the
callback.
> Unfortunately, pressing the Reload button does not fix the problem either, I need to
>close
> and re-open the browser for the newly installed plugin to show up.
> Do you have any other work-around which could fix this without closing the browser ?
That's one of the basic plugins problem I mentioned. I saw a patch for a
partial fix attached to a bug today so it should go into the tree as soon as
reviews are completed.
> Oh, one last thing, in your last email, you mention that I am looking in the wrong
>place (for
> InstallTrigger.install's routine). Where should I look in ? Which
> link has the correct api signatures and new object list (Install,
>InstallTrigger,etc...) ?
Ian just posted some docs to the group. If you're looking in source files
the JS objects are implemented in mozilla/xpinstall/src/nsJS* files, and are
a thin glue layer over the underlying objects.
-Dan Veditz