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

Issue 2533983003: Move hacks for Inspector in restoreCachedResourceIfNeeded() to ResourceFetcher (Closed)

Created:
4 years ago by hiroshige
Modified:
3 years, 11 months ago
CC:
chromium-reviews, tyoshino+watch_chromium.org, blink-reviews-css, Yoav Weiss, dglazkov+blink, apavlov+blink_chromium.org, gavinp+loader_chromium.org, darktears, blink-reviews, loading-reviews+fetch_chromium.org, Nate Chapin, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move hacks for Inspector in restoreCachedResourceIfNeeded() to ResourceFetcher This CL moves the hacks for Inspector in: - CSSFontFaceSrcValue::restoreCachedResourceIfNeeded() - CSSImageValue::restoreCachedResourceIfNeeded() to ResourceFetcher, in order to - centralize the workaround and - prevent core/css from directly touching ImageResource objects (as preparation for Issue 667641). This CL replaces MixedContentChecker::shouldBlockFetch() calls with FetchContext::canRequest() (that calls shouldBlockFetch() inside it) to prevent layering violation (MixedContentChecker cannot be called directly from core/fetch). BUG=666214, 667641 Committed: https://crrev.com/c53087f6e68fe790901cedf96ae37e696d613848 Cr-Commit-Position: refs/heads/master@{#436877}

Patch Set 1 #

Patch Set 2 : Font #

Patch Set 3 : Make requestLoadStarted() private #

Patch Set 4 : Rebase #

Patch Set 5 : Rebase #

Total comments: 2

Patch Set 6 : dcheck #

Patch Set 7 : Rebase #

Patch Set 8 : Rebase #

Patch Set 9 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -36 lines) Patch
M third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.cpp View 1 2 3 4 5 2 chunks +5 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSImageValue.cpp View 1 2 chunks +5 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceFetcher.h View 1 2 3 4 5 6 3 chunks +13 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp View 1 2 3 4 5 6 1 chunk +17 lines, -0 lines 0 comments Download

Messages

Total messages: 47 (36 generated)
hiroshige
PTAL.
4 years ago (2016-11-29 15:40:46 UTC) #12
yhirano
https://codereview.chromium.org/2533983003/diff/80001/third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.cpp File third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.cpp (left): https://codereview.chromium.org/2533983003/diff/80001/third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.cpp#oldcode123 third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.cpp:123: request.setContentSecurityCheck(m_shouldCheckContentSecurityPolicy); This statement is missing in the new code.
4 years ago (2016-12-01 10:44:23 UTC) #21
hiroshige
https://codereview.chromium.org/2533983003/diff/80001/third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.cpp File third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.cpp (left): https://codereview.chromium.org/2533983003/diff/80001/third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.cpp#oldcode123 third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.cpp:123: request.setContentSecurityCheck(m_shouldCheckContentSecurityPolicy); On 2016/12/01 10:44:23, yhirano wrote: > This statement ...
4 years ago (2016-12-02 06:17:10 UTC) #24
yhirano
lgtm
4 years ago (2016-12-05 07:10:19 UTC) #29
tyoshino (SeeGerritForStatus)
drive-by lgtm
4 years ago (2016-12-06 15:13:23 UTC) #36
Nate Chapin
lgtm
4 years ago (2016-12-06 19:12:06 UTC) #37
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/2533983003/160001
4 years ago (2016-12-07 04:29:11 UTC) #40
annmariya
Thanks for sharing this valuable code.It helped me a lot. Waiting for this type of ...
4 years ago (2016-12-07 04:46:18 UTC) #41
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years ago (2016-12-07 06:14:43 UTC) #44
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/c53087f6e68fe790901cedf96ae37e696d613848 Cr-Commit-Position: refs/heads/master@{#436877}
4 years ago (2016-12-07 06:17:37 UTC) #46
baileybelmont
3 years, 11 months ago (2017-01-19 13:31:16 UTC) #47
Message was sent while issue was closed.
On 2016/12/07 04:46:18, annmariya wrote:
> Thanks for sharing this valuable code.It helped me a lot. Waiting for this
type
> of valuable code. I am a writer of essay writing service reviews. You can
> contact us for any writing help.

Hey! everyone here knows, that any student or just human can get any help,
connected with writing, coding or feeling alone at https://writingsguru.com

Powered by Google App Engine
This is Rietveld 408576698