| Index: third_party/WebKit/Source/core/fileapi/FileReader.cpp
|
| diff --git a/third_party/WebKit/Source/core/fileapi/FileReader.cpp b/third_party/WebKit/Source/core/fileapi/FileReader.cpp
|
| index ed43618710c64822ce8ad9d263b7b29e570979fc..9017fb79b94328a318b702d3c7720f3675051243 100644
|
| --- a/third_party/WebKit/Source/core/fileapi/FileReader.cpp
|
| +++ b/third_party/WebKit/Source/core/fileapi/FileReader.cpp
|
| @@ -206,15 +206,16 @@ const AtomicString& FileReader::interfaceName() const {
|
| return EventTargetNames::FileReader;
|
| }
|
|
|
| -void FileReader::contextDestroyed() {
|
| +void FileReader::contextDestroyed(ExecutionContext* destroyedContext) {
|
| // The delayed abort task tidies up and advances to the DONE state.
|
| if (m_loadingState == LoadingStateAborted)
|
| return;
|
|
|
| - if (hasPendingActivity())
|
| + if (hasPendingActivity()) {
|
| ThrottlingController::finishReader(
|
| - getExecutionContext(), this,
|
| - ThrottlingController::removeReader(getExecutionContext(), this));
|
| + destroyedContext, this,
|
| + ThrottlingController::removeReader(destroyedContext, this));
|
| + }
|
| terminate();
|
| }
|
|
|
|
|