Skip to content

Polymer.dart chrome packages app empty inline-script csp issue #21213

@DartBot

Description

@DartBot

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-pkgUsed for miscellaneous pkg/ packages not associated with specific area- teams.needs-infoWe need additional information from the issue author (auto-closed after 14 days if no response)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions