Closed Bug 1892400 Opened 5 months ago Closed 1 month ago

Support using the remoting service to send command lines after startup

Categories

(Toolkit :: Startup and Profile System, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
131 Branch
Tracking Status
firefox131 --- fixed

People

(Reporter: mossop, Assigned: mossop)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fidefe-profile-management] )

Attachments

(6 files)

Currently we can only send a command line to a running Firefox in a specific point during early startup. There is nothing stopping us making this available more generally to allow sending messages to other instances at any point during the application lifecycle.

Whiteboard: [fidefe-profile-management] → [fidefe-profile-management]

Currently the windows client sends the current process command line which is
potentially an issue since some of those arguments may have been consumed
already. It will also not support sending custom command lines after startup.

This simplifies the call signatures of all versions since this is only needed in unix.

With the new profiles implementation we need to be able to identify a running instance
regardless of whether it was launched as a named profile or not. This changes to prefer
using the full profile path as an identifier falling back to testing the profile name
for backwards compatibility.

Assignee: nobody → dtownsend
Attachment #9397552 - Attachment description: WIP: Bug 1892400: Remove the unnecessary response and success arguments → Bug 1892400: Remove the unnecessary response and success arguments. r=jhirsch!,glandium!
Attachment #9411760 - Attachment description: WIP: Bug 1892400: Windows remote client should send the intended command line. → Bug 1892400: Windows remote client should send the intended command line. r=jhirsch!,rkraesig!
Attachment #9411761 - Attachment description: WIP: Bug 1892400: Remove the startup token from the non-unix remote implementations → Bug 1892400: Remove the startup token from the non-unix remote implementations. r=jhirsch!,glandium!
Attachment #9411762 - Attachment description: WIP: Bug 1892400: Always use the full profile path to identify profiles for the remoting service → Bug 1892400: Always use the full profile path to identify profiles for the remoting service. r=jhirsch!,glandium!
Attachment #9397553 - Attachment description: WIP: Bug 1892400: Remote service should live for the lifetime of the application → Bug 1892400: Remote service should live for the lifetime of the application. r=jhirsch!
Attachment #9397554 - Attachment description: WIP: Bug 1892400: Add a method to send a command line to a running instance → Bug 1892400: Add a method to send a command line to a running instance. r=jhirsch!

Currently we can only send a command line to a running Firefox in a specific point during early startup.

I'm not sure what you mean here. If I firefox --jsconsole while firefox is running, that opens the jsconsole in the running firefox.

(In reply to Mike Hommey [:glandium] from comment #7)

Currently we can only send a command line to a running Firefox in a specific point during early startup.

I'm not sure what you mean here. If I firefox --jsconsole while firefox is running, that opens the jsconsole in the running firefox.

I mean from a Firefox process. We can launch a new Firefox process yes but that is unneeded overhead.

I see what you mean now. Thank you for the clarification.

Depends on bug 1906260 because https://phabricator.services.mozilla.com/D217569 is part of the patch stack.

Depends on: 1906260
Pushed by dtownsend@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/82111a5fc831 Remove the unnecessary response and success arguments. r=jhirsch,glandium https://hg.mozilla.org/integration/autoland/rev/beb16099057e Windows remote client should send the intended command line. r=jhirsch,rkraesig https://hg.mozilla.org/integration/autoland/rev/a0bb5ed531ce Remove the startup token from the non-unix remote implementations. r=jhirsch,glandium https://hg.mozilla.org/integration/autoland/rev/bf5862fa2a1d Always use the full profile path to identify profiles for the remoting service. r=jhirsch,glandium https://hg.mozilla.org/integration/autoland/rev/7c12bcdfd937 Remote service should live for the lifetime of the application. r=jhirsch https://hg.mozilla.org/integration/autoland/rev/25b37643e1fe Add a method to send a command line to a running instance. r=jhirsch
Pushed by dtownsend@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8bc2789652db Remove the unnecessary response and success arguments. r=jhirsch,glandium https://hg.mozilla.org/integration/autoland/rev/c62cf2fcd7a1 Windows remote client should send the intended command line. r=jhirsch,rkraesig https://hg.mozilla.org/integration/autoland/rev/56ee67701929 Remove the startup token from the non-unix remote implementations. r=jhirsch,glandium https://hg.mozilla.org/integration/autoland/rev/ab78fe7e1029 Always use the full profile path to identify profiles for the remoting service. r=jhirsch,glandium https://hg.mozilla.org/integration/autoland/rev/dab3567a33f3 Remote service should live for the lifetime of the application. r=jhirsch https://hg.mozilla.org/integration/autoland/rev/259fd33ad3af Add a method to send a command line to a running instance. r=jhirsch
Flags: needinfo?(dtownsend)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: