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

Issue 352093003: Try to retain original structure of URI. (Closed)

Created:
6 years, 6 months ago by Lasse Reichstein Nielsen
Modified:
6 years, 5 months ago
CC:
reviews_dartlang.org, ahe
Visibility:
Public.

Description

Try to retain original structure of URI. This changes URI.parse to retain empty autorities, queries and fragments. That is: `Uri.parse("foo:///x?#")` will give a Uri with toString "foo:///x?#", as opposed to the previous "foo:/". It also makes a difference between passing "" and null to the Uri constructor. We still omit empty user-info and default port values from the toString. R=ajohnsen@google.com BUG= http://dartbug.com/2216 Committed: https://code.google.com/p/dart/source/detail?r=37690 Committed: https://code.google.com/p/dart/source/detail?r=37728

Patch Set 1 #

Total comments: 10

Patch Set 2 : Address comments. #

Patch Set 3 : Merge to head. #

Patch Set 4 : Remove extra merge line. #

Patch Set 5 : Add co19 issue number #

Patch Set 6 : Fix _userInfo ending up null in some cases. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+231 lines, -142 lines) Patch
M sdk/lib/core/uri.dart View 1 2 3 4 5 26 chunks +211 lines, -132 lines 0 comments Download
M tests/co19/co19-co19.status View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M tests/corelib/uri_http_test.dart View 2 chunks +4 lines, -4 lines 0 comments Download
M tests/corelib/uri_query_test.dart View 1 chunk +1 line, -5 lines 0 comments Download
M tests/corelib/uri_test.dart View 2 chunks +12 lines, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
Lasse Reichstein Nielsen
6 years, 6 months ago (2014-06-25 08:08:45 UTC) #1
Anders Johnsen
lgtm, I like it. Less magic :) https://codereview.chromium.org/352093003/diff/1/sdk/lib/core/uri.dart File sdk/lib/core/uri.dart (right): https://codereview.chromium.org/352093003/diff/1/sdk/lib/core/uri.dart#newcode57 sdk/lib/core/uri.dart:57: * The ...
6 years, 6 months ago (2014-06-25 09:18:01 UTC) #2
Lasse Reichstein Nielsen
https://codereview.chromium.org/352093003/diff/1/sdk/lib/core/uri.dart File sdk/lib/core/uri.dart (right): https://codereview.chromium.org/352093003/diff/1/sdk/lib/core/uri.dart#newcode57 sdk/lib/core/uri.dart:57: * The value is always non-null. True, I don't ...
6 years, 6 months ago (2014-06-25 10:49:18 UTC) #3
Lasse Reichstein Nielsen
Committed patchset #5 manually as r37690 (presubmit successful).
6 years, 6 months ago (2014-06-25 11:16:48 UTC) #4
Lasse Reichstein Nielsen
Reverted - breaks dart2js in interesting ways.
6 years, 6 months ago (2014-06-25 11:57:42 UTC) #5
Lasse Reichstein Nielsen
dart2js breakage fixed. PTAL.
6 years, 6 months ago (2014-06-25 13:33:21 UTC) #6
Anders Johnsen
lgtm
6 years, 6 months ago (2014-06-26 08:19:02 UTC) #7
Lasse Reichstein Nielsen
6 years, 6 months ago (2014-06-26 09:41:39 UTC) #8
Message was sent while issue was closed.
Committed patchset #6 manually as r37728 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698