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

Issue 280393003: Blobs: Catching browser-process created Blobs in extension code. (Closed)

Created:
6 years, 7 months ago by tommycli
Modified:
6 years, 6 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

Blobs: Catching browser-process created Blobs in extension code. This is a spinoff of https://codereview.chromium.org/266373006/, Patchset 11. BUG=304290 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274268

Patch Set 1 #

Patch Set 2 : update to upstream #

Total comments: 4

Patch Set 3 : #

Total comments: 6

Patch Set 4 : add a dcheck for !ContainsUUID #

Patch Set 5 : Kill RenderProcessHost on a bad UUID. #

Total comments: 2

Patch Set 6 : Fix ContainsBlobHandle. #

Patch Set 7 : add blob dropping for top-level navigation #

Patch Set 8 : revert patchset 7 #

Patch Set 9 : Use control message in dispatcher to guarantee blob release. #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : clear out some stray includes #

Total comments: 4

Patch Set 13 : make blob_holder a user data of renderprocesshost #

Patch Set 14 : #

Patch Set 15 : run git cl format #

Total comments: 4

Patch Set 16 : use multimap<string, linked_ptr<BlobHandle> > to solve complexity issue #

Total comments: 5

Patch Set 17 : change style #

Patch Set 18 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+242 lines, -7 lines) Patch
A extensions/browser/blob_holder.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +62 lines, -0 lines 0 comments Download
A extensions/browser/blob_holder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +85 lines, -0 lines 0 comments Download
M extensions/browser/extension_function.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +14 lines, -0 lines 0 comments Download
M extensions/browser/extension_function.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +28 lines, -7 lines 0 comments Download
M extensions/browser/extension_message_filter.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -0 lines 0 comments Download
M extensions/browser/extension_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +12 lines, -0 lines 0 comments Download
M extensions/common/extension_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +12 lines, -0 lines 0 comments Download
M extensions/extensions.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/renderer/blob_native_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +19 lines, -0 lines 0 comments Download
M extensions/renderer/dispatcher.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M extensions/renderer/dispatcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
tommycli
yoz: ping. This is the spinoff patch of https://codereview.chromium.org/250143002/ Thanks!
6 years, 7 months ago (2014-05-19 16:12:31 UTC) #1
Yoyo Zhou
LGTM https://chromiumcodereview.appspot.com/280393003/diff/20001/extensions/renderer/blob_native_handler.cc File extensions/renderer/blob_native_handler.cc (right): https://chromiumcodereview.appspot.com/280393003/diff/20001/extensions/renderer/blob_native_handler.cc#newcode25 extensions/renderer/blob_native_handler.cc:25: // Take ownership of a Blob created on ...
6 years, 7 months ago (2014-05-19 22:23:48 UTC) #2
tommycli
https://codereview.chromium.org/280393003/diff/20001/extensions/renderer/blob_native_handler.cc File extensions/renderer/blob_native_handler.cc (right): https://codereview.chromium.org/280393003/diff/20001/extensions/renderer/blob_native_handler.cc#newcode25 extensions/renderer/blob_native_handler.cc:25: // Take ownership of a Blob created on the ...
6 years, 7 months ago (2014-05-19 23:02:09 UTC) #3
tommycli
tsepez: Need a security review of extension_messages.h. Also need a review of the general concept ...
6 years, 7 months ago (2014-05-19 23:03:57 UTC) #4
Tom Sepez
The messages themselves seem OK, but can you fill me in a bit more on ...
6 years, 7 months ago (2014-05-19 23:41:37 UTC) #5
tommycli
tsepez: Sure. This is the first patch that will use the new capabilities: https://codereview.chromium.org/250143002 Lines ...
6 years, 7 months ago (2014-05-20 00:04:10 UTC) #6
Tom Sepez
On 2014/05/20 00:04:10, tommycli wrote: > tsepez: > > Sure. This is the first patch ...
6 years, 7 months ago (2014-05-20 16:22:51 UTC) #7
tommycli
tsepez: addressed your comments below https://codereview.chromium.org/280393003/diff/40001/chrome/browser/extensions/blob_holder.cc File chrome/browser/extensions/blob_holder.cc (right): https://codereview.chromium.org/280393003/diff/40001/chrome/browser/extensions/blob_holder.cc#newcode32 chrome/browser/extensions/blob_holder.cc:32: held_blobs_.push_back(new BlobHolderData(render_view_host, blob.release())); On ...
6 years, 7 months ago (2014-05-20 18:22:42 UTC) #8
Tom Sepez
lgtm
6 years, 7 months ago (2014-05-20 18:24:23 UTC) #9
michaeln
https://codereview.chromium.org/280393003/diff/80001/chrome/browser/extensions/blob_holder.cc File chrome/browser/extensions/blob_holder.cc (right): https://codereview.chromium.org/280393003/diff/80001/chrome/browser/extensions/blob_holder.cc#newcode33 chrome/browser/extensions/blob_holder.cc:33: DCHECK(!ContainsUUID(blob->GetUUID())); wait, this isn't correct. there can be multiple ...
6 years, 7 months ago (2014-05-20 19:08:19 UTC) #10
tommycli
michaeln: Fixed the duplicate UUID thing. Also see patchset 7 for what it might look ...
6 years, 7 months ago (2014-05-20 19:49:05 UTC) #11
tommycli
michaeln: This patch uses control messages to guarantee Blob release. Let me know what you ...
6 years, 7 months ago (2014-05-22 17:03:17 UTC) #12
michaeln
renderer side looks pretty good https://codereview.chromium.org/280393003/diff/200001/chrome/browser/extensions/blob_holder.h File chrome/browser/extensions/blob_holder.h (right): https://codereview.chromium.org/280393003/diff/200001/chrome/browser/extensions/blob_holder.h#newcode22 chrome/browser/extensions/blob_holder.h:22: public content::WebContentsUserData<BlobHolder> { Since ...
6 years, 7 months ago (2014-05-23 00:12:34 UTC) #13
tommycli
michaeln: Addressed your comments below. I think we're very close. I'm on vacation all next ...
6 years, 7 months ago (2014-05-23 16:27:44 UTC) #14
tommycli
yoz: Do you have any comments regarding the extensions/ changes that have occurred since your ...
6 years, 7 months ago (2014-05-23 16:31:25 UTC) #15
michaeln
both sides lgtm, i have a couple comments but i'll leave it to you and ...
6 years, 7 months ago (2014-05-23 17:31:35 UTC) #16
tommycli
https://codereview.chromium.org/280393003/diff/260001/extensions/browser/blob_holder.cc File extensions/browser/blob_holder.cc (right): https://codereview.chromium.org/280393003/diff/260001/extensions/browser/blob_holder.cc#newcode42 extensions/browser/blob_holder.cc:42: DCHECK(!ContainsBlobHandle(blob.get())); On 2014/05/23 17:31:36, michaeln wrote: > might be ...
6 years, 7 months ago (2014-05-23 18:48:38 UTC) #17
Yoyo Zhou
https://chromiumcodereview.appspot.com/280393003/diff/300012/extensions/browser/blob_holder.cc File extensions/browser/blob_holder.cc (right): https://chromiumcodereview.appspot.com/280393003/diff/300012/extensions/browser/blob_holder.cc#newcode77 extensions/browser/blob_holder.cc:77: continue; nit: why not just use an if/else here ...
6 years, 7 months ago (2014-05-23 22:14:00 UTC) #18
michaeln
https://chromiumcodereview.appspot.com/280393003/diff/300012/extensions/browser/blob_holder.h File extensions/browser/blob_holder.h (right): https://chromiumcodereview.appspot.com/280393003/diff/300012/extensions/browser/blob_holder.h#newcode37 extensions/browser/blob_holder.h:37: typedef std::multimap<std::string, linked_ptr<content::BlobHandle> > On 2014/05/23 22:14:00, Yoyo Zhou ...
6 years, 7 months ago (2014-05-23 23:49:41 UTC) #19
tommycli
yoz: addressed your comments https://codereview.chromium.org/280393003/diff/300012/extensions/browser/blob_holder.cc File extensions/browser/blob_holder.cc (right): https://codereview.chromium.org/280393003/diff/300012/extensions/browser/blob_holder.cc#newcode77 extensions/browser/blob_holder.cc:77: continue; On 2014/05/23 22:14:00, Yoyo ...
6 years, 7 months ago (2014-05-23 23:52:47 UTC) #20
Yoyo Zhou
On 2014/05/23 23:52:47, tommycli wrote: > yoz: addressed your comments > > https://codereview.chromium.org/280393003/diff/300012/extensions/browser/blob_holder.cc > File ...
6 years, 7 months ago (2014-05-24 00:03:39 UTC) #21
tommycli
tsepez: I should give you a chance to look at the revised extension_messages.h again. If ...
6 years, 7 months ago (2014-05-24 03:10:11 UTC) #22
tommycli
michaeln, yoz: Thanks for all your help on this patch.
6 years, 7 months ago (2014-05-24 03:19:26 UTC) #23
Tom Sepez
Messages LGTM.
6 years, 6 months ago (2014-05-27 18:15:33 UTC) #24
tommycli
The CQ bit was checked by tommycli@chromium.org
6 years, 6 months ago (2014-06-02 16:13:25 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommycli@chromium.org/280393003/340001
6 years, 6 months ago (2014-06-02 16:13:42 UTC) #26
commit-bot: I haz the power
6 years, 6 months ago (2014-06-02 17:28:13 UTC) #27
Message was sent while issue was closed.
Change committed as 274268

Powered by Google App Engine
This is Rietveld 408576698