Merge lp://staging/~jdstrand/webapps-core/lp1296170 into lp://staging/webapps-core

Proposed by Jamie Strandboge
Status: Superseded
Proposed branch: lp://staging/~jdstrand/webapps-core/lp1296170
Merge into: lp://staging/webapps-core
Diff against target: 12 lines (+1/-1)
1 file modified
webapp-facebook/webapp-facebook.desktop (+1/-1)
To merge this branch: bzr merge lp://staging/~jdstrand/webapps-core/lp1296170
Reviewer Review Type Date Requested Status
David Barth (community) Approve
Alexandre Abreu (community) Approve
Review via email: mp+213528@code.staging.launchpad.net

This proposal has been superseded by a proposal from 2014-03-31.

Commit message

webapp-facebook/webapp-facebook.desktop: adjust --webAppUrlPatterns to use --webappUrlPatterns=https?://*.facebook.com/* (LP: #1296170)

Description of the change

webapp-facebook/webapp-facebook.desktop: adjust --webAppUrlPatterns to use --webappUrlPatterns=https?://[a-z]+.facebook.com/* (LP: #1296170)

To post a comment you must log in.
Revision history for this message
Alexandre Abreu (abreu-alexandre) wrote :

Is there a specific reason why you have something like [a-z]+ and not e.g. [a-z][a-z0-9]+ ?

Also, the url patterns specified at this level (specified in --webappUrlPatterns) are actually a weak versions of wildcard patterns (with '?' as an extra pattern char). So full blown regexp should not really used (although not strictly forbidden). In this context maybe 'https?://*.facebook.com/*' would match your needs a bit more (it'll be translated to 'https?://[^\\./]*.facebook.com/*' ?

review: Needs Information
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

I just didn't want '*' in there and they seem to be using one letter hostnames, so I went with that. Note this:
  [a-z][a-z0-9]+

requires at least a two-character hostname and would not resolve the issue for me.

I forgot about the translation of 'https?://*.facebook.com/*' to 'https?://[^\\./]*.facebook.com/*'. I would be fine with: 'https?://*.facebook.com/*'. Should I resubmit?

Revision history for this message
Alexandre Abreu (abreu-alexandre) wrote :

> I just didn't want '*' in there and they seem to be using one letter
> hostnames, so I went with that. Note this:
> [a-z][a-z0-9]+
>
> requires at least a two-character hostname and would not resolve the issue for
> me.

right,

>
> I forgot about the translation of 'https?://*.facebook.com/*' to
> 'https?://[^\\./]*.facebook.com/*'. I would be fine with:
> 'https?://*.facebook.com/*'. Should I resubmit?

I'd say yes, just to avoid too much heterogeneous approaches when we can,

38. By Jamie Strandboge

webapp-facebook/webapp-facebook.desktop: use more generic '*.facebook.com'
since we perform rewriting

Revision history for this message
Alexandre Abreu (abreu-alexandre) :
review: Approve
Revision history for this message
David Barth (dbarth) wrote :

Works

review: Approve

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to all changes: