From 75ae449e5e83d3f81fabcd3910901be2bdfa1f7b Mon Sep 17 00:00:00 2001 From: "jam@chromium.org" Date: Fri, 10 Jul 2009 00:05:15 +0000 Subject: Fix window.close() not working for modal dialogs. BUG=16374 TEST=added regression test Review URL: http://codereview.chromium.org/149412 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20339 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/renderer/render_widget.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chrome/renderer') diff --git a/chrome/renderer/render_widget.cc b/chrome/renderer/render_widget.cc index 28ce0f3..cf2e1da 100644 --- a/chrome/renderer/render_widget.cc +++ b/chrome/renderer/render_widget.cc @@ -636,7 +636,7 @@ void RenderWidget::CloseWidgetSoon(WebWidget* webwidget) { // could be closed before the JS finishes executing. So instead, post a // message back to the message loop, which won't run until the JS is // complete, and then the Close message can be sent. - MessageLoop::current()->PostNonNestableTask(FROM_HERE, NewRunnableMethod( + MessageLoop::current()->PostTask(FROM_HERE, NewRunnableMethod( this, &RenderWidget::DoDeferredClose)); } -- cgit v1.1