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

Issue 2704383007: Always restart the hung page timer after a beforeunload dialog. (Closed)

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

Description

Always restart the hung page timer after a beforeunload dialog. If a beforeunload dialog is triggered in a subframe, using is_waiting_for_beforeunload_ack_ as a sign that we're running a beforeunload dialog doesn't work. BUG=695879 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2704383007 Cr-Commit-Position: refs/heads/master@{#453323} Committed: https://chromium.googlesource.com/chromium/src/+/1c51fb6ff84c5df9dc9ac379e7ab9e9780fd165b

Patch Set 1 #

Total comments: 7

Patch Set 2 : fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -6 lines) Patch
M content/browser/frame_host/render_frame_host_impl.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 3 chunks +6 lines, -3 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 chunks +7 lines, -3 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 19 (10 generated)
Avi (use Gerrit)
3 years, 10 months ago (2017-02-24 18:35:57 UTC) #7
Charlie Reis
[+clamy to CC] Yes, I see what you mean-- different frames could be responsible for ...
3 years, 9 months ago (2017-02-27 18:41:42 UTC) #8
Avi (use Gerrit)
https://codereview.chromium.org/2704383007/diff/1/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/2704383007/diff/1/content/browser/frame_host/render_frame_host_impl.cc#newcode2611 content/browser/frame_host/render_frame_host_impl.cc:2611: bool is_waiting = is_before_unload_dialog || IsWaitingForUnloadACK(); On 2017/02/27 18:41:41, ...
3 years, 9 months ago (2017-02-27 19:28:49 UTC) #9
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/2704383007/20001
3 years, 9 months ago (2017-02-27 19:30:44 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/1c51fb6ff84c5df9dc9ac379e7ab9e9780fd165b
3 years, 9 months ago (2017-02-27 20:43:50 UTC) #15
Charlie Reis
https://codereview.chromium.org/2704383007/diff/1/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/2704383007/diff/1/content/browser/frame_host/render_frame_host_impl.cc#newcode2611 content/browser/frame_host/render_frame_host_impl.cc:2611: bool is_waiting = is_before_unload_dialog || IsWaitingForUnloadACK(); On 2017/02/27 19:28:49, ...
3 years, 9 months ago (2017-02-27 21:03:17 UTC) #16
Avi (use Gerrit)
When did we stop allowing dialogs from unload? Is that done in the renderer?
3 years, 9 months ago (2017-02-27 21:57:09 UTC) #17
Charlie Reis
On 2017/02/27 21:57:09, Avi wrote: > When did we stop allowing dialogs from unload? Is ...
3 years, 9 months ago (2017-02-27 22:15:23 UTC) #18
Avi (use Gerrit)
3 years, 9 months ago (2017-02-27 22:17:56 UTC) #19
Message was sent while issue was closed.
On 2017/02/27 22:15:23, Charlie Reis (slow) wrote:
> On 2017/02/27 21:57:09, Avi wrote:
> > When did we stop allowing dialogs from unload? Is that done in the renderer?
> 
> Years ago, and yes, I think it's renderer code.

PTAL at https://codereview.chromium.org/2719133002/ that I sent. So in the
dialog code, should we just return? (I'd BadMessage but I worry about IPCs
legitimately crossing in the night.)

Powered by Google App Engine
This is Rietveld 408576698