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

Issue 1515963005: SVGImage: check requestCount() to check all subresources are loaded (Closed)

Created:
5 years ago by hiroshige
Modified:
3 years, 7 months ago
Reviewers:
kouhei (in TOK)
CC:
chromium-reviews, tyoshino+watch_chromium.org, krit, rwlbuis, fs, kouhei+svg_chromium.org, loading-reviews_chromium.org, f(malita), gavinp+loader_chromium.org, blink-reviews, gyuyoung2, Stephen Chennney, Nate Chapin, pdr+svgwatchlist_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

SVGImage: check requestCount() to check all subresources are loaded Document::loadEventFinished() was used to check all subresources of SVG are loaded in RELEASE_ASSERT() added by https://chromiumcodereview.appspot.com/22999031. However, it is sufficient to check that ResourceFetcher::requestCount() is zero and we don't have to wait load event completion of the SVG document. This CL changes the RELEASE_ASSERT() to check ResourceFetcher::requestCount(). Also, this CL checks the assertion in ImageLoader::notifyFinished(), because currentFrameHasSingleSecurityOrigin() can be called anytime after |ImageLoader::m_imageComplete| is set to true in notifyFinished() and thus the assertion must hold at that point. This is preparation for https://codereview.chromium.org/1475863005/, which will invoke SVG Document's load event async and thus the load event completion can be after SVGImage::currentFrameHasSingleSecurityOrigin() is called. This CL is reverted due to Issue 382170, and will be relanded as [5/5] of CLs for Issue 382170, after the issue is fixed by [1/5], [2/5], and [3/5]. [1/5] Make fonts with data: URLs to be served by resourceForStaticData(). https://codereview.chromium.org/1700233003/ [2/5] Do not reload FontResource created by resourceForStaticData(). https://codereview.chromium.org/1704693002/ [3/5] Make invalid data: URLs to be served by resourceForStaticData(). https://codereview.chromium.org/1707013002/ [4/5] Add layout tests. https://codereview.chromium.org/1699323002/ [5/5] Check SVG's subresource load completion in ImageLoader::notifyFinished(). https://codereview.chromium.org/1515963005/ (This CL) BUG=382170, 569511 Committed: https://crrev.com/3065748ccfc14c45da2e151348b85d34d94bf76b Cr-Commit-Position: refs/heads/master@{#365164}

Patch Set 1 #

Patch Set 2 : ASSERT(m_page) #

Patch Set 3 : Rebase. #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : Rebase. #

Patch Set 7 : Rebase. #

Patch Set 8 : #

Patch Set 9 : Rebase #

Patch Set 10 : Rebase. #

Patch Set 11 : auto-Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -4 lines) Patch
M third_party/WebKit/Source/core/loader/ImageLoader.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/graphics/SVGImage.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp View 1 2 3 4 5 6 2 chunks +9 lines, -3 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 52 (28 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1515963005/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1515963005/1
5 years ago (2015-12-11 10:09:51 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-12-11 13:18:03 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1515963005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1515963005/20001
5 years ago (2015-12-14 05:48:58 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-12-14 07:07:59 UTC) #8
hiroshige
PTAL.
5 years ago (2015-12-14 11:52:07 UTC) #12
kouhei (in TOK)
lgtm
5 years ago (2015-12-15 05:19:21 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1515963005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1515963005/20001
5 years ago (2015-12-15 05:25:06 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years ago (2015-12-15 05:34:55 UTC) #17
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/3065748ccfc14c45da2e151348b85d34d94bf76b Cr-Commit-Position: refs/heads/master@{#365164}
5 years ago (2015-12-15 05:35:50 UTC) #19
hiroshige
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/1544473004/ by hiroshige@chromium.org. ...
5 years ago (2015-12-22 02:58:53 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1515963005/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1515963005/40001
4 years, 10 months ago (2016-02-17 02:26:43 UTC) #23
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-17 04:02:08 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1515963005/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1515963005/60001
4 years, 9 months ago (2016-02-29 19:46:38 UTC) #27
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/152676) win_chromium_rel_ng on ...
4 years, 9 months ago (2016-02-29 20:25:48 UTC) #29
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1515963005/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1515963005/80001
4 years, 9 months ago (2016-03-01 01:07:06 UTC) #31
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-01 04:28:42 UTC) #33
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1515963005/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1515963005/100001
4 years, 9 months ago (2016-03-02 01:16:07 UTC) #38
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-02 04:01:51 UTC) #40
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1515963005/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1515963005/120001
4 years, 8 months ago (2016-03-28 22:08:37 UTC) #42
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/201308)
4 years, 8 months ago (2016-03-28 22:55:41 UTC) #44
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1515963005/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1515963005/140001
4 years, 8 months ago (2016-03-29 03:33:32 UTC) #46
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_blink_oilpan_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_blink_oilpan_rel/builds/22544)
4 years, 8 months ago (2016-03-29 04:38:38 UTC) #48
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1515963005/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1515963005/180001
4 years, 8 months ago (2016-03-29 17:40:17 UTC) #50
commit-bot: I haz the power
4 years, 8 months ago (2016-03-29 18:47:05 UTC) #52
Dry run: Try jobs failed on following builders:
  linux_blink_oilpan_rel on tryserver.chromium.linux (JOB_FAILED,
http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_blink_oil...)

Powered by Google App Engine
This is Rietveld 408576698