← Back to team overview

ubuntu-phone team mailing list archive

Re: Webapp options deprecated?

 

On 08/10/14 18:21, David Barth wrote:
Hi Mitchell,

There was a recent code change to accept shor urls of the form domain.tld/* which was not supported before. If you have issues with links opening in the browser, it may also be due to a form of "trampoline" url sites can use to track traffic.

Feel free to share a branch with the url pattern and / or logs of the app where you observe those leaks of URLs to the browser.

David

On Mon, Oct 6, 2014 at 11:26 PM, Mitchell Reese <projects@xxxxxxxxxxxxxxxxxxxxx <mailto:projects@xxxxxxxxxxxxxxxxxxxxx>> wrote:

    On 06/10/14 22:11, Olivier Tilloy wrote:

        On Sun, Oct 5, 2014 at 5:44 AM, Mitchell Reese
        <projects@xxxxxxxxxxxxxxxxxxxxx
        <mailto:projects@xxxxxxxxxxxxxxxxxxxxx>> wrote:

            Seem to be running into various errors with the most
            recent version of the
            sdk, and the webapp template. Am getting lots of errors,
            most noticeably
            below:

            /usr/bin/webapp-container: unrecognized option
            '--enable-back-forward'

            /usr/bin/webapp-container: unrecognized option
            '--store-session-cookies'

            /usr/bin/webapp-container: unrecognized option
            '--webappUrlPatterns=https?://*.arstechnica.com/*
            <http://arstechnica.com/*>'

        The warnings about unrecognized options are misleading but can be
        safely ignored (see
        https://bugs.launchpad.net/qtubuntu/+bug/1244616).


            <Unknown File>: WARNING: the use of the
            Ubuntu.Components.Extras.Browser
            namespace is deprecated, please consider updating your
            applications to
            import Ubuntu.Web instead.

        This one is
        https://bugs.launchpad.net/webbrowser-app/+bug/1377885,
        for which I just submitted a fix. In the meantime it can also be
        safely ignored. Thanks for reporting!


            The webapp url patterns no longer work - the test-site I'm
            using (Ars
            Technica) is no longer working with these options -
            instead of staying in
            the webapp container it opens articles in the browser. Has
            something been
            deprecated with the webapp containers, and does the webapp
            template in the
            sdk need to be updated? Is there a work around for the
            time being?

        That’s unexpected, there hasn’t been any important changes in
        the URL
        patterns handling that I’m aware of. Can you please file a bug and
        attach your webapp’s configuration, together with detailed
        steps to
        reproduce the issue?

        Thanks,

          Olivier

    Strange - I'll check my code before I file any bugs. If nothing
    has changed, the most likely scenario is I'm doing something
    wrong... have found the url patterns with webapps to be a dark art
    in any case, so will have a play and see if I can get a better
    handle on it. Thanks again for your reply.

    Mitchell



-- Mailing list: https://launchpad.net/~ubuntu-phone
    <https://launchpad.net/%7Eubuntu-phone>
    Post to     : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
    <mailto:ubuntu-phone@xxxxxxxxxxxxxxxxxxx>
    Unsubscribe : https://launchpad.net/~ubuntu-phone
    <https://launchpad.net/%7Eubuntu-phone>
    More help   : https://help.launchpad.net/ListHelp


Thanks David, will get back to it in a few days and share what I'm up to. With any luck I will have sorted it.

M


References