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

Issue 1624583003: Reload Lo-Fi images inline instead of reloading the whole page (Closed)

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

Description

Reload Lo-Fi images inline instead of reloading the whole page For all ImageResource's in the document resources list that have "q=low" directives in the Chrome-Proxy response header, clear the old image data and reload with Lo-Fi disabled. BUG=506252 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/3f59410718b10864ebb27cc1e73ce98afc7ebc08 Cr-Commit-Position: refs/heads/master@{#373657}

Patch Set 1 : #

Patch Set 2 : use error instead #

Patch Set 3 : provisional load fix #

Total comments: 8

Patch Set 4 : japhet comments #

Total comments: 2

Patch Set 5 : adding blink test #

Total comments: 14

Patch Set 6 : creis comments #

Patch Set 7 : rebase #

Patch Set 8 : Added comment and test #

Total comments: 8

Patch Set 9 : creis comments #

Total comments: 2

Patch Set 10 : added comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+218 lines, -12 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java View 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuItemDelegate.java View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/snackbar/LoFiBarPopupController.java View 1 2 3 4 5 6 3 chunks +21 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java View 1 2 3 4 5 6 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tab/TabContextMenuItemDelegate.java View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_android.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_android.cc View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M content/common/frame_messages.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java View 2 chunks +6 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content_public/browser/WebContents.java View 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/browser/web_contents.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.h 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 +13 lines, -3 lines 0 comments Download
M content/renderer/render_frame_impl_browsertest.cc View 1 2 3 4 5 6 7 8 9 4 chunks +58 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ImageResource.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ImageResource.cpp View 1 2 3 4 5 6 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ImageResourceTest.cpp View 1 2 3 4 1 chunk +41 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceFetcher.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp View 1 2 3 4 5 6 2 chunks +12 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebLocalFrame.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (17 generated)
megjablon
PTAL, thanks! esprehn: third_party/*
4 years, 11 months ago (2016-01-23 02:13:11 UTC) #6
megjablon
esprehn seems busy. japhet, can you take a look at third_party/* thanks!
4 years, 10 months ago (2016-01-26 19:21:09 UTC) #9
Nate Chapin
https://codereview.chromium.org/1624583003/diff/80001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp File third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/1624583003/diff/80001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp#newcode1067 third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp:1067: if (resource && resource->isImage() && resource->response().httpHeaderField("chrome-proxy").contains("q=low")) { It seems ...
4 years, 10 months ago (2016-01-27 23:52:32 UTC) #11
megjablon
https://codereview.chromium.org/1624583003/diff/80001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp File third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/1624583003/diff/80001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp#newcode1067 third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp:1067: if (resource && resource->isImage() && resource->response().httpHeaderField("chrome-proxy").contains("q=low")) { On 2016/01/27 ...
4 years, 10 months ago (2016-01-28 00:44:56 UTC) #12
Nate Chapin
LGTM Starting a second load() on a given Resource sets off alarm bells in my ...
4 years, 10 months ago (2016-01-29 00:42:26 UTC) #14
megjablon
kenrb: content/common/frame_messages.h creis: content/* newt: chrome/*
4 years, 10 months ago (2016-01-29 20:24:30 UTC) #16
megjablon
https://codereview.chromium.org/1624583003/diff/100001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp File third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/1624583003/diff/100001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp#newcode1069 third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp:1069: imageResource->reloadIfLoFi(this); On 2016/01/29 00:42:26, Nate Chapin wrote: > Is ...
4 years, 10 months ago (2016-01-29 20:29:40 UTC) #17
kenrb
ipc lgtm
4 years, 10 months ago (2016-01-29 20:54:15 UTC) #18
newt (away)
chrome/android lgtm
4 years, 10 months ago (2016-01-29 21:03:18 UTC) #19
Charlie Reis
Seems generally ok, but I have some questions about state and the unrelated change to ...
4 years, 10 months ago (2016-01-29 23:01:12 UTC) #20
megjablon
https://chromiumcodereview.appspot.com/1624583003/diff/120001/content/public/browser/web_contents.h File content/public/browser/web_contents.h (right): https://chromiumcodereview.appspot.com/1624583003/diff/120001/content/public/browser/web_contents.h#newcode450 content/public/browser/web_contents.h:450: // reloads from the network. On 2016/01/29 23:01:12, Charlie ...
4 years, 10 months ago (2016-01-29 23:22:24 UTC) #21
Charlie Reis
Thanks. https://codereview.chromium.org/1624583003/diff/120001/content/public/browser/web_contents.h File content/public/browser/web_contents.h (right): https://codereview.chromium.org/1624583003/diff/120001/content/public/browser/web_contents.h#newcode450 content/public/browser/web_contents.h:450: // reloads from the network. On 2016/01/29 23:22:23, ...
4 years, 10 months ago (2016-01-29 23:52:00 UTC) #22
megjablon
https://codereview.chromium.org/1624583003/diff/120001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/1624583003/diff/120001/content/renderer/render_frame_impl.cc#newcode3094 content/renderer/render_frame_impl.cc:3094: if (is_main_frame_ && !navigation_state->WasWithinSamePage()) { On 2016/01/29 23:52:00, Charlie ...
4 years, 10 months ago (2016-01-30 08:30:09 UTC) #23
Charlie Reis
Thanks for the explanations. LGTM with the note below. https://codereview.chromium.org/1624583003/diff/120001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/1624583003/diff/120001/content/renderer/render_frame_impl.cc#newcode3094 content/renderer/render_frame_impl.cc:3094: ...
4 years, 10 months ago (2016-02-01 22:12:00 UTC) #24
megjablon
@creis Added test in render_frame_impl_browsertest.cc. PTAL https://codereview.chromium.org/1624583003/diff/120001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/1624583003/diff/120001/content/renderer/render_frame_impl.cc#newcode3094 content/renderer/render_frame_impl.cc:3094: if (is_main_frame_ && ...
4 years, 10 months ago (2016-02-04 02:37:26 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1624583003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1624583003/180001
4 years, 10 months ago (2016-02-04 19:11:13 UTC) #28
Charlie Reis
Thanks for the test! I think it's worth covering the subframe cross-document navigation case as ...
4 years, 10 months ago (2016-02-04 19:30:30 UTC) #30
megjablon
https://chromiumcodereview.appspot.com/1624583003/diff/180001/content/renderer/render_frame_impl_browsertest.cc File content/renderer/render_frame_impl_browsertest.cc (right): https://chromiumcodereview.appspot.com/1624583003/diff/180001/content/renderer/render_frame_impl_browsertest.cc#newcode43 content/renderer/render_frame_impl_browsertest.cc:43: EXPECT_TRUE(static_cast<RenderFrameImpl*>(view_->GetMainRenderFrame()) On 2016/02/04 19:30:30, Charlie Reis wrote: > nit: ...
4 years, 10 months ago (2016-02-04 20:02:32 UTC) #31
Charlie Reis
https://codereview.chromium.org/1624583003/diff/200001/content/renderer/render_frame_impl_browsertest.cc File content/renderer/render_frame_impl_browsertest.cc (right): https://codereview.chromium.org/1624583003/diff/200001/content/renderer/render_frame_impl_browsertest.cc#newcode231 content/renderer/render_frame_impl_browsertest.cc:231: EXPECT_TRUE(frame()->IsUsingLoFi()); This last line looks like the wrong behavior ...
4 years, 10 months ago (2016-02-04 20:08:35 UTC) #32
megjablon
https://chromiumcodereview.appspot.com/1624583003/diff/200001/content/renderer/render_frame_impl_browsertest.cc File content/renderer/render_frame_impl_browsertest.cc (right): https://chromiumcodereview.appspot.com/1624583003/diff/200001/content/renderer/render_frame_impl_browsertest.cc#newcode231 content/renderer/render_frame_impl_browsertest.cc:231: EXPECT_TRUE(frame()->IsUsingLoFi()); On 2016/02/04 20:08:35, Charlie Reis wrote: > This ...
4 years, 10 months ago (2016-02-04 20:48:09 UTC) #33
Charlie Reis
Thanks, LGTM.
4 years, 10 months ago (2016-02-04 21:21:22 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1624583003/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1624583003/220001
4 years, 10 months ago (2016-02-04 21:38:31 UTC) #37
commit-bot: I haz the power
Committed patchset #10 (id:220001)
4 years, 10 months ago (2016-02-04 23:28:03 UTC) #39
commit-bot: I haz the power
4 years, 10 months ago (2016-02-04 23:29:07 UTC) #41
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/3f59410718b10864ebb27cc1e73ce98afc7ebc08
Cr-Commit-Position: refs/heads/master@{#373657}

Powered by Google App Engine
This is Rietveld 408576698