Catalyst Firefox Plugin?

Ovid on 2008-02-21T09:22:17

In a response to my post about automatically determining the host/port of a local Catalyst server, Adam Kennedy recommended a Firefox extension. After reading about creating XUL extensions for Firefox, and having written XUL in the past, this seems like a fun and worthwhile challenge.

But how do I do it? I could automatically try localhost:3000 as a first shot, but JavaScript can't access the process table, so that's out. What are my options? Assume localhost and walk through the port numbers looking for reasonable headers? This seems a bit dodgy to me. I'm not sure how to make this work, or even if it's possible.


Javascript can access the process table...

jasonk on 2008-02-21T14:36:51

Javascript running as part of an extension is subject to different rules from javascript running on a web page...

Take a look at http://www.linuxjournal.com/article/7287

Huh?

Alias on 2008-02-22T01:13:28

If the JavaScript STARTS the test server, shouldn't the test server startup program return the location of the server via stdout?

Or are you thinking something more complicated?