DescriptionThis CL addresses wez and Jamie's feedback on the reliability of the reconnect due to the unreliability of navigator.onLine.
Summary of changes:
1. If navigator.onLine is true when the connection is dropped
auto-reconnect without showing the connection dropped dialog
otherwise
show connection dropped dialog and reconnect when navigation.onLine becomes true
2. The unreliability of navigator.onLine is mitigated by a new class
remoting.AutoRetyXHR, which will retry an XHR request if the request fails
due to network error for every 2 seconds until the max retry attempts is reached.
Committed: https://crrev.com/a6852cc61cf2e5c487355d9110e4192ff9c1e536
Cr-Commit-Position: refs/heads/master@{#332248}
Patch Set 1 : #
Total comments: 16
Patch Set 2 : Reviewer's feedback #
Total comments: 3
Patch Set 3 : Ready for check-in #Patch Set 4 : Rebase #
Messages
Total messages: 18 (8 generated)
|