1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-07 14:24:17 +01:00

Gecko developers hate us.

This commit is contained in:
Kris Maglione
2011-09-29 14:40:37 -04:00
parent 6a433c69e3
commit 6ebda9b918
3 changed files with 4 additions and 2 deletions

View File

@@ -30,6 +30,7 @@ EXCPPFLAGS = -fno-rtti \
-fno-exceptions \
-fshort-wchar \
-fPIC \
-Os \
$(NULL)
XPIDL ?= $(PYTHON) $(GECKO_SDK_PATH)/sdk/bin

View File

@@ -50,6 +50,7 @@
# define nsString_h___
# define nsStringFwd_h___
# define nsStringGlue_h__
# define nsContentUtils_h___
class nsAFlatCString;
typedef nsString nsSubstring;
# include "nsIScrollableFrame.h"

View File

@@ -704,8 +704,8 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
let async = params.callback || params.onload || params.onerror;
if (async) {
xmlhttp.onload = function handler(event) { util.trapErrors(params.onload || params.callback, params, xmlhttp, event) };
xmlhttp.onerror = function handler(event) { util.trapErrors(params.onerror || params.callback, params, xmlhttp, event) };
xmlhttp.addEventListener("load", function handler(event) { util.trapErrors(params.onload || params.callback, params, xmlhttp, event) }, false);
xmlhttp.addEventListener("error", function handler(event) { util.trapErrors(params.onerror || params.callback, params, xmlhttp, event) }, false);
}