Provide open_new_window and load_url methods with boolean fullscreen argument MicroB implements an optional boolean argument to the open_new_window and load_url methods in the com.nokia.osso_browser interface, which allows the application to request that the new page be loaded in a fullscreen window. We need to provide this as well -- otherwise, applications that use the argument will receive an error. Provide versions of open_new_window and load_url with a fullscreen argument, which is ignored for the moment. It's not going to be possible to implement the fullscreen behavior for all supported browsers, but we should implement it for MicroB, at least. Fixes the launching of the Flickr new account page from the Sharing control panel in Fremantle: https://garage.maemo.org/tracker/index.php?func=detail&aid=6444&group_id=1159&atid=4348 Thanks to Tom G for reporting.
Merge commit 'v3.3b2' into diablo-package
Fremantle: Prestart MicroB if appropriate when reconfiguring browser-switchboard If, in changing the browser-switchboard configuration, we go from a configuration where MicroB is not left running to one where it is, we should start MicroB in the background in order to make sure that the MicroB browser window comes up quickly when requested. Make a best-effort attempt at this in both the command-line utility and the GUI, refactoring to give a swb_reconfig() function that can be shared between the two along the way. Ideally, we'd also kill MicroB when making a config change in the other direction, but we don't have an easy way of knowing whether MicroB is actually in use and we don't want to kill MicroB if it's in use at the time.
Add an Xsession.post script for Fremantle to launch browser-switchboard on session startup Fremantle MicroB autostarts by default and listens on both the D-Bus system and session buses, so applications may send requests on either bus (even though those that send requests on the system bus should be fixed). We therefore need to duplicate this behavior, but we cannot rely on D-Bus to launch us to handle a request coming in on the system bus, since the system bus runs as the "messagebus" user, and we need to run with the UID of the logged-in user. A complete fix for Browser Switchboard bug 5910 ("browser-switchboard should listen on D-Bus system bus as well") on Fremantle therefore requires that browser-switchboard be autostarted when the desktop environment comes up. We arrange for this the same way browserd does on Fremantle -- with an Xsession.post script that runs on X session startup. Also, we prestart MicroB if the current browser-switchboard configuration is to leave it running in the background, to make opening the first MicroB window faster. Because we may start the MicroB browser process, this script needs to be inserted after browserd's in the Xsession.post run order.
Fix /usr/bin/microb script to work with new Fremantle MicroB launching code The new Fremantle MicroB launching code breaks the assumption in the microb script that the existence of the MicroB browser process implies that MicroB is handling com.nokia.osso_browser. Revise the script to check directly whether Browser Switchboard is handling that name, by comparing its owner to that of org.maemo.garage.browser-switchboard (using the org.freedesktop.DBus.GetNameOwner method).