Add ability to open external links in defaut browser

Bug #907632 reported by Jason Gerard DeRose
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
UserWebKit
Fix Released
High
Jason Gerard DeRose

Bug Description

One of the nice things about building UI with web tech is the ability to use hyper linking both to link internally within the application and to link externally onto the web.

But they need to be handled differently... internal links are used to move between different screens in the application, and should rightly change the WebKit location. But external links should not as we don't want to replace our native application with the contents of a remote web page... in this case, we want open these links in the user's preferred browser.

So this bug tracks this feature. It adds a new 'open' signal to CouchView (which internally is driven by the WebView 'navigation-policy-decision-requested' signal with some CouchView logic on top).

And the BaseUI class now connects to this signal and opens the URL with xdg-open. We may want to change this to be opt in for apps later, but for now we might as well play with it.

Related branches

Changed in userwebkit:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.