|
Better distinguish didFinishLoad and didStopLoading
Currently, they mean roughly the same thing. didFinishLoad
fires when a navigation successfully completes and no other
navigations are in progress. didStopLoading does the same
thing, but fires whether or not the navigation was successful.
This changes didFinishLoad to mean "a navigation successfully
completed", while didStopLoading still means "there are now
no navigations in progress in this frame". For each
didStartProvisionalLoad, there will be exactly one of:
didFailProvisionalLoad, didFailLoad, didFinishLoad. Prior to
this change, there would be at most one, but it could be that
a load would complete without a matching notification.
This also reverses the order of didFinishLoad and
didStopLoading. didStartLoading and didStopLoading will now
bracket zero to many individual navigation notifications,
which may be interleaved.
This requires 4 changes to consumers of these notifications:
1. http/tests/loading/progress-finished-callback.html
asserted the old finish/stop ordering, and did nothing
else. Remove it and its test harness logic.
2. web_navigation_api.cc assumed that didFinishLoad would not
be sent if a new provisional navigation began before the
finish notification. Change a DCHECK to an early exit.
3. password_autofill_agent.cc depends on stop firing before
finish for determining whether all loading is done. Give
it the ability to determine loading state for itself
inside DidFinishLoad.
4. chrome/android/ incorrectly listens to the browser process
equivalents of didStartProvisionaLoad and didFinishLoad to
determine whether loading is in progress and start/stop
the progress bar. Switch it to the equivalent of
didStartLoading and didStopLoading.
BUG= 539952
CQ_EXTRA_TRYBOTS=tryserver.chromium.perf:linux_perf_bisect;tryserver.chromium.perf:mac_10_10_perf_bisect;tryserver.chromium.perf:win_perf_bisect;tryserver.chromium.perf:android_nexus5_perf_bisect
Committed: https://crrev.com/ba1f66fc44875b25efb3faf991c0b6754793088b
Cr-Commit-Position: refs/heads/master@{#357517}
Total comments: 21
Total comments: 1
Total comments: 4
Total comments: 8
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+179 lines, -181 lines) |
Patch |
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayPanelContent.java
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerChrome.java
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/document/DocumentActivity.java
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/tab/EmptyTabObserver.java
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
4 chunks |
+20 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/tab/TabObserver.java
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/tab/TabWebContentsDelegateAndroid.java
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+3 lines, -9 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModelSelectorImpl.java
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarManager.java
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+24 lines, -24 lines |
0 comments
|
Download
|
 |
M |
chrome/android/javatests/src/org/chromium/chrome/browser/GeolocationTest.java
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/android/javatests/src/org/chromium/chrome/browser/HistoryUITest.java
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/android/javatests/src/org/chromium/chrome/browser/toolbar/BrandColorTest.java
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/web_navigation/web_navigation_api.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+10 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/test/android/javatests/src/org/chromium/chrome/test/util/browser/TabLoadObserver.java
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
components/autofill/content/renderer/password_autofill_agent.h
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+0 lines, -7 lines |
0 comments
|
Download
|
 |
M |
components/autofill/content/renderer/password_autofill_agent.cc
|
View
|
1
2
3
4
5
6
7
8
|
4 chunks |
+10 lines, -20 lines |
0 comments
|
Download
|
 |
M |
components/test_runner/test_runner.h
|
View
|
1
2
3
4
5
6
|
3 chunks |
+0 lines, -10 lines |
0 comments
|
Download
|
 |
M |
components/test_runner/test_runner.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
6 chunks |
+0 lines, -17 lines |
0 comments
|
Download
|
 |
M |
components/test_runner/web_frame_test_proxy.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
components/test_runner/web_test_proxy.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/test_runner/web_test_proxy.cc
|
View
|
1
2
3
4
5
6
7
9
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/WebContentsDelegateAndroid.java
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
components/web_contents_delegate_android/web_contents_delegate_android.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+7 lines, -3 lines |
0 comments
|
Download
|
 |
D |
third_party/WebKit/LayoutTests/http/tests/loading/progress-finished-callback.html
|
View
|
|
1 chunk |
+0 lines, -7 lines |
0 comments
|
Download
|
 |
D |
third_party/WebKit/LayoutTests/http/tests/loading/progress-finished-callback-expected.txt
|
View
|
|
1 chunk |
+0 lines, -7 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/loader/DocumentLoader.h
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/loader/DocumentLoader.cpp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+3 lines, -12 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/loader/FrameLoader.cpp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
4 chunks |
+31 lines, -23 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/web/WebFrame.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/web/tests/WebFrameTest.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+32 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/public/web/WebFrame.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tools/perf/measurements/v8_detached_context_age_in_gc_unittest.py
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 51 (14 generated)
|