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

Issue 2557233002: Revert of Set user_gesture bit at NavigationHandle creation time. (Closed)

Created:
4 years ago by Bryan McQuade
Modified:
4 years ago
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, extensions-reviews_chromium.org, jam, loading-reviews_chromium.org, mlamouri+watch-content_chromium.org, mmenke, nasko+codewatch_chromium.org, Randy Smith (Not in Mondays)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert of Set user_gesture bit at NavigationHandle creation time. (patchset #19 id:350001 of https://codereview.chromium.org/2499313003/ ) Reason for revert: This patch broke UrlOverridingTest#testOpenWindowFromUserGesture. See http://test-results.appspot.com/dashboards/flakiness_dashboard.html#testType=chrome_public_test_apk&tests=org.chromium.chrome.browser.externalnav.UrlOverridingTest%23testOpenWindowFromUserGesture Original issue's description: > Set user_gesture bit at NavigationHandle creation time. > > Previously, the user_gesture bit was set at different places and could be > updated during the lifetime of a navigation, such as in WillStartNavigation > and at commit time. In practice, whether a navigation was initiated by > user gesture is known at the time a NavigationHandle is created. > This change makes has_user_gesture_ a const member of NavigationHandleImpl, > and sets it once at construction time. > > clamy suggested that we could set the user gesture bit at NavHandle > construction time in the following places: > - PlzNavigate: we have it when we create the handle. > - Regular navs: we add the parameter to DidStartProvisionalLoad. > - same-page navs: we create the NavigationHandle in DidCommitProvisionalLoad, > where we have the information. > > This patch makes the following changes: > - adds a gesture param to NavigationHandleImpl::Create > - adds a gesture boolean param to FrameHostMsg_DidStartProvisionalLoad, > which is passed to RenderFrameHostImpl::OnDidStartProvisionalLoad > - removes the has_user_gesture boolean param from > NavigationHandleImpl::WillStartRequest > > For the time being, we continue to update the gesture_ value at commit time. > Once crbug.com/667572 is addressed, gesture_ can be made a const member and > we can stop updating it at commit time. > > BUG=665952 > CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation > > Committed: https://crrev.com/318ecffe833701cfd6db2ac43491ace0a68e18af > Cr-Commit-Position: refs/heads/master@{#435354} TBR=bauerb@chromium.org,clamy@chromium.org,michaelbai@chromium.org,rdevlin.cronin@chromium.org,tsepez@chromium.org # Not skipping CQ checks because original CL landed more than 1 days ago. BUG=665952 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/bb887bb505f695aba03436ed8e5fd4b772265921 Cr-Commit-Position: refs/heads/master@{#438147}

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+155 lines, -163 lines) Patch
M chrome/browser/extensions/extension_navigation_throttle_unittest.cc View 1 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/plugins/flash_download_interception_unittest.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download
M components/navigation_interception/intercept_navigation_throttle_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/frame_host/interstitial_page_navigator_impl.h View 1 1 chunk +4 lines, -4 lines 0 comments Download
M content/browser/frame_host/interstitial_page_navigator_impl.cc View 1 2 chunks +2 lines, -4 lines 0 comments Download
M content/browser/frame_host/navigation_controller_impl_unittest.cc View 1 2 3 chunks +11 lines, -12 lines 0 comments Download
M content/browser/frame_host/navigation_entry_impl.cc View 1 2 chunks +6 lines, -6 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl.h View 1 5 chunks +3 lines, -3 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl.cc View 1 8 chunks +10 lines, -13 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/frame_host/navigation_request.cc View 1 2 5 chunks +18 lines, -14 lines 0 comments Download
M content/browser/frame_host/navigator.h View 1 1 chunk +4 lines, -4 lines 0 comments Download
M content/browser/frame_host/navigator_impl.h View 1 1 chunk +4 lines, -4 lines 0 comments Download
M content/browser/frame_host/navigator_impl.cc View 1 2 3 chunks +4 lines, -6 lines 0 comments Download
M content/browser/frame_host/navigator_impl_unittest.cc View 1 7 chunks +7 lines, -7 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 4 chunks +8 lines, -11 lines 0 comments Download
M content/browser/loader/navigation_resource_throttle.cc View 1 3 chunks +5 lines, -4 lines 0 comments Download
M content/browser/loader/navigation_url_loader_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_impl_unittest.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download
M content/common/frame_messages.h View 1 4 chunks +4 lines, -4 lines 0 comments Download
M content/common/navigation_params.h View 1 7 chunks +9 lines, -6 lines 0 comments Download
M content/common/navigation_params.cc View 1 7 chunks +11 lines, -6 lines 0 comments Download
M content/public/browser/navigation_handle.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M content/public/browser/navigation_handle.cc View 1 2 chunks +1 line, -3 lines 0 comments Download
M content/public/test/render_view_test.cc View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 7 chunks +12 lines, -16 lines 0 comments Download
M content/test/test_render_frame_host.cc View 1 5 chunks +6 lines, -9 lines 0 comments Download

Messages

Total messages: 31 (20 generated)
Bryan McQuade
Created Revert of Set user_gesture bit at NavigationHandle creation time.
4 years ago (2016-12-08 01:27:04 UTC) #2
Bryan McQuade
PTAL, this broke a test, so I need to revert. The patch changed slightly, so ...
4 years ago (2016-12-08 12:07:15 UTC) #13
Bernhard Bauer
LGTM for where I'm an OWNER. For ease of (mostly Camille's I guess) reviewing, what ...
4 years ago (2016-12-08 12:12:35 UTC) #14
Bryan McQuade
On 2016/12/08 at 12:12:35, bauerb wrote: > LGTM for where I'm an OWNER. > > ...
4 years ago (2016-12-08 13:50:57 UTC) #15
Devlin
extensions rs lgtm
4 years ago (2016-12-08 16:23:11 UTC) #16
clamy
Thanks for providing the diff, it was very helpful! The revert lgtm.
4 years ago (2016-12-08 17:25:31 UTC) #17
clamy
Also, as an fyi, I have https://codereview.chromium.org/2099243002/ in CQ. If it lands it could conflict ...
4 years ago (2016-12-08 18:09:43 UTC) #18
dgn
FYI: n5x_swarming_rel has just been dropped because of its flakiness (https://bugs.chromium.org/p/chromium/issues/detail?id=672382)
4 years ago (2016-12-09 10:53:56 UTC) #19
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/2557233002/320001
4 years ago (2016-12-13 12:56:47 UTC) #26
commit-bot: I haz the power
Committed patchset #3 (id:320001)
4 years ago (2016-12-13 13:02:30 UTC) #29
commit-bot: I haz the power
4 years ago (2016-12-13 13:05:39 UTC) #31
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/bb887bb505f695aba03436ed8e5fd4b772265921
Cr-Commit-Position: refs/heads/master@{#438147}

Powered by Google App Engine
This is Rietveld 408576698