Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(688)

Unified Diff: pkg/polymer/lib/src/build/polyfill_injector.dart

Issue 424213004: Fix CSP mode of the polymer compiler. Turns out that inline Javascript <script> (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/polymer/lib/src/build/polyfill_injector.dart
diff --git a/pkg/polymer/lib/src/build/polyfill_injector.dart b/pkg/polymer/lib/src/build/polyfill_injector.dart
index baabe102bc3a1a6161248027c8413867af320098..a467af5fc11df78c30c49f0bd37c5d6004ae0d2f 100644
--- a/pkg/polymer/lib/src/build/polyfill_injector.dart
+++ b/pkg/polymer/lib/src/build/polyfill_injector.dart
@@ -69,15 +69,12 @@ class PolyfillInjector extends Transformer with PolymerTransformer {
// fixing our tests: even if content_shell supports Dart VM, we'll still
// test the compiled JS code.
if (options.directlyIncludeJS) {
- // If using CSP add the "precompiled" extension
- final csp = options.contentSecurityPolicy ? '.precompiled' : '';
Siggi Cherem (dart-lang) 2014/07/29 21:30:54 this is obsolete - now dart2js outputs the file wi
-
// Replace all other Dart script tags with JavaScript versions.
for (var script in dartScripts) {
final src = script.attributes['src'];
if (src.endsWith('.dart')) {
script.attributes.remove('type');
- script.attributes['src'] = '$src$csp.js';
+ script.attributes['src'] = '$src.js';
// TODO(sigmund): we shouldn't need 'async' here. Remove this
// workaround for dartbug.com/19653.
script.attributes['async'] = '';

Powered by Google App Engine
This is Rietveld 408576698