diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-10 00:05:15 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-10 00:05:15 +0000 |
commit | 75ae449e5e83d3f81fabcd3910901be2bdfa1f7b (patch) | |
tree | 2b6e5c9903c616ec0bf149d9981b83e295751e3b /chrome/renderer | |
parent | cea25d5216c226cfc55c56ccff3e9626878b7c80 (diff) | |
download | chromium_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.cc | 2 |
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)); } |