DescriptionUpdated error translation logic.
This CL changes several aspects of our error translation code:
- Moves the actual translation process to |-loadErrorInNativeView:|.
This allows the logic in |-handleLoadError:inMainFrame:| to correctly
differentiate between webview-generated errors and errors originating
from the net stack.
- Changes |NetErrorFromError()| to translate the ultimate underlying
error rather than the top-level error, and appends the translated
error to the end of the passed-in error's underlying error chain.
- Created |GetUltimateUnderlyingErrorForError()|, which iterates through
the underlying error chain to find the original error.
BUG=492434, 496972, 496115, 473888
Committed: https://crrev.com/d70e5c4bd55edf8c901b11b6f1e0aa8f1bacdde5
Cr-Commit-Position: refs/heads/master@{#337475}
Patch Set 1 #
Total comments: 11
Patch Set 2 : Eugene's comments #
Total comments: 15
Patch Set 3 : Eugene + Stuarts' comments #
Total comments: 4
Patch Set 4 : stuart's comments #Patch Set 5 : #
Messages
Total messages: 31 (10 generated)
|