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

Issue 7046091: Fix problems with PPB_URLLoader_Impl and PPAPITests.URLLoader. (Closed)

Created:
9 years, 6 months ago by bbudge
Modified:
9 years, 6 months ago
CC:
chromium-reviews, darin-cc_chromium.org
Visibility:
Public.

Description

Patch to fix problems with PPB_URLLoader_Impl and PPAPITests.URLLoader. The cross-origin test doesn't properly check for an error, and the custom-referrer change broke cross-origin requests as a result. Also, there was confusion with some errors being reported as PP_ERROR_FAILED and others as PP_ERROR_NOACCESS. After conversations with WebKit folks, it seems unlikely that a consistent system of error codes can be added, so instead, have PPB_URLLoader_Impl::didFail report PP_ERROR_NOACCESS for unknown error domains (WebKit) and switch on net::kErrorDomain errors from our lower level WebURLLoader.

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 1

Patch Set 4 : '' #

Total comments: 3

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 6

Patch Set 7 : '' #

Patch Set 8 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -15 lines) Patch
A ppapi/tests/test_case.html.mock-http-headers View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M ppapi/tests/test_url_loader.cc View 1 2 3 4 5 6 7 3 chunks +17 lines, -3 lines 0 comments Download
M webkit/plugins/ppapi/ppb_url_loader_impl.cc View 1 2 3 4 5 6 7 5 chunks +25 lines, -10 lines 0 comments Download
M webkit/plugins/ppapi/ppb_url_request_info_impl.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
bbudge
9 years, 6 months ago (2011-06-10 20:11:17 UTC) #1
jam
i'm really not that familiar with this code, so I'm not a good reviewer
9 years, 6 months ago (2011-06-10 20:14:24 UTC) #2
bbudge
9 years, 6 months ago (2011-06-10 21:57:05 UTC) #3
bbudge
9 years, 6 months ago (2011-06-10 22:06:36 UTC) #4
bbudge
Link to WebKit discussion: https://bugs.webkit.org/show_bug.cgi?id=61920
9 years, 6 months ago (2011-06-10 22:09:20 UTC) #5
darin (slow to review)
http://codereview.chromium.org/7046091/diff/1013/webkit/plugins/ppapi/ppb_url_loader_impl.cc File webkit/plugins/ppapi/ppb_url_loader_impl.cc (right): http://codereview.chromium.org/7046091/diff/1013/webkit/plugins/ppapi/ppb_url_loader_impl.cc#newcode481 webkit/plugins/ppapi/ppb_url_loader_impl.cc:481: done_status_ = PP_ERROR_NOACCESS; Well, the error codes actually are ...
9 years, 6 months ago (2011-06-11 05:13:12 UTC) #6
bbudge
On 2011/06/11 05:13:12, darin wrote: > http://codereview.chromium.org/7046091/diff/1013/webkit/plugins/ppapi/ppb_url_loader_impl.cc > File webkit/plugins/ppapi/ppb_url_loader_impl.cc (right): > > http://codereview.chromium.org/7046091/diff/1013/webkit/plugins/ppapi/ppb_url_loader_impl.cc#newcode481 > ...
9 years, 6 months ago (2011-06-11 05:21:44 UTC) #7
darin (slow to review)
On Fri, Jun 10, 2011 at 10:21 PM, <bbudge@chromium.org> wrote: > On 2011/06/11 05:13:12, darin ...
9 years, 6 months ago (2011-06-11 05:33:30 UTC) #8
bbudge
Thanks for the suggestion about net::kErrorDomain. > > Another issue that came up is that ...
9 years, 6 months ago (2011-06-13 18:33:08 UTC) #9
darin (slow to review)
On Mon, Jun 13, 2011 at 11:33 AM, <bbudge@chromium.org> wrote: > Thanks for the suggestion ...
9 years, 6 months ago (2011-06-13 21:38:44 UTC) #10
polina
http://codereview.chromium.org/7046091/diff/9001/webkit/plugins/ppapi/ppb_url_loader_impl.cc File webkit/plugins/ppapi/ppb_url_loader_impl.cc (right): http://codereview.chromium.org/7046091/diff/9001/webkit/plugins/ppapi/ppb_url_loader_impl.cc#newcode252 webkit/plugins/ppapi/ppb_url_loader_impl.cc:252: return PP_ERROR_BADARGUMENT; have you considered changing this to PP_ERROR_NOACCESS ...
9 years, 6 months ago (2011-06-14 07:53:28 UTC) #11
bbudge
http://codereview.chromium.org/7046091/diff/9001/webkit/plugins/ppapi/ppb_url_loader_impl.cc File webkit/plugins/ppapi/ppb_url_loader_impl.cc (right): http://codereview.chromium.org/7046091/diff/9001/webkit/plugins/ppapi/ppb_url_loader_impl.cc#newcode252 webkit/plugins/ppapi/ppb_url_loader_impl.cc:252: return PP_ERROR_BADARGUMENT; On 2011/06/14 07:53:28, polina wrote: > have ...
9 years, 6 months ago (2011-06-15 20:26:19 UTC) #12
polina
http://codereview.chromium.org/7046091/diff/9001/webkit/plugins/ppapi/ppb_url_loader_impl.cc File webkit/plugins/ppapi/ppb_url_loader_impl.cc (right): http://codereview.chromium.org/7046091/diff/9001/webkit/plugins/ppapi/ppb_url_loader_impl.cc#newcode252 webkit/plugins/ppapi/ppb_url_loader_impl.cc:252: return PP_ERROR_BADARGUMENT; On 2011/06/15 20:26:20, bbudge1 wrote: > On ...
9 years, 6 months ago (2011-06-15 22:46:34 UTC) #13
bbudge
It turns out to be easier to get a cross-origin URL for the test document ...
9 years, 6 months ago (2011-06-15 22:52:36 UTC) #14
bbudge
http://codereview.chromium.org/7046091/diff/21001/webkit/plugins/ppapi/ppb_url_loader_impl.cc File webkit/plugins/ppapi/ppb_url_loader_impl.cc (right): http://codereview.chromium.org/7046091/diff/21001/webkit/plugins/ppapi/ppb_url_loader_impl.cc#newcode252 webkit/plugins/ppapi/ppb_url_loader_impl.cc:252: return PP_ERROR_BADARGUMENT; I'm going to change this to PP_ERROR_NOACCESS ...
9 years, 6 months ago (2011-06-15 22:56:56 UTC) #15
darin (slow to review)
http://codereview.chromium.org/7046091/diff/21001/ppapi/tests/test_url_loader.cc File ppapi/tests/test_url_loader.cc (right): http://codereview.chromium.org/7046091/diff/21001/ppapi/tests/test_url_loader.cc#newcode284 ppapi/tests/test_url_loader.cc:284: std::string cross_origin_url = document_url.replace( you might want to assert ...
9 years, 6 months ago (2011-06-15 23:00:20 UTC) #16
bbudge
http://codereview.chromium.org/7046091/diff/21001/ppapi/tests/test_url_loader.cc File ppapi/tests/test_url_loader.cc (right): http://codereview.chromium.org/7046091/diff/21001/ppapi/tests/test_url_loader.cc#newcode284 ppapi/tests/test_url_loader.cc:284: std::string cross_origin_url = document_url.replace( On 2011/06/15 23:00:20, darin wrote: ...
9 years, 6 months ago (2011-06-15 23:50:21 UTC) #17
darin (slow to review)
LGTM
9 years, 6 months ago (2011-06-16 05:15:29 UTC) #18
bbudge
9 years, 6 months ago (2011-06-16 14:15:15 UTC) #19
commit-bot: I haz the power
Try job failure for 7046091-32001 on linux for step "compile" (clobber build). It's a second ...
9 years, 6 months ago (2011-06-16 15:04:51 UTC) #20
bbudge
On 2011/06/16 15:04:51, I haz the power (commit-bot) wrote: > Try job failure for 7046091-32001 ...
9 years, 6 months ago (2011-06-16 19:46:07 UTC) #21
bbudge
9 years, 6 months ago (2011-06-16 19:47:06 UTC) #22
darin (slow to review)
OK, LGTM On Thu, Jun 16, 2011 at 12:46 PM, <bbudge@chromium.org> wrote: > On 2011/06/16 ...
9 years, 6 months ago (2011-06-16 19:49:21 UTC) #23
commit-bot: I haz the power
9 years, 6 months ago (2011-06-16 21:48:38 UTC) #24
Change committed as 89405

Powered by Google App Engine
This is Rietveld 408576698