Index: third_party/WebKit/Source/devtools/front_end/timeline/TimelineLoader.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineLoader.js b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineLoader.js |
index 4d318bab05e0b710ae813327a7a8a1675ac44803..96bd1e19e04fac75b416e2cfe321ac846f8cddd1 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineLoader.js |
+++ b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineLoader.js |
@@ -214,14 +214,14 @@ WebInspector.TimelineLoader.prototype = { |
*/ |
onError: function(reader, event) |
{ |
- switch (event.target.error.code) { |
- case FileError.NOT_FOUND_ERR: |
+ switch (event.target.error.name) { |
pfeldman
2016/07/12 21:29:44
Was name previously available? If not, you would n
jsbell
2016/07/13 16:55:07
Yes; FileError started inheriting from DOMError ci
|
+ case 'NotFoundError': |
this._reportErrorAndCancelLoading(WebInspector.UIString("File \"%s\" not found.", reader.fileName())); |
break; |
- case FileError.NOT_READABLE_ERR: |
+ case 'NotReadableError': |
this._reportErrorAndCancelLoading(WebInspector.UIString("File \"%s\" is not readable", reader.fileName())); |
break; |
- case FileError.ABORT_ERR: |
+ case 'AbortError': |
break; |
default: |
this._reportErrorAndCancelLoading(WebInspector.UIString("An error occurred while reading the file \"%s\"", reader.fileName())); |