[Merge] lp:~abreu-alexandre/webbrowser-app/intent into lp:webbrowser-app

Alexandre Abreu alexandre.abreu at canonical.com
Fri Jan 23 15:47:17 UTC 2015


The proposal to merge lp:~abreu-alexandre/webbrowser-app/intent into lp:webbrowser-app has been updated.

Description changed to:

Add support for intent:// schemes in the container.


The current approach is to have a basic proper support for intent:// URIs in the URIHandler. Those URIs are detected and the host/uri/scheme are extracted to make up the target requested URI.

In order to add a bit of flexibility on the webapp side on how the intent should be treated, an optional javascript file (as a drop-in file) can be added to the webapp. This file should export a function such as:

(function(intent) { return intent; });

(the body of the function being obviously webapp dependant).

This function gets as a parameter an object with the following keys:

'scheme': the scheme for the intent
'host': the host (optional) for the intent
'uri': the uri for the intent

and is supposed to return an object that has the same "shape". Any failure to do so will make the webapp intent mechanism fallback on a function that acts as the identity function.

One has to add a specific argument to specific a specific custom intent filtering file:

--use-local-intent-filter[=intent-filename]

if no intent filename is specified a default one is looked up with the name:

"local-intent-filter.js"





For more details, see:
https://code.launchpad.net/~abreu-alexandre/webbrowser-app/intent/+merge/247421
-- 
Your team Ubuntu Phablet Team is requested to review the proposed merge of lp:~abreu-alexandre/webbrowser-app/intent into lp:webbrowser-app.



More information about the Ubuntu-reviews mailing list