Thanks, that is working fine (the alternative thing):
I added user_pref("dom.disable_open_during_load", false);
After that, the window is opened in the b2g browser on:
http://people.mozilla.org/~mwargers/tests/dom/windowopenonload.htmRegards, Martijn On Fri, Nov 30, 2012 at 1:36 AM, Dave Hylands <[email protected]> wrote: > Hi Martijn, > > ----- Original Message ----- >> From: "Martijn" <[email protected]> >> To: "Justin Lebar" <[email protected]> >> Cc: [email protected] >> Sent: Thursday, November 29, 2012 4:26:32 PM >> Subject: Re: [b2g] Setting preferences in the b2g browser >> >> Is that with the assumption that I build my own B2G build? >> I can't seem to find b2g/app/b2g.js on the device, at least. >> Can I edit some config file on the (Otoro) device itself? > > There are preferences stored in the profile > > /data/b2g/mozilla/*.default/prefs.js > > I have a script I wrote for turning the omtc pref on/off which you can find > over here: > https://gist.github.com/2656232 > > You can probably use that as a template for something else. > > Alternatively, you can do something like (untested): > > PREFS_JS=$(adb shell echo -n "/data/b2g/mozilla/*.default")/prefs.js > adb pull $PREFS_JS > edit prefs.js > adb shell stop b2g > adb push prefs.js $PREFS_JS > adb shell start b2g -- Martijn Wargers - Help Mozilla! http://quality.mozilla.org/ http://wiki.mozilla.org/Mozilla_QA_Community irc://irc.mozilla.org/qa - /nick mw22 _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
