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

Issue 3621009: Fix handling of JS dialog suppressino during tab closing (Closed)

Created:
10 years, 2 months ago by stuartmorgan
Modified:
9 years, 7 months ago
Reviewers:
Charlie Reis, ojan
CC:
chromium-reviews, ben+cc_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Fix handling of JS dialog suppressino during tab closing Send the dialog response reply to the renderer before killing the tab, since RenderView can't close while it's waiting for a response. BUG=37324 TEST=Close a tab which plays audio, has multiple alerts in onbeforeunload, and shares a renderer process with at least one other tab. Choose to prevent the page from creating more dialogs. The audio should stop when the tab closes. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=61829

Patch Set 1 #

Total comments: 2

Patch Set 2 : Comment fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -7 lines) Patch
M chrome/browser/renderer_host/render_view_host.cc View 1 1 chunk +10 lines, -7 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
stuartmorgan
10 years, 2 months ago (2010-10-07 00:15:32 UTC) #1
Charlie Reis
Thanks for finding a quick fix. It would be nice to have a test for ...
10 years, 2 months ago (2010-10-07 00:26:50 UTC) #2
stuartmorgan
On 2010/10/07 00:26:50, creis wrote: > It would be nice to have a test for ...
10 years, 2 months ago (2010-10-07 15:30:27 UTC) #3
stuartmorgan
http://codereview.chromium.org/3621009/diff/1/2 File chrome/browser/renderer_host/render_view_host.cc (right): http://codereview.chromium.org/3621009/diff/1/2#newcode604 chrome/browser/renderer_host/render_view_host.cc:604: // Kill the tab immediately, since a page that ...
10 years, 2 months ago (2010-10-07 16:10:40 UTC) #4
Charlie Reis
10 years, 2 months ago (2010-10-07 17:04:39 UTC) #5
Fair enough.  I'll think about how we can test it, but the fix sounds about
right.  LGTM.

Powered by Google App Engine
This is Rietveld 408576698