MobileChromeApps / mobile-chrome-apps

Chrome apps on Android and iOS
BSD 3-Clause "New" or "Revised" License
2.5k stars 347 forks source link

Content Security Policy with Android Native WebView #602

Open joshelson opened 8 years ago

joshelson commented 8 years ago

I am seeing a strange issue manifesting itself with Android M Native WebView. No matter how I set the Content Security Policy, when attempting to get a media stream, I end up with the following error:

Refused to load media from 'blob:file%3A///8b0456e0-6888-4a08-8872-b0282c41c672' because it violates the following Content Security Policy directive: "media-src *".

I have tried setting my media-src directive any number of ways without success. This same code works fine with crosswalk.

Anyone else ran into this?

agrieve commented 8 years ago

Certainly sounds like a webview bug. Probably the best way to get the bug filed with the team would be to provide a small test page that reproduces the issue. If you're able to do that, I can file a bug on crbug.com