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

Issue 11635059: navigation: Retain a screenshot of the page before it unloads (Closed)

Created:
8 years ago by sadrul
Modified:
8 years ago
Reviewers:
Charlie Reis
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, DaveMoore
Visibility:
Public.

Description

navigation: Retain a screenshot of the page before it unloads This screenshot is used during the overscroll navigation to display a preview of the page. BUG=160668 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=174499

Patch Set 1 #

Patch Set 2 : . #

Total comments: 1

Patch Set 3 : . #

Total comments: 2

Patch Set 4 : . #

Patch Set 5 : . #

Total comments: 18

Patch Set 6 : . #

Patch Set 7 : . #

Patch Set 8 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -0 lines) Patch
M content/browser/web_contents/navigation_controller_impl.h View 1 2 3 4 5 2 chunks +13 lines, -0 lines 0 comments Download
M content/browser/web_contents/navigation_controller_impl.cc View 1 2 3 4 5 4 chunks +67 lines, -0 lines 0 comments Download
M content/browser/web_contents/navigation_entry_impl.h View 1 2 3 4 5 2 chunks +14 lines, -0 lines 0 comments Download
M content/browser/web_contents/navigation_entry_impl.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_view_aura_browsertest.cc View 1 2 3 4 5 6 7 2 chunks +101 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
sadrul
Hi! The follow-up CL that uses the screenshot in the UI is here: https://codereview.chromium.org/11659011/ https://codereview.chromium.org/11635059/diff/5001/content/browser/web_contents/navigation_controller_impl.cc ...
8 years ago (2012-12-21 17:17:41 UTC) #1
Charlie Reis
Hmm. Before I get into the review, have there been any discussions about the memory ...
8 years ago (2012-12-21 19:59:50 UTC) #2
Charlie Reis
https://codereview.chromium.org/11635059/diff/9001/content/browser/web_contents/navigation_entry_impl.h File content/browser/web_contents/navigation_entry_impl.h (right): https://codereview.chromium.org/11635059/diff/9001/content/browser/web_contents/navigation_entry_impl.h#newcode212 content/browser/web_contents/navigation_entry_impl.h:212: // restore). What would happen then if you restored ...
8 years ago (2012-12-21 20:01:08 UTC) #3
sadrul
On 2012/12/21 19:59:50, creis wrote: > Hmm. Before I get into the review, have there ...
8 years ago (2012-12-21 20:12:39 UTC) #4
sadrul
https://codereview.chromium.org/11635059/diff/9001/content/browser/web_contents/navigation_entry_impl.h File content/browser/web_contents/navigation_entry_impl.h (right): https://codereview.chromium.org/11635059/diff/9001/content/browser/web_contents/navigation_entry_impl.h#newcode212 content/browser/web_contents/navigation_entry_impl.h:212: // restore). On 2012/12/21 20:01:08, creis wrote: > What ...
8 years ago (2012-12-21 20:13:24 UTC) #5
sadrul
I made a couple of changes: * Take screenshot of the last-committed entry instead of ...
8 years ago (2012-12-21 20:58:20 UTC) #6
Charlie Reis
Ok, evaluating it behind a flag sounds more reasonable. The best option as you move ...
8 years ago (2012-12-21 23:22:07 UTC) #7
sadrul
> Ok, evaluating it behind a flag sounds more reasonable. > The best option as ...
8 years ago (2012-12-22 00:07:10 UTC) #8
Charlie Reis
Thanks. This LGTM, provided you add a test. (Please make sure the test code gets ...
8 years ago (2012-12-22 00:23:59 UTC) #9
sadrul
On 2012/12/22 00:23:59, creis wrote: > Thanks. This LGTM, provided you add a test. (Please ...
8 years ago (2012-12-22 00:49:16 UTC) #10
sadrul
On 2012/12/22 00:49:16, sadrul wrote: > On 2012/12/22 00:23:59, creis wrote: > > Thanks. This ...
8 years ago (2012-12-22 01:13:24 UTC) #11
Charlie Reis
On 2012/12/22 01:13:24, sadrul wrote: > On 2012/12/22 00:49:16, sadrul wrote: > > On 2012/12/22 ...
8 years ago (2012-12-22 01:55:49 UTC) #12
sadrul
8 years ago (2012-12-22 02:53:55 UTC) #13
On 2012/12/22 01:55:49, creis wrote:
> On 2012/12/22 01:13:24, sadrul wrote:
> > On 2012/12/22 00:49:16, sadrul wrote:
> > > On 2012/12/22 00:23:59, creis wrote:
> > > > Thanks.  This LGTM, provided you add a test.  (Please make sure the test
> > code
> > > > gets reviewed as well, but I'll be out for the holidays after today, so
> feel
> > > > free to get another reviewer for the test itself if I'm gone.)
> > > 
> > > Cool. Thanks. Looks like a unit-test won't be sufficient for testing this
> > (since
> > > a backing store doesn't seem to be created there). I will look into adding
a
> > > browser-test instead.
> > 
> > Added a browser-test to test that the page has has a screenshot when
> navigation
> > happens:
> >  - from within the page (from a JS function)
> >  - interactively, when user does an overscroll gesture
> >  - interactively, when user navigates in history without the overscroll
> gesture.
> 
> Can you add this bit to the comment above the browser test, to help others
> follow the test?  Otherwise, LGTM.

Done. Thanks a lot for the quick reviews!

Powered by Google App Engine
This is Rietveld 408576698