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

Issue 316553007: Making sure we don't take a GestureNav screenshot unless the history position changes. (Closed)

Created:
6 years, 6 months ago by mfomitchev
Modified:
6 years, 6 months ago
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Making sure we don't take a GestureNav screenshot unless the history position changes. Only take a screenshot if the page id changes. Looking at NavigationControllerImpl::ClassifyNavigation(), I think this is the right check. If we could move the code for taking the screenshot post controller_->RendererDidNavigate() call, we'd be able to use the NavigationType calculated in that method, but based on the comments for the screenshot code, this doesn't seem like a safe thing to do. BUG=375921 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=275324

Patch Set 1 #

Total comments: 4

Patch Set 2 : Updating the comment, formatting. #

Patch Set 3 : Rearranging the code a bit. #

Patch Set 4 : Fixing for the case where the navigation is performed by entering the URL into the omnibox. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -2 lines) Patch
M content/browser/frame_host/navigator_impl.cc View 1 2 3 1 chunk +19 lines, -2 lines 0 comments Download

Messages

Total messages: 38 (0 generated)
mfomitchev
nasko, japhet: Please review. Thanks! sadrul: FYI
6 years, 6 months ago (2014-06-03 22:36:56 UTC) #1
Nate Chapin
On 2014/06/03 22:36:56, mfomitchev wrote: > nasko, japhet: Please review. Thanks! > sadrul: FYI LGTM, ...
6 years, 6 months ago (2014-06-03 23:13:17 UTC) #2
nasko
avi@ is actively working on containing usage of page_id. I think this case is fine, ...
6 years, 6 months ago (2014-06-03 23:18:15 UTC) #3
sadrul
A couple of questions: (1) does the page-id change for in-page navigations? (2) Can we ...
6 years, 6 months ago (2014-06-04 05:02:37 UTC) #4
nasko
On 2014/06/04 05:02:37, sadrul wrote: > A couple of questions: (1) does the page-id change ...
6 years, 6 months ago (2014-06-04 17:17:38 UTC) #5
mfomitchev
Also, replaceState will not result in the page id change, so we have that covered.
6 years, 6 months ago (2014-06-04 18:06:32 UTC) #6
nasko
The code itself looks good with a couple of nits. It will be good to ...
6 years, 6 months ago (2014-06-04 18:53:47 UTC) #7
mfomitchev
Given that this is a stable blocker, would you be okay with landing the unit ...
6 years, 6 months ago (2014-06-04 19:26:20 UTC) #8
nasko
I'm OK with a test in a separate CL if this needs to be merged ...
6 years, 6 months ago (2014-06-04 19:48:37 UTC) #9
mfomitchev
The CQ bit was checked by mfomitchev@chromium.org
6 years, 6 months ago (2014-06-04 19:49:05 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mfomitchev@chromium.org/316553007/20001
6 years, 6 months ago (2014-06-04 19:50:39 UTC) #11
mfomitchev
Cool! crbug.com/380830 created for the unit test.
6 years, 6 months ago (2014-06-04 19:52:56 UTC) #12
mfomitchev
The CQ bit was unchecked by mfomitchev@chromium.org
6 years, 6 months ago (2014-06-04 20:07:00 UTC) #13
mfomitchev
@nasko - I've rearranged the code a bit so that we don't execute unnecessary code ...
6 years, 6 months ago (2014-06-04 20:13:44 UTC) #14
nasko
Still LGTM
6 years, 6 months ago (2014-06-04 20:23:41 UTC) #15
mfomitchev
The CQ bit was checked by mfomitchev@chromium.org
6 years, 6 months ago (2014-06-04 20:24:05 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mfomitchev@chromium.org/316553007/40001
6 years, 6 months ago (2014-06-04 20:26:09 UTC) #17
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-04 23:44:43 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-04 23:52:03 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_gn_rel/builds/13501)
6 years, 6 months ago (2014-06-04 23:52:04 UTC) #20
mfomitchev
The CQ bit was checked by mfomitchev@chromium.org
6 years, 6 months ago (2014-06-05 00:23:34 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mfomitchev@chromium.org/316553007/40001
6 years, 6 months ago (2014-06-05 00:25:51 UTC) #22
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-05 01:53:38 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-05 01:57:55 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_gn_rel/builds/13588)
6 years, 6 months ago (2014-06-05 01:57:56 UTC) #25
mfomitchev
The CQ bit was checked by mfomitchev@chromium.org
6 years, 6 months ago (2014-06-05 02:07:47 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mfomitchev@chromium.org/316553007/40001
6 years, 6 months ago (2014-06-05 02:10:43 UTC) #27
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-05 05:46:38 UTC) #28
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-05 06:45:38 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_rel/builds/38622)
6 years, 6 months ago (2014-06-05 06:45:38 UTC) #30
mfomitchev
When the navigation is performed by entering the url into the omnibox, the page id ...
6 years, 6 months ago (2014-06-05 18:55:33 UTC) #31
Avi (use Gerrit)
My thoughts on reading this... There is a FrameHostMsg_DidCommitProvisionalLoad_Params. Why not use the |was_within_same_page| value?
6 years, 6 months ago (2014-06-05 19:39:53 UTC) #32
Avi (use Gerrit)
This looks reasonable to me as a fix for an immediate problem. LGTM But I ...
6 years, 6 months ago (2014-06-05 19:45:24 UTC) #33
mfomitchev
The CQ bit was checked by mfomitchev@chromium.org
6 years, 6 months ago (2014-06-05 19:46:16 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mfomitchev@chromium.org/316553007/60001
6 years, 6 months ago (2014-06-05 19:47:54 UTC) #35
mfomitchev
Agreed. Do you think we should try to tackle this now, or perhaps wait until ...
6 years, 6 months ago (2014-06-05 19:59:55 UTC) #36
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_chromium_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-05 23:25:33 UTC) #37
commit-bot: I haz the power
6 years, 6 months ago (2014-06-06 04:52:30 UTC) #38
Message was sent while issue was closed.
Change committed as 275324

Powered by Google App Engine
This is Rietveld 408576698