DescriptionMake 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 #
Messages
Total messages: 22 (6 generated)
|