DescriptionMade renderer-initiated requests registration more reliable.
Old code relied on URLs comparisson which may give false negatives
because WKWebView allows multiple pending navigations.
This CL uses NavigationContextImpl to check if the load has been
registered previously which should always work as long as
didStartProvisionalNavigation: is guaranteed to be called.
If didStartProvisionalNavigation: is always called, then it should fix
crbug.com/725958 crash and if it's not, then didFinishNavigation: will
have to register loading request as well (which will be done in a
separate CL if needed).
BUG=727289
Review-Url: https://codereview.chromium.org/2901293003
Cr-Commit-Position: refs/heads/master@{#475698}
Committed: https://chromium.googlesource.com/chromium/src/+/19b7db898be96b32cec6d78966abe4ef613f1708
Patch Set 1 #Patch Set 2 : Fixed tests #Patch Set 3 : Cleaned up #
Depends on Patchset: Messages
Total messages: 22 (17 generated)
|