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

Issue 1267713003: Make the WebURLLoaderClients in the pepper code destroy (or have some guard) the loader in didFail() (Closed)

Created:
5 years, 4 months ago by tyoshino (SeeGerritForStatus)
Modified:
5 years, 4 months ago
Reviewers:
hiroshige, bbudge
CC:
chromium-reviews, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, jam, darin-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make the WebURLLoaderClients in the pepper code destroy (or have some guard) the loader in didFail() Currently Blink's ThreadableLoader calls didFinishLoading() after didFail() when both of the following conditions are met: - ThreadableLoader is not canceled (or destroyed) in didFail() - The response to cross-origin request (simple CORS request or preflight request) fails CORS check We plan to change ThreadableLoader not to call didFinishLoading() after didFail() call. But ManifestDownloader and PexeDownloader assumes the old behavior. This CL copies the things done in didFinishLoading() to didFail() of these classes and thus make a didFinishLoading() call after didFail() unnecessary to prepare for the change. ---- I wondered if PepperURLLoaderHost is expecting both didFinishLoading() and didFail() to be called. But it's only exposed via PepperPluginInstanceImpl::document_loader(), and to which only PluginDocumentParser::finish() delivers a notification. PluginDocumentParser never call both of didFinishLoading() and didFailLoading() on a PluginView. So, we don't have to worry about breakage, I think. ---- R=hiroshige,bbudge BUG=515850 Committed: https://crrev.com/431e4370269c39ab808997c0c204e220cd8cef2a Cr-Commit-Position: refs/heads/master@{#342061}

Patch Set 1 #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : Addressed #7 and #8 #

Total comments: 6

Patch Set 4 : Addressed #15 #

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -30 lines) Patch
M components/nacl/renderer/manifest_downloader.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M components/nacl/renderer/manifest_downloader.cc View 1 2 3 3 chunks +10 lines, -4 lines 0 comments Download
M components/nacl/renderer/ppb_nacl_private_impl.cc View 5 chunks +18 lines, -15 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.h View 1 chunk +9 lines, -9 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.cc View 1 2 3 chunks +10 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (6 generated)
tyoshino (SeeGerritForStatus)
5 years, 4 months ago (2015-08-03 05:32:12 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1267713003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1267713003/20001
5 years, 4 months ago (2015-08-03 05:33:10 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-03 07:00:44 UTC) #6
hiroshige
> We plan to change Blink's ThreadableLoader not to call > didFinishLoading() after didFail() call. ...
5 years, 4 months ago (2015-08-03 07:25:17 UTC) #7
hiroshige
https://codereview.chromium.org/1267713003/diff/20001/components/nacl/renderer/manifest_downloader.cc File components/nacl/renderer/manifest_downloader.cc (right): https://codereview.chromium.org/1267713003/diff/20001/components/nacl/renderer/manifest_downloader.cc#newcode73 components/nacl/renderer/manifest_downloader.cc:73: done(); Since didFinishLoading() is still called before the ThreadableLoader ...
5 years, 4 months ago (2015-08-03 07:27:42 UTC) #8
tyoshino (SeeGerritForStatus)
On 2015/08/03 07:25:17, hiroshige wrote: > > We plan to change Blink's ThreadableLoader not to ...
5 years, 4 months ago (2015-08-03 07:44:28 UTC) #9
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/1267713003/diff/20001/components/nacl/renderer/manifest_downloader.cc File components/nacl/renderer/manifest_downloader.cc (right): https://codereview.chromium.org/1267713003/diff/20001/components/nacl/renderer/manifest_downloader.cc#newcode73 components/nacl/renderer/manifest_downloader.cc:73: done(); On 2015/08/03 07:27:42, hiroshige wrote: > Since didFinishLoading() ...
5 years, 4 months ago (2015-08-03 07:59:05 UTC) #10
hiroshige
lgtm.
5 years, 4 months ago (2015-08-03 08:21:16 UTC) #11
tyoshino (SeeGerritForStatus)
Added analysis about the change on pepper_plugin_instance_impl.cc in the CL description.
5 years, 4 months ago (2015-08-03 12:45:19 UTC) #12
tyoshino (SeeGerritForStatus)
bbudge, please take a look.
5 years, 4 months ago (2015-08-03 12:45:39 UTC) #14
bbudge
https://codereview.chromium.org/1267713003/diff/40001/components/nacl/renderer/manifest_downloader.cc File components/nacl/renderer/manifest_downloader.cc (right): https://codereview.chromium.org/1267713003/diff/40001/components/nacl/renderer/manifest_downloader.cc#newcode57 components/nacl/renderer/manifest_downloader.cc:57: void ManifestDownloader::done() { nit: Rename this to Close or ...
5 years, 4 months ago (2015-08-03 12:59:42 UTC) #15
tyoshino (SeeGerritForStatus)
Thank you for review! https://codereview.chromium.org/1267713003/diff/40001/components/nacl/renderer/manifest_downloader.cc File components/nacl/renderer/manifest_downloader.cc (right): https://codereview.chromium.org/1267713003/diff/40001/components/nacl/renderer/manifest_downloader.cc#newcode57 components/nacl/renderer/manifest_downloader.cc:57: void ManifestDownloader::done() { On 2015/08/03 ...
5 years, 4 months ago (2015-08-04 04:51:14 UTC) #16
bbudge
lgtm
5 years, 4 months ago (2015-08-04 17:52:53 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1267713003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1267713003/80001
5 years, 4 months ago (2015-08-06 04:08:55 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 4 months ago (2015-08-06 05:09:17 UTC) #21
commit-bot: I haz the power
5 years, 4 months ago (2015-08-06 05:09:59 UTC) #22
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/431e4370269c39ab808997c0c204e220cd8cef2a
Cr-Commit-Position: refs/heads/master@{#342061}

Powered by Google App Engine
This is Rietveld 408576698