DescriptionClear BodyStreamBuffer::m_handle in close()/error()
After close()/error() is called, |m_handle| is no longer used but not cleared
until lock() is called or BodyStreamBuffer is garbage collected.
This leads data transfer to continue after reader is cancelled from JavaScript.
This CL clears m_handle in close()/error() to destruct both the reader and
handle of the source of BodyStreamBuffer and to stop transfer immediately.
BUG=537286
Committed: https://crrev.com/ac0ed659d89e881943da62e2488099696fe1b676
Cr-Commit-Position: refs/heads/master@{#351555}
Patch Set 1 #Patch Set 2 : Add unit tests. #
Messages
Total messages: 16 (7 generated)
|