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

Issue 2837763003: Reland "Move most of FrameLoader::CheckCompleted() to Document" (Closed)

Created:
3 years, 8 months ago by Nate Chapin
Modified:
3 years, 7 months ago
Reviewers:
lfg, gone, yhirano, nasko
CC:
chromium-reviews, Yoav Weiss, blink-reviews-html_chromium.org, kinuko+watch, mlamouri+watch-blink_chromium.org, webcomponents-bugzilla_chromium.org, tfarina, sof, eae+blinkwatch, fs, fmalita+watch_chromium.org, blink-reviews-dom_chromium.org, dglazkov+blink, krit, dcheng, blink-reviews, gyuyoung2, Stephen Chennney, kouhei+svg_chromium.org, pdr+svgwatchlist_chromium.org, tyoshino+watch_chromium.org, rwlbuis
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland "Move most of FrameLoader::CheckCompleted() to Document" Split out the parts that are specific to the committed Document, and move those to a new Document::CheckCompleted(). Most current callers of FrameLoader::CheckCompleted() will now call Document::CheckCompleted() instead. Rename the remainder of FrameLoader::CheckCompleted() to DidFinishNavigation(), and have it handle the logic that is tied to setting Frame::loading_ to false and firing DidStopLoading() callbacks. Originally reviewed in https://codereview.chromium.org/2809733003/ BUG= Review-Url: https://codereview.chromium.org/2837763003 Cr-Commit-Position: refs/heads/master@{#468030} Committed: https://chromium.googlesource.com/chromium/src/+/716a136332fbd8efc12a3892b6ae2a6c0be94ba7

Patch Set 1 #

Patch Set 2 : Proposed fix #

Patch Set 3 : Rebase #

Patch Set 4 : IncrementLoadEventDelayCount in WebFrame::swap #

Patch Set 5 : Fix comment typos #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+159 lines, -176 lines) Patch
M chrome/android/javatests/src/org/chromium/chrome/browser/infobar/SearchGeolocationDisclosureInfoBarTest.java View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/loading/doc-write-sync-third-party-script-reload-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.h View 1 2 6 chunks +8 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 8 chunks +78 lines, -30 lines 0 comments Download
M third_party/WebKit/Source/core/dom/DocumentTest.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/IncrementLoadEventDelayCount.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/imports/HTMLImportTreeRoot.cpp View 1 chunk +2 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/loader/DocumentLoader.cpp View 1 chunk +23 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContext.cpp View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.cpp View 1 2 8 chunks +13 lines, -103 lines 0 comments Download
M third_party/WebKit/Source/core/loader/NavigationScheduler.cpp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGSVGElement.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebFrame.cpp View 1 2 3 4 3 chunks +12 lines, -1 line 1 comment Download
M third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 31 (20 generated)
Nate Chapin
Patchset 3 is the CL as it was when it was reverted, just rebased. Diff ...
3 years, 8 months ago (2017-04-25 23:09:24 UTC) #11
gone
Re-rubberstamping lgtm.
3 years, 8 months ago (2017-04-25 23:37:19 UTC) #12
nasko
lfg@ is a better reviewer for WebFrame::Swap, I defer to him.
3 years, 8 months ago (2017-04-25 23:46:37 UTC) #14
lfg
https://codereview.chromium.org/2837763003/diff/80001/third_party/WebKit/Source/web/WebFrame.cpp File third_party/WebKit/Source/web/WebFrame.cpp (right): https://codereview.chromium.org/2837763003/diff/80001/third_party/WebKit/Source/web/WebFrame.cpp#newcode48 third_party/WebKit/Source/web/WebFrame.cpp:48: std::unique_ptr<IncrementLoadEventDelayCount> delay_parent_load = This looks good, but do you ...
3 years, 7 months ago (2017-04-27 17:08:25 UTC) #15
Nate Chapin
On 2017/04/27 17:08:25, lfg wrote: > https://codereview.chromium.org/2837763003/diff/80001/third_party/WebKit/Source/web/WebFrame.cpp > File third_party/WebKit/Source/web/WebFrame.cpp (right): > > https://codereview.chromium.org/2837763003/diff/80001/third_party/WebKit/Source/web/WebFrame.cpp#newcode48 > ...
3 years, 7 months ago (2017-04-27 17:20:43 UTC) #16
Nate Chapin
On 2017/04/27 17:20:43, Nate Chapin wrote: > On 2017/04/27 17:08:25, lfg wrote: > > > ...
3 years, 7 months ago (2017-04-27 18:25:55 UTC) #17
lfg
On 2017/04/27 18:25:55, Nate Chapin wrote: > Ah, no, that doesn't work: The pointers in ...
3 years, 7 months ago (2017-04-27 18:28:07 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2837763003/80001
3 years, 7 months ago (2017-04-27 18:34:08 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/328119) linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
3 years, 7 months ago (2017-04-27 18:58:31 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2837763003/80001
3 years, 7 months ago (2017-04-28 16:54:29 UTC) #28
commit-bot: I haz the power
3 years, 7 months ago (2017-04-28 17:00:30 UTC) #31
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/716a136332fbd8efc12a3892b6ae...

Powered by Google App Engine
This is Rietveld 408576698