Debugging: Add code to print backtrace for guest on SIGSEGV
[nativeclient.git] / imcplugin / run-firefox
blob6878944f136aa452ad20bc3fd9a173b85e3a7784
1 #!/bin/bash
3 # If you are already running Firefox you need to run the testing
4 # instance of Firefox on a separate X display otherwise it tries to
5 # reuse the existing instance.
7 # Example usage:
8 # Xephyr :20 &
9 # DISPLAY=:20 ./run-firefox imctest.html
11 set -e
13 rm -rf tmp-home
14 mkdir -p tmp-home/.mozilla/plugins
15 mkdir -p tmp-home/.mozilla/firefox/default
17 echo "
18 [General]
19 StartWithLastProfile=0
21 [Profile0]
22 Name=default
23 IsRelative=1
24 Path=default
25 " >tmp-home/.mozilla/firefox/profiles.ini
27 echo 'user_pref("browser.dom.window.dump.enabled", true);' > tmp-home/.mozilla/firefox/default/user.js
28 cp -av plugin.so tmp-home/.mozilla/plugins
29 export XAUTHORITY=~/.Xauthority
30 export HOME=$(pwd)/tmp-home
31 exec firefox "$@"