summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-10 00:05:15 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-10 00:05:15 +0000
commit75ae449e5e83d3f81fabcd3910901be2bdfa1f7b (patch)
tree2b6e5c9903c616ec0bf149d9981b83e295751e3b /chrome/renderer
parentcea25d5216c226cfc55c56ccff3e9626878b7c80 (diff)
downloadchromium_src-75ae449e5e83d3f81fabcd3910901be2bdfa1f7b.zip
chromium_src-75ae449e5e83d3f81fabcd3910901be2bdfa1f7b.tar.gz
chromium_src-75ae449e5e83d3f81fabcd3910901be2bdfa1f7b.tar.bz2
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
Diffstat (limited to 'chrome/renderer')
-rw-r--r--chrome/renderer/render_widget.cc2
1 files changed, 1 insertions, 1 deletions
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));
}