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

Issue 10832092: Added origin property to Uri class Added unit test coverage for origin property (Closed)

Created:
8 years, 4 months ago by aam-me
Modified:
8 years, 4 months ago
Reviewers:
ahe, Cris Neckar
CC:
reviews_dartlang.org, cdn1
Visibility:
Public.

Description

Added origin property to Uri class Added unit test coverage for origin property BUG=dart:4232 TEST=uri_test Committed: https://code.google.com/p/dart/source/detail?r=11124

Patch Set 1 #

Patch Set 2 : Adjusted line width to be under 80 characters #

Patch Set 3 : Error out on non-http/https schemes #

Total comments: 5

Patch Set 4 : Validate scheme, domain. TODO in place for IllegalArgumentException->StateException. Use Expect.thr… #

Total comments: 5

Patch Set 5 : Fixed comments, removed redundant toString, fixed tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -0 lines) Patch
M lib/uri/uri.dart View 1 2 3 4 1 chunk +32 lines, -0 lines 0 comments Download
M tests/utils/uri_test.dart View 1 2 3 4 1 chunk +40 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
ahe
This Origin business looks a bit more tricky than I expected. I'm trying to find ...
8 years, 4 months ago (2012-08-02 17:07:54 UTC) #1
gram
On 2012/08/02 17:07:54, ahe wrote: > This Origin business looks a bit more tricky than ...
8 years, 4 months ago (2012-08-02 17:19:26 UTC) #2
Cris Neckar
What is the intended use case for this? I don't have enough context. Is this ...
8 years, 4 months ago (2012-08-02 19:39:34 UTC) #3
ahe
Hi Cris, Thank you for taking a look! On 2012/08/02 19:39:34, Cris Neckar wrote: > ...
8 years, 4 months ago (2012-08-02 19:46:35 UTC) #4
Cris Neckar
> The method (aka getter in this case) is similar to WebKit's > window.location.origin property. ...
8 years, 4 months ago (2012-08-02 20:14:32 UTC) #5
ahe
Hi Cris, I feared you would say something like that. So I'm wondering if there ...
8 years, 4 months ago (2012-08-02 20:24:51 UTC) #6
Cris Neckar
On 2012/08/02 20:24:51, ahe wrote: > Hi Cris, > > I feared you would say ...
8 years, 4 months ago (2012-08-02 20:30:27 UTC) #7
ahe
On 2012/08/02 20:30:27, Cris Neckar wrote: > Yeah I don't have an issue with this ...
8 years, 4 months ago (2012-08-02 20:37:03 UTC) #8
Cris Neckar
On 2012/08/02 20:37:03, ahe wrote: > On 2012/08/02 20:30:27, Cris Neckar wrote: > > Yeah ...
8 years, 4 months ago (2012-08-02 20:50:22 UTC) #9
ahe
Thank you, Cris! Alexander, are you up for changing this to be good enough for ...
8 years, 4 months ago (2012-08-02 20:56:06 UTC) #10
Jennifer Messerly
On 2012/08/02 20:56:06, ahe wrote: > Thank you, Cris! > > Alexander, are you up ...
8 years, 4 months ago (2012-08-02 21:13:09 UTC) #11
Cris Neckar
> Do we ultimately need something like WebCore SecurityOrigin? Yes, best case we would just ...
8 years, 4 months ago (2012-08-02 21:14:14 UTC) #12
aam-me
> > Do we ultimately need something like WebCore SecurityOrigin? > Yes, best case we ...
8 years, 4 months ago (2012-08-03 12:45:00 UTC) #13
Cris Neckar
I believe that the literal "null" is a handled condition which loosely means that the ...
8 years, 4 months ago (2012-08-06 20:08:31 UTC) #14
aam-me
On 2012/08/06 20:08:31, Cris Neckar wrote: > > That being said, I am fine with ...
8 years, 4 months ago (2012-08-07 01:40:04 UTC) #15
Cris Neckar
LGTM from a security perspective. Someone else can give you a code review.
8 years, 4 months ago (2012-08-07 05:29:35 UTC) #16
ahe
https://chromiumcodereview.appspot.com/10832092/diff/4003/lib/uri/uri.dart File lib/uri/uri.dart (right): https://chromiumcodereview.appspot.com/10832092/diff/4003/lib/uri/uri.dart#newcode175 lib/uri/uri.dart:175: String get origin() { Please add something like: if ...
8 years, 4 months ago (2012-08-07 06:32:36 UTC) #17
aam-me
Thank you, Peter, for the review. I updated the patch accordingly. Please, let me know ...
8 years, 4 months ago (2012-08-07 12:28:46 UTC) #18
ahe
LGTM. Sorry for dropping this. It got buried in my inbox. I'm still working my ...
8 years, 4 months ago (2012-08-21 20:36:28 UTC) #19
aam-me
Peter, thanks for the comments. Everything should be addressed now.
8 years, 4 months ago (2012-08-22 04:25:59 UTC) #20
ahe
8 years, 4 months ago (2012-08-22 06:25:42 UTC) #21
LGTM. I'll submit it on your behalf.

Powered by Google App Engine
This is Rietveld 408576698