Merge pull request #5409 from electron/did-fail-load-clarification

Clarify how did-fail-load handles redirects
This commit is contained in:
Cheng Zhao 2016-05-06 14:27:46 +09:00
commit 4ce26dfa68

View file

@ -39,6 +39,8 @@ Returns:
This event is like `did-finish-load` but emitted when the load failed or was This event is like `did-finish-load` but emitted when the load failed or was
cancelled, e.g. `window.stop()` is invoked. cancelled, e.g. `window.stop()` is invoked.
The full list of error codes and their meaning is available [here](https://code.google.com/p/chromium/codesearch#chromium/src/net/base/net_error_list.h). The full list of error codes and their meaning is available [here](https://code.google.com/p/chromium/codesearch#chromium/src/net/base/net_error_list.h).
Note that redirect responses will emit `errorCode` -3; you may want to ignore
that error explicitly.
### Event: 'did-frame-finish-load' ### Event: 'did-frame-finish-load'