1
0
mirror of https://github.com/dart-lang/sdk synced 2024-07-05 09:20:04 +00:00
Commit Graph

48 Commits

Author SHA1 Message Date
Natalie Weizenbaum
1b7c33a5b5 Bump the VM service protocol version to 2.0.
This reflects the breaking changes since version 1.0, which was released
in Dart 1.11. It also gets rid of the "draft" language in the VM service
protocol documentation, since it will be (and has been) shipped in a
stable Dart release.

R=turnidge@google.com

Review URL: https://codereview.chromium.org//1270603003 .
2015-08-03 14:58:51 -07:00
Bob Nystrom
9ae71739a2 Update to latest dart_style.
R=kevmoo@google.com

Review URL: https://codereview.chromium.org//1266913002 .
2015-07-30 15:48:22 -07:00
Natalie Weizenbaum
61ea0618ce Support JSON-RPC 2.0-compatible VM service events.
This adds a parameter to streamListen that will cause it to produce JSON-RPC
2.0-compatible events.

R=turnidge@google.com

Review URL: https://codereview.chromium.org//1257943003 .
2015-07-28 17:17:40 -07:00
Natalie Weizenbaum
e5a9479fd2 Bring in the latest json_rpc_2 and barback.
R=rnystrom@google.com

Review URL: https://codereview.chromium.org//1253023004 .
2015-07-27 16:16:56 -07:00
Natalie Weizenbaum
4153313dfd Make VM service id handling JSON-RPC 2 compliant.
* Numeric ids will not be converted to strings.

* String ids will be escaped, so an id of '"' doesn't produce invalid
  JSON.

* List or map ids will be rejected.

* Null ids will produce no response.

R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org//1255003003 .
2015-07-27 16:14:34 -07:00
Natalie Weizenbaum
cf0955a83e Include a "jsonrpc" property in all VM service responses.
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org//1258733004 .
2015-07-27 11:10:16 -07:00
Natalie Weizenbaum
7d6a44908a Bring in the latest pub and barback.
R=rnystrom@google.com

Review URL: https://codereview.chromium.org//1247563003 .
2015-07-20 15:29:48 -07:00
Lasse R.H. Nielsen
848f6c978c Do "path normalization" when creating a URI.
Path normaliztion removes '.' and '..' segments from a URI. Such relative references are only intended for URI References, and Uri References are only intended for resolving against a full URI.

We do path normalization on all URIs that have a scheme, authority or an absolute path, and partial normalization on what are really just relative paths. The partial normalization can leave ".." at the start of the path.

The URI reference resolution algorithm doesn't work as expected for a URI ending in "..". Resolving "./foo" wrt. a base of "/a/.." results in  "/a/foo" - this is avoided when the base is path normalized before it's used.

This also fixes the "normalizePath" function which currently removes leading '..' segments, contrary to its documentation. It also makes the function redundant since all URI paths are normalized automatically.

See discussion on http://dartbug.com/23688

Also fix bug in the removeDotSegments function.

R=floitsch@google.com

Review URL: https://codereview.chromium.org//1224263009.
2015-07-17 17:08:36 +02:00
Lasse R.H. Nielsen
4a8a844c34 Add setters for callbacks on StreamController.
This allows you to create a stream controller at one point and
add or change the callbacks later. This can be useful if you
want to store a stream controller in a final instance field and
also want the controller to call instance methods as callbacks.

R=floitsch@google.com

Review URL: https://codereview.chromium.org//1242023007.
2015-07-17 12:03:00 +02:00
Natalie Weizenbaum
bdd5803006 Fix a WebSocket crash.
Previously, a WebSocket would crash if it was closed after its
StreamSubscription was canceled. Now, it tracks whether the subscription
was canceled by canceling and nulling out its own internal subscription.

Fixes #23845

R=ajohnsen@google.com

Review URL: https://codereview.chromium.org//1234163002 .
2015-07-15 13:30:06 -07:00
Lasse R.H. Nielsen
4ee6246556 Add split function to LineSplitter class in dart:convert.
The split function returns a lazy iterable of the lines, unlike the convert
function which returns a list.
This makes the function usable on large strings where not all of the lines
are needed.

Closes https://github.com/dart-lang/sdk/issues/23837

R=kevmoo@google.com

Review URL: https://codereview.chromium.org//1240623002 .
2015-07-15 12:26:24 +02:00
Natalie Weizenbaum
b47940fb82 Update pub.
R=rnystrom@google.com

Review URL: https://codereview.chromium.org//1233243002 .
2015-07-14 13:19:30 -07:00
Kevin Moore
8902768e0d Changelog: document dart:core Iterable can be extended as of Dart 1.11
Closes https://github.com/dart-lang/sdk/issues/23735

R=lrn@google.com

Review URL: https://codereview.chromium.org//1235643004 .
2015-07-14 06:37:06 -07:00
Søren Gjesse
36b82c9fe2 Update CHANGELOG
BUG=https://github.com/dart-lang/sdk/issues/19334
TBR=kevmoo@google.com

Review URL: https://codereview.chromium.org//1235543003.
2015-07-10 16:29:57 +02:00
Natalie Weizenbaum
3fe8cf3211 Bring in the latest pub.
R=rnystrom@google.com

Review URL: https://codereview.chromium.org//1223343003 .
2015-07-09 13:20:03 -07:00
Søren Gjesse
6aeb934e3c Update CHANGELOG with information on opening file read only
R=lrn@google.com
BUG=

Review URL: https://codereview.chromium.org//1217093004.
2015-07-03 14:52:40 +02:00
Kevin Moore
d676b3fbd1 Fix commit links for 1.11 and 1.10 in changelog
Closes https://github.com/dart-lang/sdk/issues/23715

R=jakemac@google.com

Review URL: https://codereview.chromium.org//1217603003.
2015-06-30 10:17:53 -07:00
Natalie Weizenbaum
6446e906bf Bring in the latest pub.
R=kevmoo@google.com, ricow@google.com

Review URL: https://codereview.chromium.org//1215013003.
2015-06-29 16:26:45 -07:00
Kevin Moore
9b56fe8e39 CHANGELOG: 1.11 - add note on checked flag to Isolate.spawn
TBR

Review URL: https://codereview.chromium.org//1211923002.
2015-06-25 09:29:47 -07:00
Kevin Moore
d436d579a6 CHANGELOG: add date to 1.11.0 release 2015-06-25 09:04:34 -07:00
Regis Crelier
034497033f update CHANGELOG.md for gcd
R=kevmoo@google.com

Review URL: https://codereview.chromium.org//1204883002.
2015-06-23 14:44:48 -07:00
Kevin Moore
05988c71f4 changelog updates for dart:developer library and editor removal
R=kathyw@google.com

Review URL: https://codereview.chromium.org//1203823002.
2015-06-23 14:35:59 -07:00
Kevin Moore
d3a16303a2 final changelog updates for 1.11
R=kathyw@google.com

Review URL: https://codereview.chromium.org//1202853002.
2015-06-23 14:17:32 -07:00
Kevin Moore
d7bf5501fc CHANGELOG a number of updates for 1.11
TBR

Review URL: https://codereview.chromium.org//1197283005.
2015-06-23 13:39:40 -07:00
Alan Knight
1d5b657427 Make it easier and more efficient to use trusted HTML text
BUG=
R=sra@google.com

Review URL: https://codereview.chromium.org//1154423009.
2015-06-22 09:41:01 -07:00
Alan Knight
857b581b49 Add links to CHANGELOG announcement for appendHtml sanitizing
BUG=
R=kevmoo@google.com

Review URL: https://codereview.chromium.org//1159563008
2015-05-26 14:40:48 -07:00
Lasse R.H. Nielsen
1f42f878a7 Update CHANGELOG
R=kevmoo@google.com

Review URL: https://codereview.chromium.org//1149883005
2015-05-26 14:21:20 +02:00
Seth Ladd
c0d0410273 Update CHANGELOG.md 2015-05-19 08:39:11 -07:00
Seth Ladd
4862e6e13f mention dart2dart 2015-05-19 08:38:01 -07:00
alanknight@google.com
1f20842389 Another try at appendHtml and insertAdjacentHtml should be consistently sanitized
BUG=

Review URL: https://codereview.chromium.org//1123173003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45818 260f80e4-7a28-3924-810f-c04153c831b5
2015-05-15 17:59:23 +00:00
alanknight@google.com
bfa61f62e0 "Reverting 45815"
BUG=

Review URL: https://codereview.chromium.org//1127403006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45816 260f80e4-7a28-3924-810f-c04153c831b5
2015-05-15 17:04:53 +00:00
alanknight@google.com
1c69173804 Test Dartium with appendHtml sanitizing. Will immediately revert.
BUG=

Review URL: https://codereview.chromium.org//1133343005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45815 260f80e4-7a28-3924-810f-c04153c831b5
2015-05-15 16:30:17 +00:00
alanknight@google.com
90a31f8fea "Reverting 45807"
BUG=

Review URL: https://codereview.chromium.org//1139193002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45808 260f80e4-7a28-3924-810f-c04153c831b5
2015-05-15 01:29:49 +00:00
alanknight@google.com
2faa58eb4c Testing for appendHtml and insertAdjacentHtml should be consistently sanitized
BUG=

Review URL: https://codereview.chromium.org//1147473002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45807 260f80e4-7a28-3924-810f-c04153c831b5
2015-05-15 01:10:19 +00:00
alanknight@google.com
e1c798b0fd "Reverting 45790"
BUG=

Review URL: https://codereview.chromium.org//1138383006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45791 260f80e4-7a28-3924-810f-c04153c831b5
2015-05-14 19:04:23 +00:00
alanknight@google.com
9453809937 appendHtml and insertAdjacentHtml should be consistently sanitized
BUG=
R=terry@google.com

Review URL: https://codereview.chromium.org//1081973003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45790 260f80e4-7a28-3924-810f-c04153c831b5
2015-05-14 18:04:17 +00:00
kevmoo@google.com
60405022e6 Changelog: More updates for 1.10
R=sethladd@google.com

Review URL: https://codereview.chromium.org//1120653004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45462 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-30 21:50:46 +00:00
kevmoo@google.com
605fd81f2e format and improve changelog
R=kathyw@google.com

Review URL: https://codereview.chromium.org//1112643008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45453 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-29 18:11:59 +00:00
lrn@google.com
b3ee3a85bf Improve return type of markUnmodifiableList to JSArray instead of List.
R=sgjesse@google.com

Review URL: https://codereview.chromium.org//1076013006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45372 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-23 10:20:53 +00:00
alanknight@google.com
25c6f198f5 "Reverting 45351"
BUG=

Review URL: https://codereview.chromium.org//1097053006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45353 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-22 17:51:58 +00:00
alanknight@google.com
7431beaec2 appendHtml and insertAdjacentHtml should be consistently sanitized
BUG=
R=terry@google.com

Review URL: https://codereview.chromium.org//1081973003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45351 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-22 17:16:01 +00:00
sra@google.com
b840a38c69 CHANGELOG entry for CssClassSet
BUG=

Review URL: https://codereview.chromium.org//1096223002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45310 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-21 05:09:53 +00:00
sra@google.com
39dfecbfb5 Revert "Change ListIterator to only check for concurrent modification at each iteration"
Revert "Fix ListIterator.iterator function hash for VM."

This is not as easy to optimize for dart2js as initially thought.
Revert this change while we discuss.

R=floitsch@google.com

Review URL: https://codereview.chromium.org//1064053007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45216 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-16 18:53:39 +00:00
lrn@google.com
5a79c03e09 Change ListIterator to only check for concurrent modification at each iteration
in checked mode.

It also checks at the end in all cases.

Iteration only goes from 0 to the original length of the list.
This ensures that iterating a list while adding to it (like by x.addAll(x))
is caught instead of growing until out-of-memory.
For well-behaved programs this makes no difference since length and original
length stay the same.
Also, it means that calling moveNext again later, after increasing the length,
will not make iteration continue. After returning false, iteration is always
done.
However, it means that reducing the length causes an out-of-range read before
reaching the end, and before a concurrent modification error can happen.

R=sra@google.com

Review URL: https://codereview.chromium.org//1024843002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45198 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-16 09:07:58 +00:00
lrn@google.com
d26580a98b Update changelog.md with Isolate API and HtmlConvert changes.
R=sgjesse@google.com

Review URL: https://codereview.chromium.org//1087163002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45197 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-16 09:02:52 +00:00
kevmoo@google.com
c4fe1b74c9 update changelog for 1.9.3 release and date
R=nweiz@google.com

Review URL: https://codereview.chromium.org//1083213002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45179 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-15 19:47:54 +00:00
kevmoo@google.com
9f351b8142 update changelog for 1.9.2
R=nweiz@google.com

Review URL: https://codereview.chromium.org//1078933002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45076 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-10 19:24:32 +00:00
nweiz@google.com
7d852fb237 Add a core SDK changelog.
This is based on the archive of release notes. Its primary goal is to
provide a canonical source for Dart package developers to refer to
when determining what SDK constraints to use for their packages. It
only goes back through 1.7.0 because older SDKs aren't in wide use and
it's unlikely that package authors will need to know what features
changed back then.

R=kevmoo@google.com

Review URL: https://codereview.chromium.org//1064493002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44899 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-03 23:31:36 +00:00