Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(642)

Unified Diff: third_party/WebKit/Source/core/fileapi/FileReaderLoader.cpp

Issue 2940553003: Failure in reading Blob URL should results in network error
Patch Set: . Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/fileapi/FileReaderLoader.cpp
diff --git a/third_party/WebKit/Source/core/fileapi/FileReaderLoader.cpp b/third_party/WebKit/Source/core/fileapi/FileReaderLoader.cpp
index 2a81b7dd1081e46e66220ff87da113e79db621a7..bac7d0e5495dd1d845a9da26e420d9662dbb2df1 100644
--- a/third_party/WebKit/Source/core/fileapi/FileReaderLoader.cpp
+++ b/third_party/WebKit/Source/core/fileapi/FileReaderLoader.cpp
@@ -273,6 +273,11 @@ void FileReaderLoader::DidFail(const ResourceError& error) {
if (error_code_ == FileError::kAbortErr)
return;
+ if (error.IsFileNotFoundError()) {
+ Failed(FileError::kNotFoundErr);
+ return;
+ }
+
Failed(FileError::kNotReadableErr);
}

Powered by Google App Engine
This is Rietveld 408576698