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

Issue 1381033002: Add data-URI support class to dart:core (next to Uri). (Closed)

Created:
5 years, 2 months ago by Lasse Reichstein Nielsen
Modified:
4 years ago
CC:
reviews_dartlang.org, nweiz
Base URL:
https://github.com/dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : Update CHANGELOG.md #

Total comments: 60

Patch Set 3 : Moving to new dart:uri library - NOT WORKING! #

Patch Set 4 : Closer to working. #

Patch Set 5 : Added library now working (thanks fschneider). Back to the main content. #

Total comments: 2

Patch Set 6 : Address comments. #

Patch Set 7 : Add more tests, refactor, rename to DataUriHelper. Need better name! #

Total comments: 2

Patch Set 8 : Moving back to dart:core, rename to UriData. #

Total comments: 12

Patch Set 9 : Address comments. #

Patch Set 10 : Fix tests - dart2js doesn't do real bit-ops, jsshell broken on windows. #

Total comments: 3

Patch Set 11 : fix test expectations #

Patch Set 12 : Remove VM assertion that appears to be incorrect. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+1009 lines, -62 lines) Patch
M CHANGELOG.md View 1 2 3 4 5 6 7 8 9 10 1 chunk +7 lines, -0 lines 1 comment Download
M runtime/bin/builtin.dart View 1 2 3 4 5 6 7 1 chunk +3 lines, -3 lines 0 comments Download
M runtime/vm/flow_graph_optimizer.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -3 lines 2 comments Download
M sdk/lib/convert/base64.dart View 1 2 3 4 5 6 7 1 chunk +5 lines, -5 lines 0 comments Download
M sdk/lib/core/core.dart View 1 2 3 4 5 6 7 1 chunk +4 lines, -1 line 0 comments Download
M sdk/lib/core/uri.dart View 1 2 3 4 5 6 7 8 14 chunks +732 lines, -48 lines 0 comments Download
A tests/corelib/data_uri_test.dart View 1 2 3 4 5 6 7 8 9 1 chunk +252 lines, -0 lines 0 comments Download
M tests/try/poi/serialize_test.dart View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M tools/testing/dart/test_options.dart View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M tools/testing/dart/test_suite.dart View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 31 (9 generated)
Lasse Reichstein Nielsen
5 years, 2 months ago (2015-10-01 12:58:45 UTC) #2
kevmoo
Please add corresponding updates to the CHANGELOG :-)
5 years, 2 months ago (2015-10-01 20:18:16 UTC) #4
kevmoo
Are we going to run with this? Natalie just sent a CL to add it ...
5 years, 2 months ago (2015-10-15 16:06:34 UTC) #5
Lasse Reichstein Nielsen
I'm moving Uri and DataUri to a new dart:uri library (with core exporting Uri as ...
5 years, 2 months ago (2015-10-15 17:34:50 UTC) #6
nweiz
DBC https://codereview.chromium.org/1381033002/diff/20001/sdk/lib/core/uri.dart File sdk/lib/core/uri.dart (right): https://codereview.chromium.org/1381033002/diff/20001/sdk/lib/core/uri.dart#newcode2633 sdk/lib/core/uri.dart:2633: class DataUri { It seems strange that this ...
5 years, 2 months ago (2015-10-15 21:09:04 UTC) #8
Lasse Reichstein Nielsen
Good comments, not through them yet. https://codereview.chromium.org/1381033002/diff/20001/sdk/lib/core/uri.dart File sdk/lib/core/uri.dart (right): https://codereview.chromium.org/1381033002/diff/20001/sdk/lib/core/uri.dart#newcode2676 sdk/lib/core/uri.dart:2676: factory DataUri.fromString(String content, ...
5 years, 2 months ago (2015-10-16 14:38:46 UTC) #9
nweiz
https://codereview.chromium.org/1381033002/diff/20001/sdk/lib/core/uri.dart File sdk/lib/core/uri.dart (right): https://codereview.chromium.org/1381033002/diff/20001/sdk/lib/core/uri.dart#newcode2676 sdk/lib/core/uri.dart:2676: factory DataUri.fromString(String content, On 2015/10/16 14:38:45, Lasse Reichstein Nielsen ...
5 years, 2 months ago (2015-10-19 19:51:20 UTC) #10
Lasse Reichstein Nielsen
@iposva: Every changed file except uri.dart is only about creating a new dart:uri library. Please ...
5 years, 1 month ago (2015-10-28 13:55:47 UTC) #12
nweiz
https://codereview.chromium.org/1381033002/diff/20001/sdk/lib/core/uri.dart File sdk/lib/core/uri.dart (right): https://codereview.chromium.org/1381033002/diff/20001/sdk/lib/core/uri.dart#newcode2633 sdk/lib/core/uri.dart:2633: class DataUri { On 2015/10/28 13:55:47, Lasse Reichstein Nielsen ...
5 years, 1 month ago (2015-10-29 00:28:36 UTC) #13
Ivan Posva
Just noticed this while trying to get up to speed on this CL and the ...
5 years, 1 month ago (2015-11-03 17:04:20 UTC) #14
Lasse Reichstein Nielsen
https://codereview.chromium.org/1381033002/diff/20001/sdk/lib/core/uri.dart File sdk/lib/core/uri.dart (right): https://codereview.chromium.org/1381033002/diff/20001/sdk/lib/core/uri.dart#newcode2633 sdk/lib/core/uri.dart:2633: class DataUri { On 2015/10/29 00:28:36, nweiz wrote: > ...
5 years, 1 month ago (2015-11-03 18:02:53 UTC) #15
Lasse Reichstein Nielsen
PTAL
5 years, 1 month ago (2015-11-06 14:03:53 UTC) #17
kevmoo
On 2015/11/06 14:03:53, Lasse Reichstein Nielsen wrote: > PTAL Please add corresponding changes to the ...
5 years, 1 month ago (2015-11-06 18:26:18 UTC) #18
floitsch
LGTM, although I missed the argument, why DataUri should be in dart:core. https://codereview.chromium.org/1381033002/diff/20001/sdk/lib/core/uri.dart File sdk/lib/core/uri.dart ...
5 years, 1 month ago (2015-11-07 02:56:27 UTC) #20
Lasse Reichstein Nielsen
https://codereview.chromium.org/1381033002/diff/20001/sdk/lib/core/uri.dart File sdk/lib/core/uri.dart (right): https://codereview.chromium.org/1381033002/diff/20001/sdk/lib/core/uri.dart#newcode2315 sdk/lib/core/uri.dart:2315: if (end == null) end = text.length; This is ...
5 years, 1 month ago (2015-11-09 10:27:38 UTC) #21
Lasse Reichstein Nielsen
Committed patchset #9 (id:160001) manually as bbc66c2c41e61d82d6b85fdd16e2b0f1204c2a33 (presubmit successful).
5 years, 1 month ago (2015-11-11 09:27:51 UTC) #22
Lasse Reichstein Nielsen
Will land again when the (unrelated?) VM bug it triggers is fixed. https://codereview.chromium.org/1381033002/diff/180001/tests/try/poi/serialize_test.dart File tests/try/poi/serialize_test.dart ...
5 years, 1 month ago (2015-11-11 16:05:12 UTC) #24
Florian Schneider
On 2015/11/11 16:05:12, Lasse Reichstein Nielsen wrote: > Will land again when the (unrelated?) VM ...
5 years, 1 month ago (2015-11-12 07:03:52 UTC) #25
Lasse Reichstein Nielsen
https://codereview.chromium.org/1381033002/diff/220001/runtime/vm/flow_graph_optimizer.cc File runtime/vm/flow_graph_optimizer.cc (left): https://codereview.chromium.org/1381033002/diff/220001/runtime/vm/flow_graph_optimizer.cc#oldcode182 runtime/vm/flow_graph_optimizer.cc:182: ASSERT(!call->ic_data()->IssuedJSWarning()); This was hit by standalone/javascript_compatibility_test/{20,21,50,51} - unless the ...
5 years, 1 month ago (2015-11-12 11:48:25 UTC) #27
Florian Schneider
lgtm https://codereview.chromium.org/1381033002/diff/220001/runtime/vm/flow_graph_optimizer.cc File runtime/vm/flow_graph_optimizer.cc (left): https://codereview.chromium.org/1381033002/diff/220001/runtime/vm/flow_graph_optimizer.cc#oldcode182 runtime/vm/flow_graph_optimizer.cc:182: ASSERT(!call->ic_data()->IssuedJSWarning()); On 2015/11/12 11:48:25, Lasse Reichstein Nielsen wrote: ...
5 years, 1 month ago (2015-11-12 11:51:10 UTC) #28
Lasse Reichstein Nielsen
Committed patchset #12 (id:220001) manually as ed0b187d583493432b10aaaac2844f05f4bcce3e (presubmit successful).
5 years, 1 month ago (2015-11-12 12:02:25 UTC) #29
kevmoo
5 years, 1 month ago (2015-11-12 17:32:02 UTC) #31
Message was sent while issue was closed.
https://codereview.chromium.org/1381033002/diff/220001/CHANGELOG.md
File CHANGELOG.md (right):

https://codereview.chromium.org/1381033002/diff/220001/CHANGELOG.md#newcode9
CHANGELOG.md:9: * `dart:core`
Tiny nit: in the future keep these updates sorted by library name.

But having the changelog update at all is freakin' awesome. Thanks!

Powered by Google App Engine
This is Rietveld 408576698