Closed
Bug 508395
Opened 17 years ago
Closed 17 years ago
browserd for fennec
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(Not tracked)
VERIFIED
DUPLICATE
of bug 509249
People
(Reporter: crowderbt, Assigned: crowderbt)
Details
Attachments
(5 files, 2 obsolete files)
|
6.73 KB,
text/plain
|
Details | |
|
1.10 KB,
text/plain
|
Details | |
|
4.79 KB,
text/plain
|
Details | |
|
4.75 KB,
patch
|
Details | Diff | Splinter Review | |
|
6.22 KB,
patch
|
Details | Diff | Splinter Review |
No description provided.
| Assignee | ||
Comment 1•17 years ago
|
||
This stubs out an interface I needed to fool browser.js into believing it is getting a command-line from the network. I'll flesh this out more shortly.
Comment 2•17 years ago
|
||
Brian, do you need to use nsICommandLineRunner? Could you just implement a JS version of nsICommandLine?
Whoops.. somewhat duplicate work, didn't realize that there was a bug on this. I needed this for WinCE stuff.. it takes a different approach though, looks like. I just use the current existing native app/remoting stuff, and for the first launch (with -faststart) I just open a dummy window. This xul file actually has all the XBL bindings that browser.xul uses, so we get to preload all of those early on (xul/css files not attached here).
| Assignee | ||
Comment 4•17 years ago
|
||
Sorry, which XUL file?
Updated•17 years ago
|
Attachment #392669 -
Attachment mime type: application/x-javascript → text/plain
| Assignee | ||
Comment 7•17 years ago
|
||
This attempts to connect to port 12345 and passes on the current command-line to the listener there. If there is no such listener, we continue to boot normally.
| Assignee | ||
Comment 8•17 years ago
|
||
This is a command-line-handler now, which looks for the -browserd command line and its argument, which should be a port on which to listen. When a connection is made and data is received, it looks to read a potential argv from the client, which will be parsed and converted into an nsICommandLine thing to be passed on to the window opener. For now, we pass a blank command-line in.
TODO:
* Client should look at a profile file (not really, since we don't have a profile when the client starts) to know whether browserd is running already and on what port (use an OS Mutex for the "already running part"? Not portable to linux, but easy on WinCE -- what for linux?)
* Daemon needs some way of being told to exit/restart, or a heuristic upon which to decide to do so (the heuristic/communication will probably be different for testing environments than it is for real usage)
* Need to build the nsICommandLine part or make my nsICommandLineRunner hack actually use the argc/argv internally (probably the easiet, but it would be nice, instead, to write a JS nsICommandLine implementation -- if only that didn't mean duplicating a bunch of code)
* Server should ACK the client when the window is done being built.
* Need to straighten out the splashscreen story. I'd actually like the client to present a splashscreen during the time it's waiting for the server to ACK, but I'm not sure how to time that our, or on what to base the movement of the progress indicator. Perhaps it should just loop from 1-100 and back every 10ms or so. I'd like the xulrunner-stub process to avoid presenting a splashscreen until it knows whether or not it is a client or a server (this is almost instantaneous).
* Need a mode that is something like "we don't have or expect a browserd, but we want to start a browser and run it asap". And maybe a mode like "startup and give me a window, but then act like browserd after I close it"
* Based on whether or not we are the default browser (?? is this evil ??) we should kill Opera's "browserd" process(es?) or remove them from the registry as startup processes.
Attachment #392595 -
Attachment is obsolete: true
Attachment #392597 -
Attachment is obsolete: true
| Assignee | ||
Comment 9•17 years ago
|
||
Also TODO: Need some way to cleanly kill browserd (it doesn't show up in the task list, afaict).
| Assignee | ||
Comment 10•17 years ago
|
||
Going to collaborate on this w/ the Firefox guys, and steal their faststart component. It's got mostly everything we need.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
Updated•17 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•