DescriptionFix WebURLLoaderImpl::Context leak if a pending request is canceled.
Now, ResourceDispatcher::CancelPendingRequest will send
ResourceHostMsg_CancelRequest and trigger OnRequestComplete. However,
the request is pending and thus OnRequestComplete will be queued.
There are at least two problems if OnRequestComplete is not called:
1. WebURLLoaderImpl::Context will never be released.
2. request_info->buffer leaks. The buffer holds shared memory handle
(file descriptor). fd leaking may lead to HW video decode failure on
ChromeOS (detail in chrome-os-partner:27911#63)
This issue is similar to issue 328092.
BUG=chrome-os-partner:27911, chromium:369221, chromium:369128
R=jam@chromium.org, mmenke@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=269361
Patch Set 1 #Patch Set 2 : #Patch Set 3 : old CL #Patch Set 4 : new CL #
Total comments: 4
Patch Set 5 : rephrase the comment #
Total comments: 1
Messages
Total messages: 12 (0 generated)
|