No idea if this is helpful but there is a command line argument test that checks the reassembly of command line arguments when having to relaunch Firefox with the original command line under https://searchfox.org/mozilla-central/source/toolkit/xre/test/win It verifies that our argument cleanup is the same as the cleanup performed by the OS. The arguments it tests are in https://searchfox.org/mozilla-central/source/toolkit/xre/test/win/TestXREMakeCommandLineWin.ini
Bug 1606596 Comment 25 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
No idea if this is helpful but there is a command line argument test that checks the reassembly of command line arguments when having to relaunch Firefox with the original command line under https://searchfox.org/mozilla-central/source/toolkit/xre/test/win It verifies that our argument cleanup is equivalent to the cleanup performed by the OS. The arguments it tests are in https://searchfox.org/mozilla-central/source/toolkit/xre/test/win/TestXREMakeCommandLineWin.ini