Bug 608885 - Hitting the reload button on a page with POST results does nothing r=mark.finkle
authorMike Kristoffersen <mkristoffersen@mozilla.com>
Fri, 12 Nov 2010 10:17:00 +0100
changeset 67003 fe06284ae29a0228ff7677aa86ca51cb612d9b9b
parent 67002 b6ef5a9735c6be7231444cf5dc0a456fbe95ccd9
child 67004 04e9b44c0ee341dc74d1ae7db6b32df905166267
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmark
bugs608885
Bug 608885 - Hitting the reload button on a page with POST results does nothing r=mark.finkle
mobile/components/PromptService.js
--- a/mobile/components/PromptService.js
+++ b/mobile/components/PromptService.js
@@ -379,16 +379,21 @@ Prompt.prototype = {
     doc.getElementById("prompt-confirm-checkbox").removeAttribute("collapsed");
     
     dialog.waitForClose();
     return params.result;
   },
 
   confirmEx: function confirmEx(aTitle, aText, aButtonFlags, aButton0,
                       aButton1, aButton2, aCheckMsg, aCheckState) {
+
+    if (gPromptService.inContentProcess) {
+      return gPromptService.callProxy("confirmEx", ['ConfirmEx'].concat(Array.prototype.slice.call(arguments, 0)));
+    }
+
     let numButtons = 0;
     let titles = [aButton0, aButton1, aButton2];
 
     let defaultButton = 0;
     if (aButtonFlags & Ci.nsIPromptService.BUTTON_POS_1_DEFAULT)
       defaultButton = 1;
     if (aButtonFlags & Ci.nsIPromptService.BUTTON_POS_2_DEFAULT)
       defaultButton = 2;