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

Issue 2719133002: A page can't fire dialogs in unload handlers; remove code that handles that case. (Closed)

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

Description

A page can't fire dialogs in unload handlers; remove code that handles that case. BUG=669881 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2719133002 Cr-Commit-Position: refs/heads/master@{#453971} Committed: https://chromium.googlesource.com/chromium/src/+/e4115eb7314d12ffa24ae0be0d192f2712693cf0

Patch Set 1 #

Patch Set 2 : rev #

Total comments: 4

Patch Set 3 : IPCs when closing? #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -26 lines) Patch
M content/browser/frame_host/render_frame_host_impl.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 chunks +24 lines, -24 lines 5 comments Download
M content/public/browser/renderer_unresponsive_type.h View 1 chunk +4 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 35 (19 generated)
Avi (use Gerrit)
What do you think?
3 years, 9 months ago (2017-02-27 21:57:58 UTC) #11
Charlie Reis
https://codereview.chromium.org/2719133002/diff/20001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/2719133002/diff/20001/content/browser/frame_host/render_frame_host_impl.cc#newcode1677 content/browser/frame_host/render_frame_host_impl.cc:1677: DCHECK(!IsWaitingForUnloadACK()); Can you double check what happens when closing ...
3 years, 9 months ago (2017-02-27 22:26:18 UTC) #12
Avi (use Gerrit)
https://codereview.chromium.org/2719133002/diff/20001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/2719133002/diff/20001/content/browser/frame_host/render_frame_host_impl.cc#newcode1677 content/browser/frame_host/render_frame_host_impl.cc:1677: DCHECK(!IsWaitingForUnloadACK()); On 2017/02/27 22:26:17, Charlie Reis (slow) wrote: > ...
3 years, 9 months ago (2017-02-27 22:38:59 UTC) #15
Charlie Reis
https://codereview.chromium.org/2719133002/diff/20001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/2719133002/diff/20001/content/browser/frame_host/render_frame_host_impl.cc#newcode1677 content/browser/frame_host/render_frame_host_impl.cc:1677: DCHECK(!IsWaitingForUnloadACK()); On 2017/02/27 22:38:58, Avi wrote: > On 2017/02/27 ...
3 years, 9 months ago (2017-02-27 22:41:14 UTC) #16
Avi (use Gerrit)
On 2017/02/27 22:41:14, Charlie Reis (slow) wrote: > Does the browser process send a separate ...
3 years, 9 months ago (2017-02-28 02:14:41 UTC) #19
Avi (use Gerrit)
Heh. Even doing ^C from the commandline gives: 1 content::RenderFrameHostImpl::DispatchBeforeUnload(bool, bool) + 55 2 chrome::UnloadController::CallBeforeUnloadHandlers(base::Callback<void ...
3 years, 9 months ago (2017-02-28 02:20:10 UTC) #20
Avi (use Gerrit)
Camille, this touches your UMA stat, so I'd like to know what you think about ...
3 years, 9 months ago (2017-02-28 02:23:49 UTC) #22
Charlie Reis
LGTM https://codereview.chromium.org/2719133002/diff/20001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/2719133002/diff/20001/content/browser/frame_host/render_frame_host_impl.cc#newcode1677 content/browser/frame_host/render_frame_host_impl.cc:1677: DCHECK(!IsWaitingForUnloadACK()); On 2017/02/27 22:41:14, Charlie Reis (slow) wrote: ...
3 years, 9 months ago (2017-02-28 04:59:21 UTC) #23
Avi (use Gerrit)
+Ilya for metrics
3 years, 9 months ago (2017-02-28 05:09:05 UTC) #25
Avi (use Gerrit)
https://codereview.chromium.org/2719133002/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/2719133002/diff/40001/content/browser/frame_host/render_frame_host_impl.cc#newcode1671 content/browser/frame_host/render_frame_host_impl.cc:1671: if (IsWaitingForUnloadACK()) { On 2017/02/28 04:59:21, Charlie Reis (slow) ...
3 years, 9 months ago (2017-02-28 05:12:42 UTC) #26
Ilya Sherman
histograms.xml lgtm
3 years, 9 months ago (2017-02-28 18:11:56 UTC) #27
clamy
Thanks! One question below. https://codereview.chromium.org/2719133002/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/2719133002/diff/40001/content/browser/frame_host/render_frame_host_impl.cc#newcode2618 content/browser/frame_host/render_frame_host_impl.cc:2618: success ? RendererUnresponsiveType::RENDERER_UNRESPONSIVE_BEFORE_UNLOAD If we ...
3 years, 9 months ago (2017-03-01 16:11:00 UTC) #28
Avi (use Gerrit)
https://codereview.chromium.org/2719133002/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/2719133002/diff/40001/content/browser/frame_host/render_frame_host_impl.cc#newcode2618 content/browser/frame_host/render_frame_host_impl.cc:2618: success ? RendererUnresponsiveType::RENDERER_UNRESPONSIVE_BEFORE_UNLOAD On 2017/03/01 16:11:00, clamy wrote: > ...
3 years, 9 months ago (2017-03-01 16:17:38 UTC) #29
clamy
Thanks! Lgtm. https://codereview.chromium.org/2719133002/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/2719133002/diff/40001/content/browser/frame_host/render_frame_host_impl.cc#newcode2618 content/browser/frame_host/render_frame_host_impl.cc:2618: success ? RendererUnresponsiveType::RENDERER_UNRESPONSIVE_BEFORE_UNLOAD On 2017/03/01 16:17:38, Avi ...
3 years, 9 months ago (2017-03-01 16:25:57 UTC) #30
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/2719133002/40001
3 years, 9 months ago (2017-03-01 16:35:55 UTC) #32
commit-bot: I haz the power
3 years, 9 months ago (2017-03-01 18:04:49 UTC) #35
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/e4115eb7314d12ffa24ae0be0d19...

Powered by Google App Engine
This is Rietveld 408576698