Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(329)

Issue 1440933004: Don't use didStopLoading in failed navigation when other nav in progress (Closed)

Created:
5 years, 1 month ago by gsennton
Modified:
5 years ago
CC:
blink-reviews, chromium-reviews, gavinp+loader_chromium.org, Nate Chapin, loading-reviews_chromium.org, mnaganov (inactive), tyoshino+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't use didStopLoading in failed navigation when other nav in progress For example if a JS redirect would fail while the original navigation is still in progress we would call didStopLoading before the original navigation calls didFinishLoading (breaking the assumption that didFinishLoading is always called before didStopLoading). BUG=557100, 298193 Committed: https://crrev.com/e1da704f67f34022b7aaf3afe277c86217844114 Cr-Commit-Position: refs/heads/master@{#362954}

Patch Set 1 #

Patch Set 2 : Don't dispatch didFailLoad if already dispatched a call declaring the load finished. #

Patch Set 3 : Fix layout tests after help from mkwst@ and add WebView instrumentation test. #

Patch Set 4 : Remove unnecessary DidStopLoadingDetailsWithPending browser test. #

Patch Set 5 : Remove DidStopLoadingDetails as well #

Total comments: 1

Patch Set 6 : Move OnFailedLoadHelper to TestAwContentsClient. #

Messages

Total messages: 32 (13 generated)
gsennton
Hi Japhet, so here is the fix you suggested, AFAICT it fixes the problem we ...
5 years, 1 month ago (2015-11-12 23:16:21 UTC) #2
gsennton
I am also creating a WebView instrumentation test to make sure we post an onPageFinished ...
5 years, 1 month ago (2015-11-16 19:42:26 UTC) #3
Nate Chapin
Code looks good Can we test callback ordering closer to FrameLoader? We do something similiar ...
5 years, 1 month ago (2015-11-17 18:03:18 UTC) #5
gsennton
On 2015/11/17 18:03:18, Nate Chapin wrote: > Code looks good > > Can we test ...
5 years ago (2015-11-25 18:39:13 UTC) #6
gsennton
Ok, so it seems the problem lies in what is happening in the provisional case. ...
5 years ago (2015-11-26 15:56:51 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1440933004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1440933004/40001
5 years ago (2015-12-01 14:00:01 UTC) #9
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/103289)
5 years ago (2015-12-01 15:22:12 UTC) #12
gsennton
Ok, so the only test that is failing now is the good old WebContentsImplBrowserTest.DidStopLoadingDetailsWithPending (actually ...
5 years ago (2015-12-01 18:37:58 UTC) #14
Charlie Reis
On 2015/12/01 18:37:58, gsennton wrote: > Ok, so the only test that is failing now ...
5 years ago (2015-12-02 00:25:26 UTC) #15
gsennton
> Why does starting a second navigation before LoadStop turn it into a fail? AFAICT ...
5 years ago (2015-12-02 11:33:59 UTC) #16
gsennton
Now I'm replying over my own message so please see #16 before reading this... Note: ...
5 years ago (2015-12-02 12:06:44 UTC) #17
Charlie Reis
On 2015/12/02 11:33:59, gsennton wrote: > > Why does starting a second navigation before LoadStop ...
5 years ago (2015-12-02 19:35:02 UTC) #18
gsennton
> If that's the new behavior, then I agree the DidStopLoadingDetailsWithPending > test isn't meaningful ...
5 years ago (2015-12-02 22:26:27 UTC) #21
Charlie Reis
On 2015/12/02 22:26:27, gsennton wrote: > > If that's the new behavior, then I agree ...
5 years ago (2015-12-02 22:35:55 UTC) #22
mnaganov (inactive)
Yes, I saw the android_webview/ part before and blessed it. Just one trivial comment came ...
5 years ago (2015-12-02 23:24:20 UTC) #23
Mike West
core/loader LGTM.
5 years ago (2015-12-03 08:26:09 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1440933004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1440933004/100001
5 years ago (2015-12-03 10:24:25 UTC) #28
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years ago (2015-12-03 11:34:19 UTC) #30
commit-bot: I haz the power
5 years ago (2015-12-03 11:35:05 UTC) #32
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/e1da704f67f34022b7aaf3afe277c86217844114
Cr-Commit-Position: refs/heads/master@{#362954}

Powered by Google App Engine
This is Rietveld 408576698