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

Issue 11308170: Deal with extension loading from packages. (Closed)

Created:
8 years ago by Mads Ager (google)
Modified:
8 years ago
Reviewers:
Bill Hesse
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Deal with extension loading from packages. The issue is bad interplay with package and dart-ext URIs. dart-ext URIs overwrite the package URI which makes us lose the package URI path components. This change resolves all the way to a file path for dart-ext URIs if the base URI is a package URI. R=whesse@google.com BUG=dartbug.com/6264 Committed: https://code.google.com/p/dart/source/detail?r=15272

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix null checks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -6 lines) Patch
M runtime/bin/builtin.dart View 1 chunk +10 lines, -2 lines 0 comments Download
M runtime/bin/extensions.cc View 1 1 chunk +5 lines, -4 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Mads Ager (google)
8 years ago (2012-11-22 14:39:18 UTC) #1
Bill Hesse
LGTM. https://codereview.chromium.org/11308170/diff/1/runtime/bin/extensions.cc File runtime/bin/extensions.cc (right): https://codereview.chromium.org/11308170/diff/1/runtime/bin/extensions.cc#newcode18 runtime/bin/extensions.cc:18: Do we really want unchecked malloc (strdup) to ...
8 years ago (2012-11-22 16:18:41 UTC) #2
Mads Ager (google)
8 years ago (2012-11-23 07:07:39 UTC) #3
Message was sent while issue was closed.
https://codereview.chromium.org/11308170/diff/1/runtime/bin/extensions.cc
File runtime/bin/extensions.cc (right):

https://codereview.chromium.org/11308170/diff/1/runtime/bin/extensions.cc#new...
runtime/bin/extensions.cc:18: 
On 2012/11/22 16:18:41, Bill Hesse wrote:
> Do we really want unchecked malloc (strdup) to go ahead to a null pointer
error?
>  Is that the accepted failure for out of C++ heap memory?

It would be nicer to deal with it although in general there is little you can do
if a strdup of a short string fails. In that case the next step will probably
fail as well so crashing in a controlled way is usually they best you can do.
I'll restore the null pointer check in this particular case.

Powered by Google App Engine
This is Rietveld 408576698