Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Support synchronous requests

It is needed in the `unload` handler.
Maybe we can rename it to `blockBrowserUIUntilTheRequestFinishes`.

Test Plan: Used in D3356.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision:
  • Loading branch information...
commit 6bcce58b8b375ee922d53e4afd32c7a81421123b 1 parent 65e2438
vrana authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  src/lib/Request.js
3  src/lib/Request.js
@@ -142,7 +142,7 @@ JX.install('Request', {
-, uri, true);
+, uri, this.getAsync());
// Must happen after so that listeners can modify the transport
// Some transport properties can only be set after the transport is open
@@ -422,6 +422,7 @@ JX.install('Request', {
* @param string HTTP method, one of "POST" or "GET".
method : 'POST',
+ async : true,
file : null,
raw : false,
Please sign in to comment.
Something went wrong with that request. Please try again.