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

Issue 561813003: Prepare blink to unify definitions of load completion (Closed)

Created:
6 years, 3 months ago by Nate Chapin
Modified:
6 years, 1 month ago
Reviewers:
dcheng, abarth-chromium
CC:
abarth-chromium, arv+blink, blink-reviews, blink-reviews-bindings_chromium.org, blink-reviews-dom_chromium.org, dglazkov+blink, eae+blinkwatch, gavinp+loader_chromium.org, rwlbuis, sof
Project:
blink
Visibility:
Public.

Description

Prepare blink to unify definitions of load completion Currently, FrameLoader.cpp contains a function called isDocumentDoneLoading, which has a complicated set of rules to determine when to tell chromium that loading is complete. These rules only really exist for the sake of layout tests, which can't always just define load event completion as the end of the test. A set of rules have been added to the layout tests harness behind a build flag, so add a flagged version of load completion in blink that is strongly mapped to load event completion. Lots of tests need subtle changes. Most of these are forced layouts, waiting for RAF to complete, simple waitUntilDone/notifyDone pairs, and adding missing document.close() calls. BUG=426520 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=184389

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 9

Patch Set 7 : #

Total comments: 19

Patch Set 8 : #

Total comments: 1

Patch Set 9 : Add document.close() to scroll-left-while-loading.html #

Unified diffs Side-by-side diffs Delta from patch set Stats (+383 lines, -329 lines) Patch
M LayoutTests/css3/masking/mask-repeat-space-content.html View 1 chunk +3 lines, -0 lines 0 comments Download
M LayoutTests/css3/masking/mask-repeat-space-content-expected.html View 2 chunks +10 lines, -0 lines 0 comments Download
M LayoutTests/css3/masking/mask-repeat-space-padding-expected.html View 2 chunks +10 lines, -0 lines 0 comments Download
M LayoutTests/editing/execCommand/window-open-insert-list-crash.html View 1 chunk +3 lines, -0 lines 0 comments Download
M LayoutTests/editing/undo/crash-redo-with-iframes.html View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/dom/Document/document-close-nested-iframe-load.html View 1 chunk +4 lines, -2 lines 0 comments Download
M LayoutTests/fast/dom/HTMLHeadElement/head-link-style-href-check.html View 1 chunk +1 line, -0 lines 0 comments Download
D LayoutTests/fast/dom/ImageDocument-image-deletion.html View 1 chunk +0 lines, -24 lines 0 comments Download
D LayoutTests/fast/dom/ImageDocument-image-deletion-expected.txt View 1 chunk +0 lines, -5 lines 0 comments Download
M LayoutTests/fast/dom/MutationObserver/document-write.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/dom/StyleSheet/css-insert-import-rule-to-shadow-stylesheets.html View 1 chunk +10 lines, -12 lines 0 comments Download
M LayoutTests/fast/dom/Window/window-open-no-multiple-windows-from-iframe.html View 1 chunk +3 lines, -1 line 0 comments Download
M LayoutTests/fast/dom/css-cached-import-rule.html View 1 chunk +6 lines, -5 lines 0 comments Download
M LayoutTests/fast/dom/css-insert-import-rule.html View 1 chunk +2 lines, -4 lines 0 comments Download
M LayoutTests/fast/dom/shadow/adopt-node-with-shadow-root.html View 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/fast/dom/shadow/import-rule-in-shadow-tree-needs-document-style-recalc.html View 2 chunks +8 lines, -0 lines 0 comments Download
M LayoutTests/fast/dom/shadow/shadow-tree-listener-clearance.html View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/events/mouseenter-mouseleave-crash.html View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/events/popup-allowed-from-gesture-initiated-form-submit.html View 1 chunk +6 lines, -4 lines 0 comments Download
M LayoutTests/fast/events/scroll-event-handler-count.html View 2 chunks +2 lines, -0 lines 0 comments Download
M LayoutTests/fast/forms/button-in-forms-collection.html View 1 chunk +0 lines, -15 lines 0 comments Download
M LayoutTests/fast/forms/button-in-forms-collection-expected.txt View 1 chunk +10 lines, -0 lines 0 comments Download
M LayoutTests/fast/frames/document-write-in-iframe-onload-2.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/frames/document-write-in-iframe-onload-3.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/frames/frameset-dynamic-resize.html View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/frames/location-put-after-removal-expected.txt View 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/fast/html/imports/import-destroy-stress.html View 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/loader/create-frame-in-DOMContentLoaded.html View 2 chunks +5 lines, -1 line 0 comments Download
M LayoutTests/fast/loader/external-script-URL-location.html View 1 chunk +4 lines, -1 line 0 comments Download
M LayoutTests/fast/loader/open-in-srcdoc-unload.html View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/loader/resources/document-destruction-within-unload-iframe.html View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/loader/resources/external-script-URL-location.js View 1 chunk +4 lines, -1 line 0 comments Download
M LayoutTests/fast/loader/stateobjects/state-attribute-only-one-deserialization.html View 1 chunk +3 lines, -1 line 0 comments Download
M LayoutTests/fast/loader/stateobjects/state-attribute-popstate-event.html View 1 chunk +3 lines, -1 line 0 comments Download
M LayoutTests/fast/loader/subframe-removes-itself-expected.txt View 1 chunk +2 lines, -1 line 0 comments Download
M LayoutTests/fast/parser/adoption-agency-crash-03.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/parser/document-close-nested-iframe-load.html View 1 chunk +4 lines, -2 lines 0 comments Download
M LayoutTests/fast/parser/document-open-in-unload.html View 1 chunk +2 lines, -0 lines 0 comments Download
M LayoutTests/fast/parser/document-open-in-unload-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/parser/document-write-ignores-later-network-bytes.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/parser/document-write-onload-nesting.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/parser/iframe-onload-document-close-with-external-script.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/parser/iframe-onload-document-close-with-external-script-2.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/parser/iframe-onload-document-close-with-external-script-3.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/text/webfont-synthetic-bold.html View 1 chunk +3 lines, -0 lines 0 comments Download
M LayoutTests/fast/tokenizer/resources/write-external-script-open.js View 1 chunk +2 lines, -0 lines 0 comments Download
M LayoutTests/fast/tokenizer/write-external-script-open.html View 1 chunk +4 lines, -1 line 0 comments Download
M LayoutTests/http/tests/cache/cancel-multiple-post-xhrs-expected.txt View 1 chunk +3 lines, -0 lines 0 comments Download
M LayoutTests/http/tests/fouc/scroll-left-while-loading.html View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/http/tests/incremental/doc-write-before-end.pl View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/local/file-url-sent-as-referer.html View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/http/tests/misc/stop-loading-on-resource-timing-buffer-full-crash.html View 2 chunks +5 lines, -9 lines 0 comments Download
M LayoutTests/http/tests/misc/stop-loading-on-resource-timing-buffer-full-crash-expected.txt View 1 chunk +3 lines, -0 lines 0 comments Download
M LayoutTests/http/tests/misc/window-dot-stop-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
D LayoutTests/http/tests/multipart/invalid-image-data.html View 1 chunk +0 lines, -24 lines 0 comments Download
D LayoutTests/http/tests/multipart/invalid-image-data-standalone-expected.txt View 1 2 3 4 5 6 1 chunk +0 lines, -30 lines 0 comments Download
D LayoutTests/http/tests/navigation/go-back-to-error-page.html View 1 chunk +0 lines, -13 lines 0 comments Download
D LayoutTests/http/tests/navigation/go-back-to-error-page-expected.txt View 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/http/tests/navigation/lockedhistory-iframe.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/XFrameOptions/x-frame-options-deny-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/http/tests/security/XFrameOptions/x-frame-options-multiple-headers-conflict-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/http/tests/security/XFrameOptions/x-frame-options-multiple-headers-sameorigin-deny-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/http/tests/security/XFrameOptions/x-frame-options-parent-same-origin-deny-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/http/tests/security/cookies/base-about-blank.html View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/http/tests/security/cross-frame-access-call.html View 1 chunk +0 lines, -2 lines 0 comments Download
M LayoutTests/http/tests/security/cross-frame-access-custom.html View 1 chunk +0 lines, -3 lines 0 comments Download
M LayoutTests/http/tests/security/cross-frame-access-frames.html View 1 chunk +0 lines, -3 lines 0 comments Download
M LayoutTests/http/tests/security/cross-frame-access-name-getter.html View 1 chunk +0 lines, -3 lines 0 comments Download
M LayoutTests/http/tests/security/xss-DENIED-xsl-document-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/xssAuditor/html5-import-safe-expected.txt View 1 2 3 4 5 6 1 chunk +0 lines, -4 lines 0 comments Download
M LayoutTests/http/tests/svg/change-id-with-pending-resources.html View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/http/tests/svg/tref-adoptNode-crash.html View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/http/tests/xmlhttprequest/navigation-should-abort.html View 2 chunks +4 lines, -3 lines 0 comments Download
M LayoutTests/http/tests/xmlhttprequest/navigation-should-abort-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/xmlhttprequest/reentrant-cancel.html View 1 chunk +6 lines, -0 lines 0 comments Download
M LayoutTests/http/tests/xmlhttprequest/reentrant-cancel-expected.txt View 1 chunk +0 lines, -2 lines 0 comments Download
M LayoutTests/http/tests/xmlhttprequest/resources/navigation-target.html View 1 chunk +4 lines, -0 lines 0 comments Download
M LayoutTests/http/tests/xmlhttprequest/send-on-abort.html View 1 chunk +1 line, -1 line 0 comments Download
D LayoutTests/platform/linux/http/tests/multipart/invalid-image-data-expected.png View 1 2 3 4 5 6 Binary file 0 comments Download
D LayoutTests/platform/linux/http/tests/multipart/invalid-image-data-expected.txt View 1 chunk +0 lines, -24 lines 0 comments Download
D LayoutTests/platform/win-xp/http/tests/multipart/invalid-image-data-expected.png View Binary file 0 comments Download
D LayoutTests/platform/win-xp/http/tests/multipart/invalid-image-data-expected.txt View 1 chunk +0 lines, -24 lines 0 comments Download
D LayoutTests/platform/win/http/tests/multipart/invalid-image-data-expected.png View Binary file 0 comments Download
D LayoutTests/platform/win/http/tests/multipart/invalid-image-data-expected.txt View 1 chunk +0 lines, -24 lines 0 comments Download
M LayoutTests/security/block-test-expected.txt View 1 chunk +71 lines, -0 lines 0 comments Download
M LayoutTests/security/block-test-no-port-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/svg/custom/bug79798.html View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/svg/custom/draw-image-crash.html View 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/svg/custom/resources/linkingCircle-f.svg View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/svg/dom/complex-svgView-specification.html View 1 chunk +10 lines, -0 lines 0 comments Download
M LayoutTests/svg/wicd/test-rightsizing-a.xhtml View 1 chunk +3 lines, -0 lines 0 comments Download
M LayoutTests/svg/wicd/test-rightsizing-b.xhtml View 1 chunk +9 lines, -0 lines 0 comments Download
M LayoutTests/svg/wicd/test-scalable-background-image1.xhtml View 1 chunk +10 lines, -0 lines 0 comments Download
M LayoutTests/svg/wicd/test-scalable-background-image2.xhtml View 1 chunk +10 lines, -0 lines 0 comments Download
M LayoutTests/webaudio/scriptprocessornode-rewrap.html View 2 chunks +4 lines, -6 lines 0 comments Download
M LayoutTests/webaudio/scriptprocessornode-upmix2-8channel-input.html View 1 chunk +3 lines, -6 lines 0 comments Download
M Source/bindings/core/v8/ScriptController.cpp View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download
M Source/core/dom/Document.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -2 lines 0 comments Download
M Source/core/dom/ProcessingInstruction.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M Source/core/fetch/Resource.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/fetch/Resource.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/fetch/ResourceFetcher.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/fetch/ResourceFetcher.cpp View 1 2 3 4 5 6 7 8 2 chunks +12 lines, -12 lines 0 comments Download
M Source/core/fetch/ResourceLoader.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/fetch/ResourceLoader.cpp View 1 2 3 4 5 6 7 8 7 chunks +14 lines, -7 lines 0 comments Download
M Source/core/fetch/ResourceLoaderHost.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/loader/FrameFetchContext.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/loader/FrameLoader.cpp View 1 2 3 4 5 6 7 8 5 chunks +17 lines, -7 lines 0 comments Download
M Source/core/loader/NavigationScheduler.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M Source/web/tests/ActivityLoggerTest.cpp View 1 2 3 4 5 6 8 chunks +15 lines, -7 lines 0 comments Download
M Source/web/tests/WebFrameTest.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 32 (11 generated)
Nate Chapin
Sorry for the size of this... https://codereview.chromium.org/561813003/diff/100001/Source/bindings/core/v8/ScriptController.cpp File Source/bindings/core/v8/ScriptController.cpp (right): https://codereview.chromium.org/561813003/diff/100001/Source/bindings/core/v8/ScriptController.cpp#newcode540 Source/bindings/core/v8/ScriptController.cpp:540: m_frame->loader().progress().progressStarted(); Apparently we've ...
6 years, 3 months ago (2014-09-15 23:39:35 UTC) #2
abarth-chromium
This CL is intimidating to me... Maybe we can find someone else to review it?
6 years, 3 months ago (2014-09-23 20:47:45 UTC) #3
dcheng
Just an initial set of comments, since I'm not sure I entirely grok this yet. ...
6 years, 2 months ago (2014-10-20 18:35:13 UTC) #5
dcheng
Just an initial set of comments, since I'm not sure I entirely grok this yet. ...
6 years, 2 months ago (2014-10-20 18:35:14 UTC) #6
dcheng
Just two cleanup thoughts from our discussion. I think I need to dive into one ...
6 years, 2 months ago (2014-10-20 19:28:05 UTC) #7
Nate Chapin
https://codereview.chromium.org/561813003/diff/120001/Source/core/fetch/ResourceFetcher.cpp File Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/561813003/diff/120001/Source/core/fetch/ResourceFetcher.cpp#newcode1155 Source/core/fetch/ResourceFetcher.cpp:1155: void ResourceFetcher::didLoadResource(Resource* resource) On 2014/10/20 19:28:04, dcheng wrote: > ...
6 years, 2 months ago (2014-10-21 22:00:09 UTC) #8
dcheng
LGTM. Even after looking over this and our discussions, I'm not sure I understand 100% ...
6 years, 2 months ago (2014-10-23 09:01:49 UTC) #9
Nate Chapin
On 2014/10/23 09:01:49, dcheng wrote: > LGTM. > > Even after looking over this and ...
6 years, 2 months ago (2014-10-23 18:52:55 UTC) #10
Nate Chapin
On 2014/10/23 09:01:49, dcheng wrote: > LGTM. > > Even after looking over this and ...
6 years, 2 months ago (2014-10-23 18:52:59 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/561813003/140001
6 years, 2 months ago (2014-10-23 19:08:05 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/28337) win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/33348)
6 years, 2 months ago (2014-10-23 21:02:32 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/561813003/140001
6 years, 2 months ago (2014-10-23 21:04:36 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/33364)
6 years, 2 months ago (2014-10-23 22:56:55 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/561813003/140001
6 years, 2 months ago (2014-10-23 23:00:05 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/28367)
6 years, 2 months ago (2014-10-24 00:44:15 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/561813003/160001
6 years, 2 months ago (2014-10-24 18:57:06 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/33533)
6 years, 2 months ago (2014-10-24 21:26:30 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/561813003/160001
6 years, 2 months ago (2014-10-24 21:27:15 UTC) #29
commit-bot: I haz the power
Committed patchset #9 (id:160001) as 184389
6 years, 2 months ago (2014-10-24 22:54:09 UTC) #30
Avi (use Gerrit)
On 2014/10/24 22:54:09, I haz the power (commit-bot) wrote: > Committed patchset #9 (id:160001) as ...
6 years, 1 month ago (2014-10-25 20:29:13 UTC) #31
Avi (use Gerrit)
6 years, 1 month ago (2014-10-25 23:48:43 UTC) #32
Message was sent while issue was closed.
On 2014/10/25 20:29:13, Avi wrote:
> On 2014/10/24 22:54:09, I haz the power (commit-bot) wrote:
> > Committed patchset #9 (id:160001) as 184389
> 
> Reverting in https://codereview.chromium.org/679863002 on suspicions that it's
> causing all the RSS test failures on the ASAN bots.

It appears that this indeed was the issue; with the revert and a roll, the bots
are green.

Powered by Google App Engine
This is Rietveld 408576698