Skip to content
This repository was archived by the owner on Dec 19, 2017. It is now read-only.
This repository was archived by the owner on Dec 19, 2017. It is now read-only.

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

@DartBot

Description

@DartBot

<img src="https://avatars.githubusercontent.com/u/6412650?v=3" align="left" width="96" height="96"hspace="10"> Issue by bergold
Originally opened as dart-lang/sdk#21213


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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions