[Bug 880596] Re: Option '-app' missing from Firefox above version 3

Bug Watch Updater 880596 at bugs.launchpad.net
Mon Oct 24 01:32:29 UTC 2011


Launchpad has imported 1 comments from the remote bug at
https://bugzilla.mozilla.org/show_bug.cgi?id=696687.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2011-10-24T00:48:34+00:00 Tempsd wrote:

User Agent: Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20100101 Firefox/7.0.1
Build ID: 20110928134238

Steps to reproduce:

There has been an '-app' command line option for Firefox, which should
have been introduced in Firefox 3:

http://arstechnica.com/open-source/news/2007/08/using-firefox-3-as-a
-xul-runtime-environment.ars

... which would have allowed Firefox to run XUL application via `firefox
-app /path/to/application.ini`.

However, that switch does not seem to work any longer in newer
Firefoxes:

http://stackoverflow.com/questions/5900814/does-the-app-command-line-option-work-properly-in-firefox-4
http://stackoverflow.com/questions/7869546/single-file-app-with-xulrunner-possible

I have performed the following test in Firefox 7 (versions as given
above):

* Generate a small XUL application (bash):

###
mkdir xultestapp
mkdir -p xultestapp/chrome/content
mkdir -p xultestapp/defaults/preferences
cat > xultestapp/application.ini <<"EOF"
[App]
Vendor=XULTest
Name=xultestapp
Version=1.0
BuildID=20111024
ID=xultestapp at xultest.org

[Gecko]
MinVersion=1.8
MaxVersion=2.*
EOF
cat > xultestapp/chrome/chrome.manifest <<"EOF"
content xultestapp content/
EOF
cat > xultestapp/chrome.manifest <<"EOF"
manifest chrome/chrome.manifest
EOF
cat > xultestapp/defaults/preferences/prefs.js <<"EOF"
pref("toolkit.defaultChromeURI", "chrome://xultestapp/content/main.xul");
EOF
cat > xultestapp/chrome/content/main.xul <<"EOF"
<?xml version="1.0"?>

<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>

<window id="main" title="xultestapp" width="300" height="300"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

  <caption label="Hello World"/>
  <separator/>
  <button label="More >>" />
  <separator/>
  <description id="more-text" hidden="true">This is a simple XULRunner application. XUL is simple to use and quite powerful and can even be used on mobile devices.</description>

</window>
EOF

###

* and now if I call xulrunner, it works:
###
xulrunner xultestapp/application.ini
###


Actual results:

* however, if I use firefox:
###
firefox -no-remote -app xultestapp/application.ini
###

... Firefox just starts as usual, ignoring the XUL application
specification.



Expected results:

Firefox should have ran the XUL application just like xulrunner did.

----

Can anyone explain if/when/why was this option removed - and if there is
a similar functionality in newer Firefoxes?

Many thanks in advance,
Cheers!

Reply at: https://bugs.launchpad.net/firefox/+bug/880596/comments/1


** Changed in: firefox
       Status: Unknown => New

** Changed in: firefox
   Importance: Unknown => Medium

-- 
You received this bug notification because you are a member of Mozilla
Bugs, which is subscribed to firefox in Ubuntu.
https://bugs.launchpad.net/bugs/880596

Title:
  Option '-app' missing from Firefox above version 3

To manage notifications about this bug go to:
https://bugs.launchpad.net/firefox/+bug/880596/+subscriptions




More information about the Ubuntu-mozillateam-bugs mailing list