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

Issue 6813070: Add cross-origin loading of NEXEs for MIME type handlers (Closed)

Created:
9 years, 8 months ago by abarth-chromium
Modified:
9 years, 7 months ago
CC:
native-client-reviews_googlegroups.com
Base URL:
http://src.chromium.org/native_client/trunk/src/native_client/
Visibility:
Public.

Description

Add cross-origin loading of NEXEs for MIME type handlers We only load NEXEs across origins when rendering non-NaCl MIME types and when the NEXE is stored in a Chrome extension. That limits this privilege to only being used when the NEXE is being used as a MIME handler for another MIME type (e.g., application/pdf). Committed: http://src.chromium.org/viewvc/native_client?view=rev&revision=4899

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 7

Patch Set 4 : Now with tests. #

Patch Set 5 : '' #

Total comments: 3

Patch Set 6 : '' #

Total comments: 1

Patch Set 7 : '' #

Patch Set 8 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -4 lines) Patch
M src/trusted/plugin/ppapi/file_downloader.h View 1 2 3 3 chunks +4 lines, -2 lines 0 comments Download
M src/trusted/plugin/ppapi/file_downloader.cc View 1 2 3 4 5 3 chunks +20 lines, -2 lines 0 comments Download
M src/trusted/plugin/ppapi/plugin_ppapi.h View 1 2 3 4 5 2 chunks +11 lines, -0 lines 0 comments Download
M src/trusted/plugin/ppapi/plugin_ppapi.cc View 1 2 3 4 5 3 chunks +9 lines, -0 lines 0 comments Download
M tests/ppapi_bad/ppapi_bad.html View 1 2 3 4 5 6 7 2 chunks +61 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
abarth-chromium
9 years, 8 months ago (2011-04-09 21:43:00 UTC) #1
bbudge-google
Added Polina, because she's the owner of this code.
9 years, 8 months ago (2011-04-10 12:33:19 UTC) #2
bbudge-google
Otherwise, LGTM.
9 years, 8 months ago (2011-04-10 12:37:53 UTC) #3
polina
Just to document what we talked about today. We have agreed that we won't be ...
9 years, 8 months ago (2011-04-13 07:01:27 UTC) #4
abarth-chromium
Yep. The main question is how the NaCl plugin should know that we're dealing with ...
9 years, 8 months ago (2011-04-13 07:10:40 UTC) #5
abarth-chromium
This is now the last code change blocking the NaCl PDF renderer initial dogfood.
9 years, 8 months ago (2011-04-14 16:50:09 UTC) #6
abarth-chromium
Polina, would you be willing to take another look? I've limited the access request to ...
9 years, 8 months ago (2011-04-14 18:59:41 UTC) #7
Brad Chen
I know this morning Polina is tied up with a meeting, a mentoring thing. I ...
9 years, 8 months ago (2011-04-14 19:36:33 UTC) #8
polina
The approach makes sense. What happens if somebody includes type twice? What happens if somebody ...
9 years, 8 months ago (2011-04-15 06:24:57 UTC) #9
abarth-chromium
Thanks for the review. > The approach makes sense. What happens if somebody includes type ...
9 years, 8 months ago (2011-04-15 06:36:40 UTC) #10
abarth-chromium
Patch updated. I don't fully understand the test I modified, but hopefully I didn't screw ...
9 years, 8 months ago (2011-04-15 07:54:01 UTC) #11
polina
thanks for adding the test! http://codereview.chromium.org/6813070/diff/10002/src/trusted/plugin/ppapi/plugin_ppapi.cc File src/trusted/plugin/ppapi/plugin_ppapi.cc (right): http://codereview.chromium.org/6813070/diff/10002/src/trusted/plugin/ppapi/plugin_ppapi.cc#newcode71 src/trusted/plugin/ppapi/plugin_ppapi.cc:71: const char* const kNaClMIMEType ...
9 years, 8 months ago (2011-04-15 22:52:10 UTC) #12
abarth-chromium
Thanks for the review. Patch updated. On 2011/04/15 22:52:10, polina wrote: > thanks for adding ...
9 years, 8 months ago (2011-04-15 23:08:52 UTC) #13
polina
http://codereview.chromium.org/6813070/diff/18003/tests/ppapi_bad/ppapi_bad.html File tests/ppapi_bad/ppapi_bad.html (right): http://codereview.chromium.org/6813070/diff/18003/tests/ppapi_bad/ppapi_bad.html#newcode29 tests/ppapi_bad/ppapi_bad.html:29: been registered as handling the PDF MIME type.)<br> I ...
9 years, 8 months ago (2011-04-15 23:16:17 UTC) #14
polina
9 years, 8 months ago (2011-04-15 23:16:36 UTC) #15
LGTM

(after comment fix/clarification)

Powered by Google App Engine
This is Rietveld 408576698