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

Issue 2727253005: Move beforeunload hang timer duties to its own timer. (Closed)

Created:
3 years, 9 months ago by Avi (use Gerrit)
Modified:
3 years, 9 months ago
Reviewers:
Charlie Reis, dtapuska
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move beforeunload hang timer duties to its own timer. BUG=418266 TEST=no user-visible change CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2727253005 Cr-Commit-Position: refs/heads/master@{#455140} Committed: https://chromium.googlesource.com/chromium/src/+/ddd4c22cebfb3be9570877a7fcfebeca24c5f83b

Patch Set 1 #

Patch Set 2 : rev #

Patch Set 3 : rev #

Total comments: 10

Patch Set 4 : timeout values #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -49 lines) Patch
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 chunks +12 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 7 chunks +36 lines, -29 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 3 1 chunk +0 lines, -8 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 chunk +0 lines, -10 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 38 (24 generated)
Avi (use Gerrit)
Charlie is OOO until Monday but I'd like his review. Dave, what do you think? ...
3 years, 9 months ago (2017-03-03 22:24:43 UTC) #15
dtapuska
https://codereview.chromium.org/2727253005/diff/40001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/2727253005/diff/40001/content/browser/frame_host/render_frame_host_impl.cc#newcode3474 content/browser/frame_host/render_frame_host_impl.cc:3474: "ChildProcess.HangRendererType", beforeunload_timeout_type_, Is this safe? Declaring the histogram twice? ...
3 years, 9 months ago (2017-03-06 18:23:46 UTC) #16
Avi (use Gerrit)
https://codereview.chromium.org/2727253005/diff/40001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/2727253005/diff/40001/content/browser/frame_host/render_frame_host_impl.cc#newcode3474 content/browser/frame_host/render_frame_host_impl.cc:3474: "ChildProcess.HangRendererType", beforeunload_timeout_type_, On 2017/03/06 18:23:46, dtapuska wrote: > Is ...
3 years, 9 months ago (2017-03-06 18:27:26 UTC) #17
Avi (use Gerrit)
https://codereview.chromium.org/2727253005/diff/40001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/2727253005/diff/40001/content/browser/frame_host/render_frame_host_impl.cc#newcode3474 content/browser/frame_host/render_frame_host_impl.cc:3474: "ChildProcess.HangRendererType", beforeunload_timeout_type_, On 2017/03/06 18:27:26, Avi wrote: > On ...
3 years, 9 months ago (2017-03-06 18:43:09 UTC) #18
Charlie Reis
Nice. I love the simplification of detangling the timers, and I don't see immediate problems ...
3 years, 9 months ago (2017-03-06 21:10:44 UTC) #19
Avi (use Gerrit)
https://codereview.chromium.org/2727253005/diff/40001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/2727253005/diff/40001/content/browser/frame_host/render_frame_host_impl.cc#newcode2628 content/browser/frame_host/render_frame_host_impl.cc:2628: : render_view_host_->GetWidget()->hung_renderer_delay()); On 2017/03/06 21:10:44, Charlie Reis (OOO til ...
3 years, 9 months ago (2017-03-06 22:11:18 UTC) #20
Charlie Reis
Thanks! LGTM with the change mentioned below. https://codereview.chromium.org/2727253005/diff/40001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/2727253005/diff/40001/content/browser/frame_host/render_frame_host_impl.cc#newcode2628 content/browser/frame_host/render_frame_host_impl.cc:2628: : render_view_host_->GetWidget()->hung_renderer_delay()); ...
3 years, 9 months ago (2017-03-06 23:47:56 UTC) #21
Avi (use Gerrit)
https://codereview.chromium.org/2727253005/diff/40001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/2727253005/diff/40001/content/browser/frame_host/render_frame_host_impl.cc#newcode2628 content/browser/frame_host/render_frame_host_impl.cc:2628: : render_view_host_->GetWidget()->hung_renderer_delay()); On 2017/03/06 23:47:56, Charlie Reis (OOO til ...
3 years, 9 months ago (2017-03-06 23:59:15 UTC) #23
dtapuska
On 2017/03/06 23:59:15, Avi wrote: > https://codereview.chromium.org/2727253005/diff/40001/content/browser/frame_host/render_frame_host_impl.cc > File content/browser/frame_host/render_frame_host_impl.cc (right): > > https://codereview.chromium.org/2727253005/diff/40001/content/browser/frame_host/render_frame_host_impl.cc#newcode2628 > ...
3 years, 9 months ago (2017-03-07 01:26:36 UTC) #27
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/2727253005/60001
3 years, 9 months ago (2017-03-07 05:48:02 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/395586)
3 years, 9 months ago (2017-03-07 08:09:55 UTC) #32
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/2727253005/60001
3 years, 9 months ago (2017-03-07 16:06:36 UTC) #34
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/ddd4c22cebfb3be9570877a7fcfebeca24c5f83b
3 years, 9 months ago (2017-03-07 18:20:20 UTC) #37
tmartino
3 years, 9 months ago (2017-03-07 22:06:16 UTC) #38
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/2740493004/ by tmartino@chromium.org.

The reason for reverting is: We're seeing reliable failures on Win7 as a result
of this patch:

BrowserTest.SingleBeforeUnloadAfterRedirect

Specific error:

[6776:6744:0307/133434.182:FATAL:render_frame_host_impl.cc(2555)] Check failed:
is_waiting_for_beforeunload_ack_..

Powered by Google App Engine
This is Rietveld 408576698