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

Issue 2114213002: Fix loading placeholders for Lo-Fi (Closed)

Created:
4 years, 5 months ago by megjablon
Modified:
4 years, 5 months ago
CC:
blink-reviews, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, gavinp+loader_chromium.org, jam, Nate Chapin, loading-reviews+fetch_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, tyoshino+watch_chromium.org, Yoav Weiss
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix loading placeholders for Lo-Fi WebURLRequest and RequestExtraData Lo-Fi state became out of sync. Remove Lo-Fi state from RequestExtraData and keep updated on the WebUrlRequest. This allows us to change the state in WebKit where we cannot update extra data and pass along on RequestInfo, rather than update extra data later. Synchronously update the Lo-Fi state in RenderFrameImpl so new frame are not created with the old state during the asynchronous frame message. Also, clear the image resource, notify observers, and force a reload when the original request had Lo-Fi on. If the image was already loaded, make sure the image had a Lo-Fi response before reloading. BUG=620203 Committed: https://crrev.com/7c7c3a25861b8e0a27ef7a9a0115f1ec9ea772b5 Cr-Commit-Position: refs/heads/master@{#405353}

Patch Set 1 #

Total comments: 2

Patch Set 2 : addressing comment and fixing frame issue #

Patch Set 3 : patch 2124453002 #

Patch Set 4 : update test #

Total comments: 7

Patch Set 5 : whitespace fix and rebase #

Total comments: 3

Patch Set 6 : remove frame race fix #

Patch Set 7 : git cl try #

Patch Set 8 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -26 lines) Patch
M content/child/request_extra_data.h View 2 chunks +0 lines, -7 lines 0 comments Download
M content/child/request_extra_data.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/child/request_info.h View 2 chunks +5 lines, -0 lines 0 comments Download
M content/child/request_info.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/child/resource_dispatcher.cc View 1 2 3 4 5 6 2 chunks +1 line, -1 line 0 comments Download
M content/child/web_url_loader_impl.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 3 chunks +15 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ImageResource.cpp View 1 2 3 4 5 6 1 chunk +6 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ImageResourceTest.cpp View 1 2 3 4 5 6 2 chunks +11 lines, -4 lines 0 comments Download

Messages

Total messages: 53 (26 generated)
megjablon
creis: content/* hiroshige: ImageResource.cpp
4 years, 5 months ago (2016-07-02 02:20:42 UTC) #5
hiroshige
Thanks for fixing! Could you add a test for this issue? I created https://codereview.chromium.org/2124453002/ for ...
4 years, 5 months ago (2016-07-04 12:02:29 UTC) #9
Charlie Reis
[+clamy, mkwst] Hmm, I'm not a great reviewer for these content/child changes, since I'm not ...
4 years, 5 months ago (2016-07-06 18:49:58 UTC) #11
megjablon
Merged in hiroshige's test cl. Looking into how to write content tests for this. I ...
4 years, 5 months ago (2016-07-07 00:51:57 UTC) #13
hiroshige
Blink-side non-owner lgtm. https://codereview.chromium.org/2114213002/diff/100001/third_party/WebKit/Source/core/fetch/ImageResource.cpp File third_party/WebKit/Source/core/fetch/ImageResource.cpp (right): https://codereview.chromium.org/2114213002/diff/100001/third_party/WebKit/Source/core/fetch/ImageResource.cpp#newcode514 third_party/WebKit/Source/core/fetch/ImageResource.cpp:514: if (m_resourceRequest.loFiState() != WebURLRequest::LoFiOn) nit: two ...
4 years, 5 months ago (2016-07-07 05:21:58 UTC) #15
hiroshige
FYI the changes to ImageResourceTest are not mergeable (at least simply), because it uses |jpegImage2| ...
4 years, 5 months ago (2016-07-07 06:25:56 UTC) #16
clamy
Thanks! A few questions below. https://codereview.chromium.org/2114213002/diff/100001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/2114213002/diff/100001/content/browser/web_contents/web_contents_impl.cc#newcode2564 content/browser/web_contents/web_contents_impl.cc:2564: SendToAllFrames(new FrameMsg_DisableLoFiImages(MSG_ROUTING_NONE)); I'm not ...
4 years, 5 months ago (2016-07-07 15:16:30 UTC) #17
megjablon
https://codereview.chromium.org/2114213002/diff/100001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/2114213002/diff/100001/content/browser/web_contents/web_contents_impl.cc#newcode2564 content/browser/web_contents/web_contents_impl.cc:2564: SendToAllFrames(new FrameMsg_DisableLoFiImages(MSG_ROUTING_NONE)); On 2016/07/07 15:16:30, clamy wrote: > I'm ...
4 years, 5 months ago (2016-07-07 19:31:52 UTC) #18
clamy
https://codereview.chromium.org/2114213002/diff/100001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/2114213002/diff/100001/content/browser/web_contents/web_contents_impl.cc#newcode2564 content/browser/web_contents/web_contents_impl.cc:2564: SendToAllFrames(new FrameMsg_DisableLoFiImages(MSG_ROUTING_NONE)); On 2016/07/07 19:31:52, megjablon wrote: > On ...
4 years, 5 months ago (2016-07-08 14:46:26 UTC) #19
megjablon
On 2016/07/08 14:46:26, clamy wrote: > https://codereview.chromium.org/2114213002/diff/100001/content/browser/web_contents/web_contents_impl.cc > File content/browser/web_contents/web_contents_impl.cc (right): > > https://codereview.chromium.org/2114213002/diff/100001/content/browser/web_contents/web_contents_impl.cc#newcode2564 > ...
4 years, 5 months ago (2016-07-08 19:03:21 UTC) #20
clamy
On 2016/07/08 19:03:21, megjablon wrote: > On 2016/07/08 14:46:26, clamy wrote: > > > https://codereview.chromium.org/2114213002/diff/100001/content/browser/web_contents/web_contents_impl.cc ...
4 years, 5 months ago (2016-07-11 12:49:04 UTC) #21
megjablon
nasko: frame_messages.h esprehn: WebKit
4 years, 5 months ago (2016-07-11 17:53:36 UTC) #23
nasko
Not LGTM for now, as sync messages from browser to renderer are disallowed in Chromium. ...
4 years, 5 months ago (2016-07-12 19:03:57 UTC) #25
Charlie Reis
https://codereview.chromium.org/2114213002/diff/120001/content/common/frame_messages.h File content/common/frame_messages.h (right): https://codereview.chromium.org/2114213002/diff/120001/content/common/frame_messages.h#newcode640 content/common/frame_messages.h:640: IPC_SYNC_MESSAGE_ROUTED0_0(FrameMsg_DisableLoFiImages) On 2016/07/12 19:03:57, nasko wrote: > Why is ...
4 years, 5 months ago (2016-07-12 19:17:06 UTC) #26
megjablon
On 2016/07/12 19:17:06, Charlie Reis wrote: > https://codereview.chromium.org/2114213002/diff/120001/content/common/frame_messages.h > File content/common/frame_messages.h (right): > > https://codereview.chromium.org/2114213002/diff/120001/content/common/frame_messages.h#newcode640 ...
4 years, 5 months ago (2016-07-12 21:12:06 UTC) #28
nasko
On 2016/07/12 21:12:06, megjablon wrote: > On 2016/07/12 19:17:06, Charlie Reis wrote: > > > ...
4 years, 5 months ago (2016-07-12 23:26:09 UTC) #29
megjablon
On 2016/07/12 23:26:09, nasko wrote: > On 2016/07/12 21:12:06, megjablon wrote: > > On 2016/07/12 ...
4 years, 5 months ago (2016-07-12 23:45:02 UTC) #30
esprehn
dcheng@ and japhet@ does this look okay to you? megjablon is trying to make M52 ...
4 years, 5 months ago (2016-07-13 00:35:21 UTC) #32
esprehn
On 2016/07/13 at 00:35:21, esprehn wrote: > dcheng@ and japhet@ does this look okay to ...
4 years, 5 months ago (2016-07-13 00:35:34 UTC) #33
dcheng
the changes lgtm. i am a bit curious how we decide whether something goes in ...
4 years, 5 months ago (2016-07-13 14:11:42 UTC) #34
nasko
Now that there are no more IPC changes, LGTM based on clamy@'s review.
4 years, 5 months ago (2016-07-13 14:36:01 UTC) #35
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/2114213002/160001
4 years, 5 months ago (2016-07-13 19:14:59 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/217483) linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 5 months ago (2016-07-13 19:22:04 UTC) #41
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/2114213002/220001
4 years, 5 months ago (2016-07-13 23:48:55 UTC) #48
commit-bot: I haz the power
Committed patchset #8 (id:220001)
4 years, 5 months ago (2016-07-13 23:56:21 UTC) #50
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-13 23:56:57 UTC) #51
commit-bot: I haz the power
4 years, 5 months ago (2016-07-13 23:58:32 UTC) #53
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/7c7c3a25861b8e0a27ef7a9a0115f1ec9ea772b5
Cr-Commit-Position: refs/heads/master@{#405353}

Powered by Google App Engine
This is Rietveld 408576698