Firefox/Windows 8 Integration: Difference between revisions

Line 429: Line 429:
Metro Firefox can't accept standard command line parameters since it must be launched by Windows. The harness acts as a pass through for mozilla command line parameters firefox.exe can accept. Incoming params are written out to an ini file @ dist/bin and read in via [http://mxr.mozilla.org/mozilla-central/source/browser/app/nsBrowserApp.cpp nsBrowserApp] when the browser starts up.
Metro Firefox can't accept standard command line parameters since it must be launched by Windows. The harness acts as a pass through for mozilla command line parameters firefox.exe can accept. Incoming params are written out to an ini file @ dist/bin and read in via [http://mxr.mozilla.org/mozilla-central/source/browser/app/nsBrowserApp.cpp nsBrowserApp] when the browser starts up.


By default the test harness assumes firefox.exe is in the same folder metrotestharness.exe is located. If you want to launch from a different location, you can specify the firefox path using -firefoxpath (fullpath):
By default the test harness assumes the default browser (firefox.exe) is in the same folder metrotestharness.exe is located. If you want to launch the default browser at a different location from metrotestharness.exe, you must specify a firefox path using -firefoxpath (fullpath):


<pre>metrotestharness.exe -firefoxpath T:\Mozilla\objmcrel\dist\bin\firefox.exe -url www.mozilla.org</pre>
<pre>metrotestharness.exe -firefoxpath T:\Mozilla\objmcrel\dist\bin\firefox.exe -url www.mozilla.org</pre>


Note, the firefox browser you attempt to launch must be set as the default browser for the system.
The test harness will need *write* permission to this location to write out a command line arg ini file.


[http://mxr.mozilla.org/mozilla-central/source/browser/metro/shell/testing/metrotestharness.cpp harness source]
[http://mxr.mozilla.org/mozilla-central/source/browser/metro/shell/testing/metrotestharness.cpp harness source]
Confirmed users
1,983

edits