Commit graph

337 commits

Author SHA1 Message Date
Florian Loitsch fe1fda0766 Make dart:convert strong mode clean.
Also removes the ChunkedConverter.

R=lrn@google.com

Review URL: https://codereview.chromium.org/1964953003 .
2016-05-11 16:15:31 +02:00
Natalie Weizenbaum a984c50dc4 Bring in the latest pub.
R=rnystrom@google.com

Review URL: https://codereview.chromium.org/1953723003 .
2016-05-05 16:09:51 -07:00
Zachary Anderson ba550f1c43 Fixes NetworkInterface.list crash on Android
Previously, Socket::ListInterfaces failed to set the os_error out
parameter causing a crash in the caller. This change sets an error here.

I've also added NetworkInterface.listSupported, which returns false on
Android, and true everywhere else. ifaddrs.h continues not to exist in
the NDK, so in order to support NetworkInterface.list, we'd have to
reimplement it, or find a suitable reimplementation somewhere.

related #26329

R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/1916223003 .
2016-04-26 07:48:58 -07:00
Kevin Moore fd08dae063 Update changelog for event changes in dart:html, etc in 1.16
Closes https://github.com/dart-lang/sdk/issues/25970

R=alanknight@google.com, terry@google.com

Review URL: https://codereview.chromium.org/1911213002 .
2016-04-25 14:43:43 -07:00
Florian Loitsch 84ec63e9fc Make dart:core strong-mode clean.
R=leafp@google.com, lrn@google.com

Review URL: https://codereview.chromium.org/1895473004 .
2016-04-21 14:01:48 +02:00
Natalie Weizenbaum 4bed72be27 Bring in the latest pub.
Once this lands, I intend to merge it into dev.

R=jmesserly@google.com

Review URL: https://codereview.chromium.org/1880413003 .
2016-04-13 16:25:08 -07:00
Kevin Moore 1616aa3c87 fix duplicate dart:convert entries in changelog
R=whesse@google.com

Review URL: https://codereview.chromium.org/1889663002 .
2016-04-13 15:35:27 -07:00
Florian Loitsch 50bdab3841 Steps towards making the convert library strong-mode compliant.
This version has a few deprecated methods. In a future release they will be removed.

See https://codereview.chromium.org/1827803002 for the final patch (once the deprecated methods have been removed).

R=leafp@google.com, lrn@google.com

Committed: 4ab1219bf9
Reverted: 045a375366

Review URL: https://codereview.chromium.org/1847843002 .
2016-04-12 20:59:21 +02:00
Guillaume Girou 6728a8ce2a Fix typo 2016-04-09 10:56:09 +02:00
Lasse R.H. Nielsen 3f0ad9d4f2 Add "url-safe" encoding to base64 in dart:convert.
Fixes issue #24813.
Doesn't add a second codec. The codec is unimportant,
only the BASE64 and BASE64URL constants need to be public anyway.

BUG= http://dartbug.com/24813
R=floitsch@google.com, nweiz@google.com

Review URL: https://codereview.chromium.org/1858113003.
2016-04-07 16:36:14 +02:00
Kevin Moore 87ce6254a9 fix changelog entry for dartdevc
R=zra@google.com

Review URL: https://codereview.chromium.org/1850323003 .
2016-04-01 14:19:57 -07:00
Regis Crelier 786623ee61 Removing unnecessary entry according to https://github.com/dart-lang/sdk/issues/26157
R=iposva@google.com

Review URL: https://codereview.chromium.org/1848933003 .
2016-04-01 08:20:50 -07:00
Zachary Anderson 9c9b5e2f2f Update changelog for SecurityContext.alpnSupported
fixes #26157

R=kevmoo@google.com

Review URL: https://codereview.chromium.org/1850913002 .
2016-04-01 07:49:09 -07:00
Kevin Moore 8613e9c6d0 Document addition of dartdevc in CHANGELOG
R=vsm@google.com

Review URL: https://codereview.chromium.org/1845963004 .
2016-03-31 16:55:51 -07:00
Regis Crelier 48dc790398 Fix core lib DateTime in the VM (fixes #19923).
Symptom of the problem:
Set your Linux workstation (or Mac or MIPS board) to the Europe/London timezone
and the corelib/date_time test will fail, claiming that 1/1/1970 was a Wednesday
(it was actually a Thursday, trust me, I was already born).

Problem:
The implementation of DateTime in the VM relies on Unix time_t, the number of
seconds since the Epoch (1/1/1970 UTC). When asked for the weekday of a given
time, our implementation limits itself to a 32-bit positive range of time_t.
If the time falls outside of this range, the implementation picks an equivalent
time in the valid range with the same weekday, also in leap year or not, etc...
The issue is that DateTime is using the underlying OS in an inconsistent manner.
Let's take the example above: 1/1/1970 in the Europe/London timezone.
First, the number of seconds since the Epoch in UTC is calculated, here 0.
Then, the timezone offset at the given time is calculated using the underlying
OS. In this case, an historical deviation is taken into account. Indeed, London
stayed on British Summer Time between 27 October 1968 and 31 October 1971. See
https://en.wikipedia.org/wiki/British_Summer_Time#Periods_of_deviation for
details.
Our resulting time is therefore negative (one hour difference with UTC).
When asked about the weekday of this time, the implementation notices that the
time is not in the positive range and picks an "equivalent" time in the future.
It then asks the underlying OS about the timezone offset for this time, which
is 0 (usually no daylight saving time in January in London). Unfortunately,
this time is not really equivalent, because it ignores the original historical
deviation. The result is wrongly equivalent to 12/31/1969 23:00 in London, i.e.
a Wednesday, and not a Thursday as expected.

Solution:
We should use the underlying OS in a consistent way, by simply allowing the
value of time_t passed to the underlying OS to be negative, which is legal.

R=floitsch@google.com, rmacnak@google.com

Review URL: https://codereview.chromium.org/1845483002 .
2016-03-30 10:09:58 -07:00
Natalie Weizenbaum c7b7c6490a Bring in the latest pub.
This updates a number of other dependencies as well.

R=rnystrom@google.com

Review URL: https://codereview.chromium.org/1811183002 .
2016-03-21 12:43:25 -07:00
Kevin Moore 6f6b345f75 Added details of dartfmt change to 1.15 changelog
Moved Dartium updates under new Tools section

R=rnystrom@google.com

Review URL: https://codereview.chromium.org/1777483009 .
2016-03-09 15:19:30 -08:00
William Hesse 00e6b92e20 Change bleeding-edge version to 1.16.0, merge stable and bleeding-edge changelog.
BUG=
R=kevmoo@google.com, mit@google.com

Review URL: https://codereview.chromium.org/1781703002 .
2016-03-09 19:14:31 +01:00
Kevin Moore 3ab25d2803 fix changelog formatting 2016-03-09 09:48:26 -08:00
Kevin Moore 3cb353b4c5 update version that analyzer changes landed
Follow-up on 18f46ec2a7

Review URL: https://codereview.chromium.org/1784443002 .
2016-03-09 09:46:57 -08:00
Bob Nystrom 18f46ec2a7 Mention for-in static checking in CHANGELOG.
R=nweiz@google.com

Review URL: https://codereview.chromium.org/1777733002 .
2016-03-08 16:13:03 -08:00
Kevin Moore edd6054d13 update changelog for Dartium roll
R=terry@google.com

Review URL: https://codereview.chromium.org/1760903004 .
2016-03-03 19:52:53 -08:00
Kevin Moore 06606b4c35 Cleanup/moving around config inputs sections for 1.15 changelog
TBR

Review URL: https://codereview.chromium.org/1764553003 .
2016-03-03 10:53:37 -08:00
John McCutchan ecaf2c99b8 Add Changelog entry for CL 1710593002
BUG=

Review URL: https://codereview.chromium.org/1759053003 .
2016-03-03 07:12:13 -08:00
Zachary Anderson e2729705ff Rolls back fix of SecurityContext method names.
R=iposva@google.com

Review URL: https://codereview.chromium.org/1757453002 .
2016-03-01 10:34:15 -08:00
Kevin Moore 6437886ef9 updated ordering of changelog items
R=floitsch@google.com

Review URL: https://codereview.chromium.org/1745223002 .
2016-02-29 13:19:06 -08:00
Florian Loitsch 1d2a46e6b4 Update Changelog with conditional imports.
R=kevmoo@google.com

Review URL: https://codereview.chromium.org/1749953002 .
2016-02-29 22:14:42 +01:00
Zachary Anderson 38786e9566 More SecurityContext calls accept a password.
Any PKCS12 container, not just those containing a private key, can be
protected by a password. This change adds an optional named `password`
parameter to other SecurityContext calls, and plumbs it through to
the calls reading PKCS12 data.

R=whesse@google.com

Review URL: https://codereview.chromium.org/1699163002 .
2016-02-17 10:58:19 -08:00
Florian Loitsch 257272fd42 Use internal const-constructor.
BUG= http://dartbug.com/25760
R=lrn@google.com

Review URL: https://codereview.chromium.org/1696453002 .
2016-02-12 20:29:41 +01:00
Natalie Weizenbaum 3011aff047 Add the 1.14.2 pub change to the changelog.
R=kevmoo@google.com

Review URL: https://codereview.chromium.org/1683843005 .
2016-02-11 13:22:54 -08:00
Zachary Anderson 89f414dc37 Adds support for PKCS12 containers to SecurityContext
Looking forward to using platform specific APIs, this container type is
more common on MacOS and Windows, and is the only container type
supported by the native iOS API.

R=whesse@google.com

Review URL: https://codereview.chromium.org/1687533002 .
2016-02-10 14:20:59 -08:00
Zachary Anderson 2cf6405ca9 Adds SecurityContext.setTrustedCertificatesBytes
Implements SecurityContext.setTrustedCertificates in terms of the new
function. This requires setTrustedCertificates to return a Future,
and removing the `directory` named argument as it is not possible to
implement with BoringSSL without blocking IO.

R=whesse@google.com

Review URL: https://codereview.chromium.org/1665433002 .
2016-02-08 08:41:49 -08:00
Michael Thomsen b18e7f2dd8 Add note about 14.1 stable patch
BUG=
R=whesse@google.com

Review URL: https://codereview.chromium.org/1664863003 .
2016-02-04 15:24:35 +01:00
Kevin Moore a49249b18f CHANGELOG: add date to 1.14 release
Review URL: https://codereview.chromium.org/1654673002 .
2016-01-31 14:38:17 -08:00
Kevin Moore 17c3da093c Fixed link in README 2016-01-29 16:15:13 -08:00
Kevin Moore 213c8504e0 final changlog updates for 1.14
Closes https://github.com/dart-lang/sdk/issues/25595

Review URL: https://codereview.chromium.org/1640303002 .
2016-01-27 09:43:24 -08:00
Lasse R.H. Nielsen 3990be61d9 Update Stream.listen doc and use ?? in some places.
R=floitsch@google.com

Review URL: https://codereview.chromium.org/1606543005 .
2016-01-21 12:58:24 +01:00
Søren Gjesse 4e35dd3b05 Update changelog with information on WebSocket compression
Closes #24980

BUG= https://github.com/dart-lang/sdk/issues/24980
R=mit@google.com

Review URL: https://codereview.chromium.org/1587043002 .
2016-01-14 15:55:24 +01:00
Lasse R.H. Nielsen 0083cf8439 Change Platform.isiOS to isIOS.
R=rnystrom@google.com

Review URL: https://codereview.chromium.org/1583763002 .
2016-01-14 11:14:59 +01:00
Lasse R.H. Nielsen f70bef4a2c Support the same parameter key more than once in Uri query parameters.
R=floitsch@google.com, sgjesse@google.com

Review URL: https://codereview.chromium.org/1520943002 .
2016-01-13 13:07:18 +01:00
Michael Thomsen 571db61b4a Fix typo in changelog introduced in previous CL land
BUG=

Review URL: https://codereview.chromium.org/1581453003 .
2016-01-12 11:16:03 +01:00
Michael Thomsen 1bf4ee0841 Kevin/Bill, there was a good suggestion in #25374 that we should maintain the changelog even for SDK patch releases. I think that is a good idea. I went back and added entries for 1.13.1 and 1.13.2. What do you think?
Fixes #25374

R=kevmoo@google.com

Review URL: https://codereview.chromium.org/1573163002 .
2016-01-12 11:09:23 +01:00
Natalie Weizenbaum 2e57ac69a4 Bring in the latest pub.
R=rnystrom@google.com

Review URL: https://codereview.chromium.org/1569983002 .
2016-01-11 12:43:51 -08:00
Lasse R.H. Nielsen 8487d57e48 Add Future.any and Stream.fromFutures.
R=floitsch@google.com

Review URL: https://codereview.chromium.org/1563223002 .
2016-01-08 10:17:34 +01:00
Natalie Weizenbaum 71187d41fe Bring in the latest pub.
This brings in the fix for dart-lang/pub#1367.

R=rnystrom@google.com

Review URL: https://codereview.chromium.org/1540443004 .
2015-12-17 16:44:37 -08:00
Bob Nystrom 1d3d4049ce Add dartfmt to changelog.
R=kevmoo@google.com

Review URL: https://codereview.chromium.org/1504333008 .
2015-12-09 16:13:57 -08:00
Florian Loitsch 6bb8d76ce0 Update changelog for DateTime.microsecond support.
R=kevmoo@google.com

Review URL: https://codereview.chromium.org/1510863003 .
2015-12-09 00:58:57 +01:00
Natalie Weizenbaum 85dc0454b3 Bring in the latest version of pub.
R=rnystrom@google.com

Review URL: https://codereview.chromium.org/1491933003 .
2015-12-02 14:06:05 -08:00
Lasse R.H. Nielsen 027b8dca39 Add StackTrace.current getter.
R=floitsch@google.com, iposva@google.com, sra@google.com

Review URL: https://codereview.chromium.org/1448003002.
2015-11-24 08:26:03 +01:00
William Hesse d9397d8a16 Copy changes to CHANGELOG.md from stable to bleeding-edge.
BUG=
R=kevmoo@google.com

Review URL: https://codereview.chromium.org/1454293002 .
2015-11-18 16:45:21 -08:00
Lasse R.H. Nielsen 517a443481 Add List.filled parameter to CHANGELOG.md. Sort by library name.
R=kevmoo@google.com, mit@google.com

Review URL: https://codereview.chromium.org/1444263002 .
2015-11-18 13:34:19 +01:00
Ryan Macnak f3759dedd3 Report iOS as iOS rather than OS X.
R=iposva@google.com

Review URL: https://codereview.chromium.org/1417013011 .
2015-11-13 11:15:04 -08:00
Lasse R.H. Nielsen ed0b187d58 Add data-URI support class to dart:core (next to Uri).
R=floitsch@google.com, fschneider@google.com

Committed: bbc66c2c41

Review URL: https://codereview.chromium.org/1381033002 .
2015-11-12 13:02:20 +01:00
Alan Knight 6a6103318c Add CHANGELOG entries for Dartium and dart:html changes
BUG=
R=kevmoo@google.com

Review URL: https://codereview.chromium.org/1432143004 .
2015-11-11 17:06:25 -08:00
Kevin Moore e7e012e386 fix readme for pkg/js and prepare another release
Update SDK changelog to mention improved JS interop

R=jacobr@google.com

Review URL: https://codereview.chromium.org/1438003002 .
2015-11-11 12:19:43 -08:00
William Hesse df5ef1b136 Revert "Add data-URI support class to dart:core (next to Uri)."
This reverts commit bbc66c2c41.

BUG=
R=ricow@google.com

Review URL: https://codereview.chromium.org/1432203002 .
2015-11-11 11:42:04 +01:00
Lasse R.H. Nielsen bbc66c2c41 Add data-URI support class to dart:core (next to Uri).
R=floitsch@google.com

Review URL: https://codereview.chromium.org/1381033002 .
2015-11-11 10:27:08 +01:00
Michael Thomsen f100ef8000 Corrected resource text in changelog
BUG=
R=lrn@google.com

Review URL: https://codereview.chromium.org/1412963009 .
2015-11-06 10:00:03 +01:00
John McCutchan c34b23ccfe Update CHANGELOG.md
Added note about dart:developer VM service protocol extensions
2015-11-03 06:04:57 -08:00
John McCutchan 7ea2b300f1 Update CHANGELOG.md
Add dart:developer TImeline
2015-11-03 06:02:23 -08:00
William Hesse 03bfdf5f24 Add information about BoringSSL change to CHANGELOG.md.
BUG=https://github.com/dart-lang/sdk/issues/24671
R=sgjesse@google.com

Review URL: https://codereview.chromium.org/1426653007 .
2015-11-03 13:32:10 +01:00
Kevin Moore bf713555bf Remove dart:isolate changes from 1.13 changelog, documented spawnUri environment argument
Closes https://github.com/dart-lang/sdk/issues/24757
helps https://github.com/dart-lang/sdk/issues/24474

R=sethladd@google.com

Review URL: https://codereview.chromium.org/1423323003 .
2015-10-29 16:36:58 -07:00
Kevin Moore 8a3784582f update changelog for 1.13 socket reference change
helps with https://github.com/dart-lang/sdk/issues/24474

R=sgjesse@google.com

Review URL: https://codereview.chromium.org/1427883002 .
2015-10-29 15:01:59 -07:00
Kevin Moore a8ada7d767 Add 1.13 changelog entries for dart:convert WRT Base64
helps https://github.com/dart-lang/sdk/issues/24474

R=lrn@google.com

Review URL: https://codereview.chromium.org/1413053003 .
2015-10-29 15:00:02 -07:00
Kevin Moore 4627a8e916 Added 1.13 changelog entries for changes in dart:async
Helps with https://github.com/dart-lang/sdk/issues/24474

R=lrn@google.com

Review URL: https://codereview.chromium.org/1417983005 .
2015-10-29 14:57:10 -07:00
William Hesse 9fc82d04aa Update changelog
BUG=
R=mit@google.com

Review URL: https://codereview.chromium.org/1419163002 .
2015-10-23 12:44:32 +02:00
Regis Crelier a604838e22 Update CHANGELOG.md with Random.secure for 1.14.
R=sethladd@google.com

Review URL: https://codereview.chromium.org/1416683002 .
2015-10-19 13:03:05 -07:00
Lasse R.H. Nielsen 57f4827c76 Rename [packages] to [packageMap] as Isolate.spawnUri parameter.
This matches the static [packageMap] getter on Isolate.

Fixes issue #24545.
BUG= http://dartbug.com/24545
R=floitsch@google.com

Review URL: https://codereview.chromium.org/1401713002.
2015-10-12 16:31:48 +02:00
Søren Gjesse a1063f6c62 Update CHANGELOG with information on removed socket references
R=whesse@google.com
BUG=

Review URL: https://codereview.chromium.org/1389273002 .
2015-10-07 09:43:21 +02:00
Seth Ladd 7b18bc7e14 clearly mark resource as deprecated
BUG=
R=floitsch@google.com

Review URL: https://codereview.chromium.org/1385933002 .
2015-10-06 09:08:11 -07:00
Todd Turnidge 473413753d Some changes to service protocol before we land 1.13.
- Split AddBreakpoint into two rpcs: AddBreakpoint and
  AddBreakpointWithScriptUri.

- Remove Isolate.entry.

Closes #24329

R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org//1379163002 .
2015-10-01 10:46:44 -07:00
Seth Ladd 28078f3117 intent to remove legacy debug protocol
BUG=
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org//1378643003 .
2015-10-01 10:36:07 -07:00
Kevin Moore 87c694918d sort and format changelog
R=mit@google.com

Review URL: https://codereview.chromium.org//1376993005 .
2015-10-01 09:58:49 -07:00
keertip 18b68f7290 remove docgen remnants from repo, update CHANGELOG
BUG=
R=alanknight@google.com, whesse@google.com

Review URL: https://codereview.chromium.org//1361163002 .
2015-09-23 10:27:15 -07:00
Michael Thomsen bc4fdc3e3a Fix typo in changelog
Fixed typo
2015-09-09 15:18:24 +02:00
Natalie Weizenbaum 5778d87dd2 Forward stack traces through stream transformers.
R=lrn@google.com

Review URL: https://codereview.chromium.org//1302363003 .
2015-08-27 11:38:27 -07:00
Michael Thomsen 8c346abeef Mentioning null-aware in 1.12 changelog
BUG=none
R=johnniwinther@google.com

Review URL: https://codereview.chromium.org//1305273005 .
2015-08-25 11:34:34 +02:00
Kevin Moore 01fd5dcd1a Cleanup changelog for 1.12
Sort entries in each section
Removed duplicate entries
Grouped notes on documentation tools

R=sethladd@google.com

Review URL: https://codereview.chromium.org//1298053004 .
2015-08-18 15:56:42 -07:00
Seth Ladd c2d49794ff changelog updates for dartdoc
BUG=
R=kevmoo@google.com

Review URL: https://codereview.chromium.org//1300963003 .
2015-08-18 15:30:30 -07:00
Lasse R.H. Nielsen 2d38e15b82 Document errorsAreFatal, onExit, onError in Changelog
Fixes issue 23884

R=sgjesse@google.com

Review URL: https://codereview.chromium.org//1299513003 .
2015-08-18 09:44:48 +02:00
Seth Ladd e6423fa5eb tweak CHANGELOG
BUG=
R=kevmoo@google.com

Review URL: https://codereview.chromium.org//1295233002 .
2015-08-17 16:30:20 -07:00
Seth Ladd ec730f64c7 changelog for observatory
BUG=
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org//1300693003 .
2015-08-17 15:25:57 -07:00
Natalie Weizenbaum 7c06881680 Bring in the latest Pub.
R=rnystrom@google.com

Review URL: https://codereview.chromium.org//1293473003 .
2015-08-14 15:27:22 -07:00
Ryan Macnak 954d6cac0f API bookkeeping.
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org//1288923003 .
2015-08-14 10:37:48 -07:00
Lasse R.H. Nielsen 67ff13a437 Add StreamController getters to changelog.
R=sgjesse@google.com

Review URL: https://codereview.chromium.org//1289813002 .
2015-08-12 14:26:37 +02:00
Lasse R.H. Nielsen edff0face7 Make String.allMatches lazy.
R=floitsch@google.com, iposva@google.com

Review URL: https://codereview.chromium.org//1273713003 .
2015-08-12 11:01:21 +02:00
Michael Thomsen 5046443f93 Fixed typo in link in CHANGELOG
Closes https://github.com/dart-lang/sdk/issues/24042

BUG=24042
R=ricow@google.com

Review URL: https://codereview.chromium.org//1291433002 .
2015-08-11 15:18:49 +02:00
Lasse R.H. Nielsen 90643a7ef7 Make HttpClient not send fragments as part of request.
Make HttpServer ignore fragments sent in requests (which are invalid HTTP request syntax).

Add `removeFragment` method to Uri.

R=sgjesse@google.com

Review URL: https://codereview.chromium.org//1281973004 .
2015-08-10 12:18:12 +02:00
Lasse R.H. Nielsen 0a35f7be3b Update Changelog.
Fix various typos and style nits.

BUG=23961
R=sgjesse@google.com

Review URL: https://codereview.chromium.org//1272593002 .
2015-08-05 12:58:30 +02:00
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