-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
This issue was originally filed by @bergold
What steps will reproduce the problem?
1. Create a new project and add chrome and polymer as dependencies.
2. Create a custom element and import 'package/polymer/polymer.html'.
3. Use this element somewhere.
4. Build the app with 'pub build' and the chrome, polymer and dart2js transformer with csp=true set.
What is the expected output? What do you see instead?
Refused to execute inline script because it violates the following Content Security Policy directive...
This error is thrown because of an empty script tag in 'package/polymer/polymer.html'
12. <link rel="import" href="src/js/polymer/polymer.html">
13. <script>
14. // TODO(sigmund): remove this script tag (dartbug.com/19650). This empty
15. // script tag is necessary to work around a bug in Chrome 36.
16. </script>
- Dart SDK version: 1.6.0
- polymer package version: 0.15.0
- Operating system: Windows 7
- Browser (if any): Chrome Canary 40.0.2175.0