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

Issue 938123003: Prevent hang monitor restarts when hidden (Closed)

Created:
5 years, 10 months ago by jdduke (slow)
Modified:
5 years, 9 months ago
Reviewers:
piman
CC:
chromium-reviews, darin-cc_chromium.org, jam, Will Harris, gab
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Prevent hang monitor restarts when hidden When the render widget is hidden, the hang monitor timeout is explicitly stopped. However, tasks executed *after* the widget hide signal may trigger a restart of the hang monitor timeout, e.g., queued input events. Prevent such restarts when the widget is hidden while also ensuring the hang monitor restarts when the widget is shown again. BUG=458594 Committed: https://crrev.com/d20d7b3d4af9f483793c3c4eaa96d5e195e3609a Cr-Commit-Position: refs/heads/master@{#319778}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add todo #

Patch Set 3 : Restrict to input events #

Total comments: 2

Patch Set 4 : Cleanup #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -19 lines) Patch
M content/browser/browser_plugin/browser_plugin_guest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 6 chunks +13 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_unittest.cc View 1 2 3 chunks +40 lines, -6 lines 0 comments Download

Messages

Total messages: 23 (8 generated)
jdduke (slow)
piman@: PTAL, thanks. Just noticed this could (conceivably) occur when following the discussion on crbug.com/458594.
5 years, 10 months ago (2015-02-19 19:30:34 UTC) #2
piman
lgtm https://codereview.chromium.org/938123003/diff/1/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/938123003/diff/1/content/browser/renderer_host/render_widget_host_impl.cc#newcode868 content/browser/renderer_host/render_widget_host_impl.cc:868: return; Do we need to restart it when ...
5 years, 10 months ago (2015-02-19 23:43:52 UTC) #3
jdduke (slow)
https://codereview.chromium.org/938123003/diff/1/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/938123003/diff/1/content/browser/renderer_host/render_widget_host_impl.cc#newcode868 content/browser/renderer_host/render_widget_host_impl.cc:868: return; On 2015/02/19 23:43:52, piman (Very slow to review) ...
5 years, 10 months ago (2015-02-23 16:03:27 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/938123003/20001
5 years, 10 months ago (2015-02-23 16:04:41 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator/builds/61651)
5 years, 10 months ago (2015-02-23 16:07:25 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/938123003/20001
5 years, 10 months ago (2015-02-23 16:14:57 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/28189)
5 years, 10 months ago (2015-02-23 20:52:16 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/28189)
5 years, 10 months ago (2015-02-23 20:52:53 UTC) #15
jdduke (slow)
I've updated the patch to suppress timeout restarts only for input events (when the widget ...
5 years, 9 months ago (2015-03-06 21:16:40 UTC) #16
jdduke (slow)
https://codereview.chromium.org/938123003/diff/40001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/938123003/diff/40001/content/browser/renderer_host/render_widget_host_impl.cc#newcode544 content/browser/renderer_host/render_widget_host_impl.cc:544: RestartHangMonitorTimeout(); On 2015/03/06 21:16:39, jdduke wrote: > Hmm, I ...
5 years, 9 months ago (2015-03-06 21:21:07 UTC) #17
jdduke (slow)
piman@: Sorry for the noise, but would you mind taking another look? This latest change ...
5 years, 9 months ago (2015-03-09 21:56:46 UTC) #18
piman
lgtm
5 years, 9 months ago (2015-03-09 22:25:13 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/938123003/60001
5 years, 9 months ago (2015-03-09 22:27:20 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 9 months ago (2015-03-09 23:55:20 UTC) #22
commit-bot: I haz the power
5 years, 9 months ago (2015-03-09 23:56:13 UTC) #23
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/d20d7b3d4af9f483793c3c4eaa96d5e195e3609a
Cr-Commit-Position: refs/heads/master@{#319778}

Powered by Google App Engine
This is Rietveld 408576698