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

Issue 1667843003: Make Resource RefCountedWillBeGarbageCollectedFinalized, attempt #2 (Closed)

Created:
4 years, 10 months ago by Nate Chapin
Modified:
4 years, 10 months ago
Reviewers:
haraken
CC:
chromium-reviews, szager+layoutwatch_chromium.org, webcomponents-bugzilla_chromium.org, dshwang, eae+blinkwatch, fs, dcheng, apavlov+blink_chromium.org, kinuko+watch, kouhei+svg_chromium.org, rwlbuis, Yoav Weiss, krit, blink-reviews-css, blink-reviews-html_chromium.org, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews-bindings_chromium.org, gavinp+loader_chromium.org, jchaffraix+rendering, devtools-reviews_chromium.org, blink-reviews, gyuyoung2, pdr+svgwatchlist_chromium.org, blink-reviews-style_chromium.org, zoltan1, blink-reviews-paint_chromium.org, blink-reviews-layout_chromium.org, sof, caseq+blink_chromium.org, lushnikov+blink_chromium.org, loading-reviews_chromium.org, darktears, loading-reviews+fetch_chromium.org, Stephen Chennney, tyoshino+watch_chromium.org, gavinp+prerender_chromium.org, tfarina, pdr+renderingwatchlist_chromium.org, leviw+renderwatch, slimming-paint-reviews_chromium.org, pfeldman+blink_chromium.org, f(malita), sergeyv+blink_chromium.org, kozyatinskiy+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make Resource RefCountedWillBeGarbageCollectedFinalized, attempt #2 Resource's lifetime is currently managed by an unholy mix of factors that would ideally be represented in a more canonical way. Historically, some of this was necessary, and it was glossed over because of ResourcePtr which, in addition to keeping the Resource alive, performed a key part of revalidation handling in the case of a 304. Now that ResourcePtr's revalidation behavior has been removed, standardize Resource's lifetime management. BUG=571190 Committed: https://crrev.com/486e98700f552d7a5c4fbc1b3a9b5e9f2a6cf934 Cr-Commit-Position: refs/heads/master@{#374220}

Patch Set 1 #

Patch Set 2 : Fix known issues #

Total comments: 10

Patch Set 3 : Rebase + address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+670 lines, -949 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/ScriptSourceCode.h View 3 chunks +1 line, -5 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptSourceCode.cpp View 3 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.h View 1 5 chunks +6 lines, -21 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp View 1 2 4 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptStreamerTest.cpp View 1 2 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8ScriptRunnerTest.cpp View 4 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/clipboard/DataTransfer.h View 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/clipboard/DataTransfer.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/core.gypi View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSCrossfadeValue.h View 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSCrossfadeValue.cpp View 3 chunks +10 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.h View 3 chunks +27 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.cpp View 1 2 3 chunks +9 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSImageSetValue.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/CSSImageValue.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/CSSSVGDocumentValue.h View 2 chunks +6 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSStyleSheetResourceTest.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/FontFace.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/FontLoader.h View 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/FontLoader.cpp View 3 chunks +22 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/css/RemoteFontFaceSource.h View 1 2 3 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp View 1 2 3 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/StyleRuleImport.h View 3 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/StyleRuleImport.cpp View 3 chunks +11 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/PendingScript.h View 1 2 4 chunks +7 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/PendingScript.cpp View 1 2 2 chunks +26 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/ScriptLoader.h View 1 2 4 chunks +3 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ScriptLoader.cpp View 1 2 5 chunks +4 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ScriptRunner.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.h View 3 chunks +5 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp View 2 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/CachingCorrectnessTest.cpp View 27 chunks +48 lines, -49 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/DocumentResource.h View 4 chunks +4 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/DocumentResource.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/fetch/DocumentResourceReference.h View 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/FontResource.h View 3 chunks +6 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/FontResource.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/fetch/ImageResource.h View 1 2 3 chunks +18 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ImageResource.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ImageResourceTest.cpp View 1 2 6 chunks +5 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/LinkFetchResource.h View 3 chunks +3 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/LinkFetchResource.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/fetch/MemoryCache.h View 4 chunks +2 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/MemoryCache.cpp View 13 chunks +11 lines, -67 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/MemoryCacheTest.cpp View 17 chunks +112 lines, -102 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/MockImageResourceClient.h View 1 chunk +2 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/MockImageResourceClient.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/RawResource.h View 4 chunks +17 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/RawResource.cpp View 1 2 11 chunks +15 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/RawResourceTest.cpp View 6 chunks +6 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/Resource.h View 14 chunks +12 lines, -56 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/Resource.cpp View 16 chunks +18 lines, -97 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceFetcher.h View 1 2 5 chunks +5 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp View 1 2 10 chunks +12 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceFetcherTest.cpp View 13 chunks +15 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceLoader.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceLoader.cpp View 15 chunks +17 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceOwner.h View 1 chunk +12 lines, -9 lines 0 comments Download
D third_party/WebKit/Source/core/fetch/ResourcePtr.h View 1 chunk +0 lines, -122 lines 0 comments Download
D third_party/WebKit/Source/core/fetch/ResourcePtr.cpp View 1 chunk +0 lines, -41 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceTest.cpp View 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ScriptResource.h View 2 chunks +9 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ScriptResource.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/TextResource.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/fetch/XSLStyleSheetResource.h View 3 chunks +4 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/XSLStyleSheetResource.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/frame/ImageBitmapTest.cpp View 5 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/frame/SubresourceIntegrityTest.cpp View 3 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLImageElement.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/imports/HTMLImportLoader.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/imports/HTMLImportLoader.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/imports/HTMLImportsController.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLScriptRunner.cpp View 1 2 4 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorInstrumentation.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorInstrumentation.idl View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorResourceAgent.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorResourceAgent.cpp View 1 2 2 chunks +8 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorResourceContentLoader.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorResourceContentLoader.cpp View 4 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/NetworkResourcesData.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/NetworkResourcesData.cpp View 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutImageResource.h View 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutImageResourceStyleImage.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/DocumentLoader.h View 3 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/loader/DocumentLoader.cpp View 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/loader/DocumentThreadableLoader.h View 1 chunk +3 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/ImageLoader.h View 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/loader/ImageLoader.cpp View 5 chunks +6 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/loader/LinkLoader.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/LinkLoader.cpp View 1 2 1 chunk +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/loader/LinkLoaderTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerFilterInfo.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/style/StyleFetchedImage.h View 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/style/StyleFetchedImage.cpp View 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/style/StyleFetchedImageSet.h View 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/style/StyleFetchedImageSet.cpp View 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGFEImageElement.h View 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGFEImageElement.cpp View 1 2 3 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGUseElement.h View 4 chunks +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGUseElement.cpp View 1 2 5 chunks +13 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/xml/XSLImportRule.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/xml/XSLImportRule.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/xml/XSLTProcessorLibxslt.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.h View 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp View 7 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 5 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 24 (10 generated)
Nate Chapin
Let's try this again! :) To see the bug fixes, diff between Patch Sets 1 ...
4 years, 10 months ago (2016-02-04 23:24:38 UTC) #3
haraken
https://codereview.chromium.org/1667843003/diff/20001/third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.cpp File third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.cpp (right): https://codereview.chromium.org/1667843003/diff/20001/third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.cpp#newcode104 third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.cpp:104: return m_fetched->resource(); With the above fix, m_fetched can be ...
4 years, 10 months ago (2016-02-04 23:56:30 UTC) #4
Nate Chapin
https://codereview.chromium.org/1667843003/diff/20001/third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.cpp File third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.cpp (right): https://codereview.chromium.org/1667843003/diff/20001/third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.cpp#newcode104 third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.cpp:104: return m_fetched->resource(); On 2016/02/04 23:56:30, haraken wrote: > > ...
4 years, 10 months ago (2016-02-06 00:34:07 UTC) #5
haraken
LGTM to reland.
4 years, 10 months ago (2016-02-06 01:41:48 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1667843003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1667843003/40001
4 years, 10 months ago (2016-02-08 17:28:21 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/19804)
4 years, 10 months ago (2016-02-08 20:49:41 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1667843003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1667843003/40001
4 years, 10 months ago (2016-02-08 20:56:43 UTC) #12
commit-bot: I haz the power
Failed to request the patch to try. Please note that binary files are still unsupported ...
4 years, 10 months ago (2016-02-08 23:27:35 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1667843003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1667843003/40001
4 years, 10 months ago (2016-02-08 23:42:32 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 10 months ago (2016-02-08 23:55:57 UTC) #19
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/486e98700f552d7a5c4fbc1b3a9b5e9f2a6cf934 Cr-Commit-Position: refs/heads/master@{#374220}
4 years, 10 months ago (2016-02-08 23:57:13 UTC) #21
please use gerrit instead
On 2016/02/08 23:57:13, commit-bot: I haz the power wrote: > Patchset 3 (id:??) landed as ...
4 years, 10 months ago (2016-02-09 00:37:57 UTC) #22
please use gerrit instead
Please fix this failure, if it's caused by your patch: Regressions: Unexpected text-only failures (1) ...
4 years, 10 months ago (2016-02-09 00:41:07 UTC) #23
Nate Chapin
4 years, 10 months ago (2016-02-09 19:49:57 UTC) #24
Message was sent while issue was closed.
On 2016/02/09 00:41:07, Rouslan wrote:
> Please fix this failure, if it's caused by your patch:
> 
> Regressions: Unexpected text-only failures (1)
>   css3/fonts/font-style-matching-5.html [ Failure ]
> 
>
https://build.chromium.org/p/chromium.webkit/builders/WebKit%20Linux%20Trusty...

Based on
http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=css...,
it looks like this test has been flaky for the last few days. I don't see any
particular evidence that this patch made it more flaky. Did I miss something?

Powered by Google App Engine
This is Rietveld 408576698