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

Issue 2809733003: Move most of FrameLoader::CheckCompleted() to Document (Closed)

Created:
3 years, 8 months ago by Nate Chapin
Modified:
3 years, 8 months ago
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

Move most of FrameLoader::CheckCompleted() to Document Split out the 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 remained of FrameLoader::CheckCompleted() to DidFinishNavigation(), and have it handling the logic that is tied to setting Frame::loading_ to false and firing DidStopLoading() callbacks. BUG= Review-Url: https://codereview.chromium.org/2809733003 Cr-Commit-Position: refs/heads/master@{#466470} Committed: https://chromium.googlesource.com/chromium/src/+/37861ef99134d28395b1891a25edb0b750a7011e

Patch Set 1 #

Patch Set 2 : processingLoadEvent() as part of shouldComplete(), cleanup shouldComplete() #

Patch Set 3 : processingLoadEvent() as part of shouldComplete(), cleanup shouldComplete() #

Total comments: 17

Patch Set 4 : Revert HandeLoadCompleted move, start Document in completed state and reset on open #

Patch Set 5 : Rebase #

Patch Set 6 : Explicit finish parsing in DocumentTest.ValidationMessageCleanup #

Patch Set 7 : Test fix #2 #

Patch Set 8 : Fix failing android test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -174 lines) Patch
M chrome/android/javatests/src/org/chromium/chrome/browser/infobar/SearchGeolocationDisclosureInfoBarTest.java View 1 2 3 4 5 6 7 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 3 4 5 6 chunks +8 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 3 4 5 8 chunks +78 lines, -30 lines 0 comments Download
M third_party/WebKit/Source/core/dom/DocumentTest.cpp View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/imports/HTMLImportTreeRoot.cpp View 1 2 3 4 5 1 chunk +2 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/loader/DocumentLoader.cpp View 1 2 3 4 5 1 chunk +23 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContext.cpp View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.cpp View 1 2 3 8 chunks +13 lines, -103 lines 0 comments Download
M third_party/WebKit/Source/core/loader/NavigationScheduler.cpp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGSVGElement.cpp View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 60 (39 generated)
Nate Chapin
It's everyone's favorite thing: yet another crazy core/loader/ refactor! I tried to provide a thorough ...
3 years, 8 months ago (2017-04-11 23:25:50 UTC) #13
yhirano
Sorry, I didn't have enough time today, and I'll be OOO tomorrow.
3 years, 8 months ago (2017-04-12 12:16:16 UTC) #14
Nate Chapin
3 years, 8 months ago (2017-04-12 16:59:24 UTC) #16
yhirano
https://codereview.chromium.org/2809733003/diff/40001/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/2809733003/diff/40001/third_party/WebKit/Source/core/dom/Document.cpp#newcode3044 third_party/WebKit/Source/core/dom/Document.cpp:3044: View()->HandleLoadCompleted(); On 2017/04/11 23:25:50, Nate Chapin wrote: > From ...
3 years, 8 months ago (2017-04-14 10:33:36 UTC) #17
Nate Chapin
https://codereview.chromium.org/2809733003/diff/40001/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/2809733003/diff/40001/third_party/WebKit/Source/core/dom/Document.cpp#newcode3044 third_party/WebKit/Source/core/dom/Document.cpp:3044: View()->HandleLoadCompleted(); On 2017/04/14 10:33:35, yhirano (slow) wrote: > On ...
3 years, 8 months ago (2017-04-18 21:56:39 UTC) #20
yhirano
It looks DocumentTest.ValidationMessageCleanup is faling.
3 years, 8 months ago (2017-04-19 16:13:49 UTC) #27
Nate Chapin
On 2017/04/19 16:13:49, yhirano wrote: > It looks DocumentTest.ValidationMessageCleanup is faling. Fixed.
3 years, 8 months ago (2017-04-19 17:43:21 UTC) #29
yhirano
lgtm
3 years, 8 months ago (2017-04-20 12:30:45 UTC) #37
Nate Chapin
Hi dfalcantara, would you mind reviewing the 1-line android test change in this CL? This ...
3 years, 8 months ago (2017-04-21 20:33:35 UTC) #41
gone
lgtm seems reasonable, yeah.
3 years, 8 months ago (2017-04-21 20:35:20 UTC) #42
Nate Chapin
Hi boliu, I just wanted a quick sanity check that this is unlikely to break ...
3 years, 8 months ago (2017-04-21 20:39:05 UTC) #44
boliu
On 2017/04/21 20:39:05, Nate Chapin wrote: > Hi boliu, > > I just wanted a ...
3 years, 8 months ago (2017-04-21 21:41:40 UTC) #45
Nate Chapin
On 2017/04/21 21:41:40, boliu wrote: > On 2017/04/21 20:39:05, Nate Chapin wrote: > > Hi ...
3 years, 8 months ago (2017-04-21 21:50:30 UTC) #46
boliu
On 2017/04/21 21:50:30, Nate Chapin wrote: > On 2017/04/21 21:41:40, boliu wrote: > > On ...
3 years, 8 months ago (2017-04-21 21:59:39 UTC) #47
Nate Chapin
On 2017/04/21 21:59:39, boliu wrote: > On 2017/04/21 21:50:30, Nate Chapin wrote: > > On ...
3 years, 8 months ago (2017-04-21 22:13:04 UTC) #50
Nate Chapin
On 2017/04/21 22:13:04, Nate Chapin wrote: > On 2017/04/21 21:59:39, boliu wrote: > > On ...
3 years, 8 months ago (2017-04-21 22:19:32 UTC) #51
boliu
On 2017/04/21 22:13:04, Nate Chapin wrote: > On 2017/04/21 21:59:39, boliu wrote: > > On ...
3 years, 8 months ago (2017-04-21 22:22:59 UTC) #52
Nate Chapin
On 2017/04/21 22:22:59, boliu wrote: > On 2017/04/21 22:13:04, Nate Chapin wrote: > > On ...
3 years, 8 months ago (2017-04-21 22:27:06 UTC) #53
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/2809733003/140001
3 years, 8 months ago (2017-04-21 22:28:01 UTC) #56
commit-bot: I haz the power
Committed patchset #8 (id:140001) as https://chromium.googlesource.com/chromium/src/+/37861ef99134d28395b1891a25edb0b750a7011e
3 years, 8 months ago (2017-04-21 22:35:38 UTC) #59
nasko
3 years, 8 months ago (2017-04-24 18:47:08 UTC) #60
Message was sent while issue was closed.
A revert of this CL (patchset #8 id:140001) has been created in
https://codereview.chromium.org/2836103003/ by nasko@chromium.org.

The reason for reverting is: Causes DCHECKs in webkit_tests when running with
--site-per-process, which blocks CQ jobs requiring the linux_site_isolation bot.

Example failure:
https://storage.googleapis.com/chromium-layout-test-archives/Site_Isolation_W...

STDERR: [4584:5888:0421/170621.194:3990474:FATAL:document.cpp(4648)] Check
failed: GetFrame() && GetFrame()->Owner(). 
STDERR: Backtrace:
STDERR: 	base::debug::StackTrace::StackTrace [0x01E9EC87+55]
STDERR: 	base::debug::StackTrace::StackTrace [0x01EC8D5A+10]
STDERR: 	blink::Document::WillChangeFrameOwnerProperties [0x02DB7391+90]
STDERR: 	blink::HTMLFrameElementBase::SetScrollingMode [0x02F4655F+57]
STDERR: 	blink::HTMLFrameElementBase::ParseAttribute [0x02F4638A+490]
STDERR: 	blink::HTMLIFrameElement::ParseAttribute [0x02F3C9AC+604]
STDERR: 	blink::Element::AttributeChanged [0x02DBC38F+111]
STDERR: 	blink::HTMLElement::AttributeChanged [0x02F26590+16]
STDERR: 	blink::Element::DidModifyAttribute [0x02DBDD8C+67]
STDERR: 	blink::Element::setAttribute [0x02DC7B6E+222]
STDERR: 	blink::V8HTMLFrameElement::scrollingAttributeSetterCallback
[0x02BA8131+129]
STDERR: 	v8::internal::FunctionCallbackArguments::Call [0x01698E9D+157]
STDERR: 	v8::internal::Isolate::typed_array_prototype [0x0173761C+1788]
STDERR: 	v8::internal::Builtins::InvokeApiFunction [0x01738931+849]
STDERR: 	v8::internal::Object::SetPropertyWithAccessor [0x01AFA1E8+808]
STDERR: 	v8::internal::Object::SetPropertyInternal [0x01AF9E2C+588]
STDERR: 	v8::internal::Object::SetProperty [0x01AF9A7D+45]
STDERR: 	v8::internal::StoreIC::Store [0x01A4F1DB+491]
STDERR: 	v8::internal::BinaryOpICState::UseInlinedSmiCode [0x01A551EA+10074]
STDERR: 	v8::internal::Runtime_StoreIC_Miss [0x01A4D32C+220].

Powered by Google App Engine
This is Rietveld 408576698