You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by muratsu <gi...@git.apache.org> on 2015/04/28 23:24:01 UTC

[GitHub] cordova-mobile-spec pull request: CB-8927 Add media to cspMeta and...

GitHub user muratsu opened a pull request:

    https://github.com/apache/cordova-mobile-spec/pull/127

    CB-8927 Add media to cspMeta and Windows as plat

    Fixes CSP errors on media test.
    Addes CSPs for Windows platform

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/MSOpenTech/cordova-mobile-spec CB-8926

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cordova-mobile-spec/pull/127.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #127
    
----
commit 387f163810b464f96c3a0fc2f8718e47db80a806
Author: Murat Sutunc <su...@gmail.com>
Date:   2015-04-28T21:18:19Z

    CB-8927 Add media to cspMeta and Windows as plat

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org


[GitHub] cordova-mobile-spec pull request: CB-8927 Add media to cspMeta and...

Posted by nikhilkh <gi...@git.apache.org>.
Github user nikhilkh commented on the pull request:

    https://github.com/apache/cordova-mobile-spec/pull/127#issuecomment-100982639
  
    LGTM. 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org


[GitHub] cordova-mobile-spec pull request: CB-8927 Add media to cspMeta and...

Posted by muratsu <gi...@git.apache.org>.
Github user muratsu closed the pull request at:

    https://github.com/apache/cordova-mobile-spec/pull/127


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org


[GitHub] cordova-mobile-spec pull request: CB-8927 Add media to cspMeta and...

Posted by nikhilkh <gi...@git.apache.org>.
Github user nikhilkh commented on the pull request:

    https://github.com/apache/cordova-mobile-spec/pull/127#issuecomment-104426207
  
    You need the nifty coho merge-pr script. :wink:


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org


[GitHub] cordova-mobile-spec pull request: CB-8927 Add media to cspMeta and...

Posted by dblotsky <gi...@git.apache.org>.
Github user dblotsky commented on a diff in the pull request:

    https://github.com/apache/cordova-mobile-spec/pull/127#discussion_r29300643
  
    --- Diff: www/csp-incl.js ---
    @@ -49,7 +49,13 @@ if (!window._disableCSP) {
         switch (PLAT) {
             case 'android':
             case 'ios':
    -            cspMetaContent = 'default-src \'self\' https://ssl.gstatic.com/accessibility/javascript/android/; connect-src \'self\' http://cordova-filetransfer.jitsu.com;frame-src \'self\' data: gap:; img-src \'self\' data:; style-src \'self\' \'unsafe-inline\'';
    +        case 'windows8':
    +            cspMetaContent = 'default-src \'self\' https://ssl.gstatic.com/accessibility/javascript/android/;' +
    +                            ' connect-src \'self\' http://cordova-filetransfer.jitsu.com;' +
    +                            ' media-src \'self\' http://cordova.apache.org/downloads/;' +
    +                            ' frame-src \'self\' data: gap:;' +
    +                            ' img-src \'self\' data:;' +
    +                            ' style-src \'self\' \'unsafe-inline\'';
    --- End diff --
    
    Even though the fact that this fixes things on Windows is actually really valuable, the formatting is the best thing about this change. Small nit: might be better to use double-quotes for the strings so you won't have to escape as much.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org


[GitHub] cordova-mobile-spec pull request: CB-8927 Add media to cspMeta and...

Posted by nikhilkh <gi...@git.apache.org>.
Github user nikhilkh commented on the pull request:

    https://github.com/apache/cordova-mobile-spec/pull/127#issuecomment-109399489
  
    @muratsu Can you please close this PR?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org


[GitHub] cordova-mobile-spec pull request: CB-8927 Add media to cspMeta and...

Posted by dblotsky <gi...@git.apache.org>.
Github user dblotsky commented on the pull request:

    https://github.com/apache/cordova-mobile-spec/pull/127#issuecomment-104425580
  
    Merged. Sorry, forgot to say "This closes #127." You may safely close and delete.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org