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

Issue 12387010: Add --csp flag to test.dart. (Closed)

Created:
7 years, 9 months ago by kasperl
Modified:
7 years, 9 months ago
CC:
reviews_dartlang.org, ahe
Visibility:
Public.

Description

Add --csp flag to test.dart. When running test with that flag we make sure the HTTP server emits Content-Security-Policy restriction headers and we pass --disallow-unsafe-eval to dart2js. R=ricow@google.com,kustermann@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=19208

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix comment and update test-runtime.dart. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -10 lines) Patch
M tools/test.dart View 2 chunks +4 lines, -2 lines 0 comments Download
M tools/test-runtime.dart View 1 2 chunks +4 lines, -2 lines 0 comments Download
M tools/testing/dart/http_server.dart View 1 6 chunks +19 lines, -4 lines 0 comments Download
M tools/testing/dart/test_options.dart View 1 chunk +7 lines, -0 lines 0 comments Download
M tools/testing/dart/test_suite.dart View 3 chunks +5 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
kasperl
7 years, 9 months ago (2013-02-28 08:12:52 UTC) #1
kustermann
lgtm https://codereview.chromium.org/12387010/diff/1/tools/test.dart File tools/test.dart (right): https://codereview.chromium.org/12387010/diff/1/tools/test.dart#newcode126 tools/test.dart:126: useContentSecurityPolicy); Since the second parameter is not optional, ...
7 years, 9 months ago (2013-02-28 08:34:49 UTC) #2
ricow1
LGTM https://codereview.chromium.org/12387010/diff/1/tools/test.dart File tools/test.dart (right): https://codereview.chromium.org/12387010/diff/1/tools/test.dart#newcode126 tools/test.dart:126: useContentSecurityPolicy); You also need to do this in ...
7 years, 9 months ago (2013-02-28 08:36:06 UTC) #3
sra1
How about renaming the dart2js flag to --csp at the same time?
7 years, 9 months ago (2013-02-28 08:38:09 UTC) #4
kasperl
https://codereview.chromium.org/12387010/diff/1/tools/test.dart File tools/test.dart (right): https://codereview.chromium.org/12387010/diff/1/tools/test.dart#newcode126 tools/test.dart:126: useContentSecurityPolicy); On 2013/02/28 08:36:07, ricow1 wrote: > You also ...
7 years, 9 months ago (2013-02-28 08:54:49 UTC) #5
kasperl
Committed patchset #2 manually as r19208 (presubmit successful).
7 years, 9 months ago (2013-02-28 08:59:41 UTC) #6
ricow1
7 years, 9 months ago (2013-02-28 09:07:06 UTC) #7
Message was sent while issue was closed.
On 2013/02/28 08:54:49, kasperl wrote:
> https://codereview.chromium.org/12387010/diff/1/tools/test.dart
> File tools/test.dart (right):
> 
> https://codereview.chromium.org/12387010/diff/1/tools/test.dart#newcode126
> tools/test.dart:126: useContentSecurityPolicy);
> On 2013/02/28 08:36:07, ricow1 wrote:
> > You also need to do this in tools/test-runtime.dart
> 
> I'll do that, but I *strongly* object to this. I don't want to worry about a
> degenerated runtime-specific checkout of a subset of the system when working
on
> the testing infrastructure. I suggest we just delete test-runtime.dart
> completely right now and *force* everybody to use the same checkout.
+1 but I am not sure vm guys agree

Powered by Google App Engine
This is Rietveld 408576698