From 18895ad1bdbadfc4b1ad008c40fa964268f17c30 Mon Sep 17 00:00:00 2001 From: Vivien Nicolas <21@vingtetun.org> Date: Thu, 15 Jul 2010 16:46:34 +0200 Subject: [PATCH] Bug 578672 - Need sendSyncMessage for messages that require a return value [r=mfinkle] --- mobile/chrome/content/bindings/browser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/chrome/content/bindings/browser.js b/mobile/chrome/content/bindings/browser.js index 73eb3d7afe4..3fd33070de6 100644 --- a/mobile/chrome/content/bindings/browser.js +++ b/mobile/chrome/content/bindings/browser.js @@ -289,7 +289,7 @@ let DOMEvents = { case "DOMWillOpenModalDialog": case "DOMWindowClose": - let retvals = sendAsyncMessage(aEvent.type, { }); + let retvals = sendSyncMessage(aEvent.type, { }); for (rv in retvals) { if (rv.preventDefault) { aEvent.preventDefault();