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

Issue 18024004: Bugfix in DOM bindings: canonicalize URLs even if no ApplicationLoader is available (Closed)

Created:
7 years, 5 months ago by kustermann
Modified:
7 years, 5 months ago
Reviewers:
vsm, siva, Ivan Posva
CC:
reviews_dartlang.org
Base URL:
http://src.chromium.org/multivm/trunk/webkit/Source/bindings/dart
Visibility:
Public.

Description

Bugfix in DOM bindings: canonicalize URLs even if no ApplicationLoader is available When a dart application calls spawnUri, the DartVM will ask the embedder (in this case the DOM bindings) to canonicalize a URL. This is independent of script loading functionality but required so far an instance of ApplicationLoader. BUG=http://dartbug.com/11656 R=asiva@google.com, vsm@google.com Committed: https://code.google.com/p/dart/source/detail?r=1297

Patch Set 1 #

Total comments: 9

Patch Set 2 : #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -25 lines) Patch
M DartApplicationLoader.h View 1 1 chunk +3 lines, -2 lines 4 comments Download
M DartApplicationLoader.cpp View 1 1 chunk +42 lines, -23 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
kustermann
We were just lucky that we didn't hit this issue in release mode. (Reason: if ...
7 years, 5 months ago (2013-07-10 13:49:06 UTC) #1
kustermann
https://codereview.chromium.org/18024004/diff/1/DartApplicationLoader.cpp File DartApplicationLoader.cpp (left): https://codereview.chromium.org/18024004/diff/1/DartApplicationLoader.cpp#oldcode90 DartApplicationLoader.cpp:90: return DartDOMData::current()->applicationLoader()->libraryTagHandler(tag, library, urlHandle); (Sidenote: AFAIK the styleguide allows ...
7 years, 5 months ago (2013-07-10 13:50:38 UTC) #2
siva
https://codereview.chromium.org/18024004/diff/1/DartApplicationLoader.cpp File DartApplicationLoader.cpp (right): https://codereview.chromium.org/18024004/diff/1/DartApplicationLoader.cpp#newcode95 DartApplicationLoader.cpp:95: String libraryURL = DartUtilities::toString(libraryURLHandle); Why does this library to ...
7 years, 5 months ago (2013-07-10 18:10:26 UTC) #3
siva
Adding Vijay to the review list
7 years, 5 months ago (2013-07-10 18:10:54 UTC) #4
vsm
On 2013/07/10 18:10:54, siva wrote: > Adding Vijay to the review list Martin - can ...
7 years, 5 months ago (2013-07-10 19:11:31 UTC) #5
kustermann
PTAL > Martin - can you add a test / explain how this situation arises? ...
7 years, 5 months ago (2013-07-11 12:34:11 UTC) #6
vsm
lgtm Thanks for the explanation!
7 years, 5 months ago (2013-07-12 00:48:22 UTC) #7
siva
lgtm https://codereview.chromium.org/18024004/diff/12001/DartApplicationLoader.h File DartApplicationLoader.h (right): https://codereview.chromium.org/18024004/diff/12001/DartApplicationLoader.h#newcode70 DartApplicationLoader.h:70: static Dart_Handle libraryTagHandlerCallback(Dart_LibraryTag, Dart_Handle library, Dart_Handle urlHandle); Dart_LibraryTag ...
7 years, 5 months ago (2013-07-12 01:05:44 UTC) #8
kustermann
Thank you for the review. https://codereview.chromium.org/18024004/diff/12001/DartApplicationLoader.h File DartApplicationLoader.h (right): https://codereview.chromium.org/18024004/diff/12001/DartApplicationLoader.h#newcode70 DartApplicationLoader.h:70: static Dart_Handle libraryTagHandlerCallback(Dart_LibraryTag, Dart_Handle ...
7 years, 5 months ago (2013-07-12 16:02:21 UTC) #9
kustermann
Committed patchset #2 manually as r1297 (presubmit successful).
7 years, 5 months ago (2013-07-12 16:28:03 UTC) #10
siva
7 years, 5 months ago (2013-07-12 16:58:09 UTC) #11
Message was sent while issue was closed.
https://codereview.chromium.org/18024004/diff/12001/DartApplicationLoader.h
File DartApplicationLoader.h (right):

https://codereview.chromium.org/18024004/diff/12001/DartApplicationLoader.h#n...
DartApplicationLoader.h:70: static Dart_Handle
libraryTagHandlerCallback(Dart_LibraryTag, Dart_Handle library, Dart_Handle
urlHandle);
That is a very weird style guideline. Thanks for the explanation..

On 2013/07/12 16:02:21, kustermann wrote:
> On 2013/07/12 01:05:44, siva wrote:
> > Dart_LibraryTag tag,
> 
> I didn't want to remove it, but I had a hard time arguing with the webkit
style
> checker:
> 
> $ ./Tools/Scripts/check-webkit-style 
> Source/bindings/dart/DartApplicationLoader.h:70:  The parameter name "tag"
adds
> no information, so it should be removed.  [readability/parameter_name] [5]
> Source/bindings/dart/DartApplicationLoader.h:72:  The parameter name "tag"
adds
> no information, so it should be removed.  [readability/parameter_name] [5]
> 
> I think it outputs this warning if the name of the parameter is a substring of
> the typename -- or something similar.
> 
> To keep the files free of style warnings, I'll let it as it is now.

Powered by Google App Engine
This is Rietveld 408576698