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=xultest...@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 Desktop
Packages, which is subscribed to firefox in Ubuntu.
https://bugs.launchpad.net/bugs/880596

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

Status in The Mozilla Firefox Browser:
  New
Status in “firefox” package in Ubuntu:
  New

Bug description:
  $ firefox --version
  Mozilla Firefox 7.0.1
  $ apt-cache policy firefox
  firefox:
    Installed: 7.0.1+build1+nobinonly-0ubuntu0.11.04.1
    Candidate: 7.0.1+build1+nobinonly-0ubuntu0.11.04.1
  ....
  $ xulrunner --version
  Mozilla XULRunner 2.0 - 20110402003021
  $ uname -r
  2.6.38-11-generic
  $ lsb_release -rd
  Description:  Ubuntu 11.04
  Release:      11.04
  $ cat /etc/issue
  Ubuntu 11.04 \n \l

  -----
  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=xultest...@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
  ###

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

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

  
  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!

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

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to