From 96d879025806ac466802ad8e4c205180f60e5022 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Wed, 30 May 2007 13:12:00 +0000 Subject: [PATCH] Pull in a fix from upstream Prototype, #702 by fredj (thx fredj) git-svn-id: http://svn.openlayers.org/trunk/openlayers@3205 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Ajax.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/OpenLayers/Ajax.js b/lib/OpenLayers/Ajax.js index 46599274df..a15bc0a123 100644 --- a/lib/OpenLayers/Ajax.js +++ b/lib/OpenLayers/Ajax.js @@ -211,6 +211,11 @@ OpenLayers.Ajax.Request.prototype = OpenLayers.Class.inherit( OpenLayers.Ajax.Ba var body = this.options.postBody ? this.options.postBody : parameters; this.transport.send(this.options.method == 'post' ? body : null); + /* Force Firefox to handle ready state 4 for synchronous requests */ + if (!this.options.asynchronous && this.transport.overrideMimeType) { + this.onStateChange(); + } + } catch (e) { this.dispatchException(e); }