Chromium Code Reviews
DescriptionFix condition of FileReader::hasPendingActivity
Before this patch, |hasPendingActiviy| checked |m_loadingState| to check if it is stopped.
However, when called |abort()|, FileReader schedules a delayed task to call |doAbort()|, while setting |m_loadingState| to |LoadingStateAborted|. This may cause the FileReader to go away when |doAbort()| is called.
This patch avoids the issue by having |hasPendingActivity| look at |m_state| instead.
BUG=393425
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178019
Patch Set 1 #Patch Set 2 : add layout tests #
Messages
Total messages: 8 (0 generated)
|
|||||||||||||||||||||||||||||||||||||