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

Issue 673603002: Reland: Make the HTMLDocumentParser yield more aggressively (Closed)

Created:
6 years, 2 months ago by kouhei (in TOK)
Modified:
5 years, 11 months ago
CC:
blink-reviews, dglazkov+blink, blink-reviews-html_chromium.org, sullivan
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Reland: Make the HTMLDocumentParser yield more aggressively The patch caused failure in Android DumpAccessibilityTreeTest.ACcessibilityANoText. However, it turns out the expectation of the test is currently wrong. The test is disabled in Chromium tree as of now, and I'll rebaseline the test after this patch is landed. --- Based on eseidel@'s CL: https://codereview.chromium.org/258013009/ Before this CL, HTMLDocumentParser::didReceiveParsedChunkFromBackgroundParser parsed the received chunk inline. This was problematic because the function is invoked in IPC priority, and DOM construction can block other time critical tasks. This CL stops inline parsing and didReceiveParsedChunkFromBackgroundParser is changed to always defer the processing. Note that this also changes how HTMLPreloader is scheduled. Before this CL, the preloader was not invoked when pump was done inline from didReceiveParsedChunkFromBackgroundParser. However, this CL ensures that the preloader is always invoked for all confirmed tokens so that resource loading would not be delayed from running slow synchronous scripts. This CL also delays the preloader invocation until appcache is initialized, so that preloader requests would respect it. Rebaselines due to preloader being invoked more eagerly: inspector/tracing/timeline-script-tag-1.html fast/dom/HTMLLinkElement/link-and-subresource-test.html permissionclient/image-permissions.html tables/mozilla_expected_failures/bugs/bug128876.html BUG=356292, 421300 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=188275 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=188369

Patch Set 1 #

Patch Set 2 : rebased #

Patch Set 3 : rebaseline tests #

Patch Set 4 : a #

Patch Set 5 : wip #

Patch Set 6 : wip #

Patch Set 7 : rebased #

Patch Set 8 : rebased #

Patch Set 9 : rebased #

Total comments: 1

Patch Set 10 : scheduled for resume #

Patch Set 11 : fix preload #

Patch Set 12 : attempt to fix tests #

Patch Set 13 : move assert #

Patch Set 14 : merge all in review cls for trybot #

Patch Set 15 : speculative crash fix #

Patch Set 16 : speculative crash fix 2 #

Patch Set 17 : rebase / speculative fix 3 #

Patch Set 18 : merge 625583002 for trybots #

Patch Set 19 : trybot run #

Patch Set 20 : trybot run2 #

Patch Set 21 : attempt to deflake #

Patch Set 22 : trybot #

Patch Set 23 : forbid nested pumps #

Patch Set 24 : rebased #

Patch Set 25 : rebased #

Patch Set 26 : for review #

Patch Set 27 : rebase #

Patch Set 28 : revert ASSERT changes #

Total comments: 2

Patch Set 29 : rebase & add comment #

Patch Set 30 : rebase #

Patch Set 31 : rebased #

Patch Set 32 : rebased #

Patch Set 33 : more rebaselines #

Patch Set 34 : rebased #

Patch Set 35 : rebase #

Patch Set 36 : rebaselined #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -35 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 1 chunk +3 lines, -0 lines 0 comments Download
M LayoutTests/fast/dom/HTMLLinkElement/link-and-subresource-test-expected.txt View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/http/tests/inspector/network/network-initiator-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/mixedContent/insecure-empty-srcset-in-main-frame-blocked-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/mixedContent/insecure-image-in-iframe-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/mixedContent/insecure-image-in-main-frame-allowed-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/mixedContent/insecure-image-in-main-frame-blocked-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/mixedContent/insecure-image-in-main-frame-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/mixedContent/insecure-picture-in-main-frame-blocked-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/mixedContent/insecure-srcset-in-main-frame-blocked-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/mixedContent/strict-mode-image-in-frame-blocked.https-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/mixedContent/strict-mode-via-pref-image-blocked.https-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/inspector/tracing/timeline-script-tag-1-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +8 lines, -10 lines 0 comments Download
M LayoutTests/permissionclient/image-permissions-expected.txt View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/tables/mozilla_expected_failures/bugs/bug128876-expected.txt View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/parser/HTMLDocumentParser.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/parser/HTMLDocumentParser.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 2 chunks +24 lines, -15 lines 0 comments Download

Messages

Total messages: 39 (15 generated)
kouhei (in TOK)
Finally done with yak shaving HTMLPreloader bugs, so we can hopefully land this now. Would ...
6 years, 1 month ago (2014-11-19 04:42:54 UTC) #3
kouhei (in TOK)
tyoshino-san: Would you take a look?
6 years, 1 month ago (2014-11-19 05:44:46 UTC) #5
kouhei (in TOK)
Sorry. Please hold on review. This is passing on my local mac/linux, but trybots seems ...
6 years, 1 month ago (2014-11-21 08:56:23 UTC) #6
kouhei (in TOK)
Yay! Bots are green finally. I'm splitting the CLs so that we can land this ...
6 years ago (2014-12-02 05:09:51 UTC) #8
kouhei (in TOK)
Ready for review now. PTAL
6 years ago (2014-12-03 03:25:46 UTC) #9
tyoshino (SeeGerritForStatus)
Please write something in the CL description about the appcache related change in didReceiveParsedChunkFromBackgroundParser().
6 years ago (2014-12-04 06:33:33 UTC) #10
tyoshino (SeeGerritForStatus)
lg. some comment writing requests https://codereview.chromium.org/673603002/diff/580001/Source/core/html/parser/HTMLDocumentParser.cpp File Source/core/html/parser/HTMLDocumentParser.cpp (right): https://codereview.chromium.org/673603002/diff/580001/Source/core/html/parser/HTMLDocumentParser.cpp#newcode341 Source/core/html/parser/HTMLDocumentParser.cpp:341: ASSERT(m_queuedPreloads.isEmpty()); please write the ...
6 years ago (2014-12-04 06:48:21 UTC) #11
kouhei (in TOK)
On 2014/12/04 06:33:33, tyoshino wrote: > Please write something in the CL description about the ...
6 years ago (2014-12-04 08:00:38 UTC) #12
tyoshino (SeeGerritForStatus)
lgtm In CL description: timeline-script-tag -> timeline-script-tag-1 image-permissions-expected.txt -> image-permissions.html
6 years ago (2014-12-04 08:48:58 UTC) #13
kouhei (in TOK)
Thanks. Will send to CQ once https://codereview.chromium.org/774033002/ is landed.
6 years ago (2014-12-05 04:02:16 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/673603002/660001
5 years, 11 months ago (2015-01-07 07:11:36 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/41121)
5 years, 11 months ago (2015-01-07 08:25:17 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/673603002/700001
5 years, 11 months ago (2015-01-09 04:29:32 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/41457)
5 years, 11 months ago (2015-01-09 05:46:16 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/673603002/720001
5 years, 11 months ago (2015-01-13 05:56:08 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/41881)
5 years, 11 months ago (2015-01-13 07:10:26 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/673603002/740001
5 years, 11 months ago (2015-01-13 07:44:23 UTC) #28
commit-bot: I haz the power
Committed patchset #36 (id:740001) as https://src.chromium.org/viewvc/blink?view=rev&revision=188275
5 years, 11 months ago (2015-01-13 08:55:08 UTC) #29
Zhenyao Mo
A revert of this CL (patchset #36 id:740001) has been created in https://codereview.chromium.org/847193002/ by zmo@chromium.org. ...
5 years, 11 months ago (2015-01-13 17:44:08 UTC) #30
kouhei (in TOK)
On 2015/01/13 17:44:08, Zhenyao Mo wrote: > A revert of this CL (patchset #36 id:740001) ...
5 years, 11 months ago (2015-01-14 07:43:48 UTC) #32
dmazzoni
On 2015/01/14 07:43:48, kouhei wrote: > dmazzoni: Can I land this patch and rebaseline the ...
5 years, 11 months ago (2015-01-14 07:45:30 UTC) #33
kouhei (in TOK)
On 2015/01/14 07:45:30, dmazzoni wrote: > On 2015/01/14 07:43:48, kouhei wrote: > > dmazzoni: Can ...
5 years, 11 months ago (2015-01-14 09:22:08 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/673603002/740001
5 years, 11 months ago (2015-01-14 09:29:05 UTC) #38
commit-bot: I haz the power
5 years, 11 months ago (2015-01-14 09:30:05 UTC) #39
Message was sent while issue was closed.
Committed patchset #36 (id:740001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=188369

Powered by Google App Engine
This is Rietveld 408576698