mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-06 17:34:12 +01:00
Gecko developers hate us.
This commit is contained in:
@@ -30,6 +30,7 @@ EXCPPFLAGS = -fno-rtti \
|
|||||||
-fno-exceptions \
|
-fno-exceptions \
|
||||||
-fshort-wchar \
|
-fshort-wchar \
|
||||||
-fPIC \
|
-fPIC \
|
||||||
|
-Os \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
XPIDL ?= $(PYTHON) $(GECKO_SDK_PATH)/sdk/bin
|
XPIDL ?= $(PYTHON) $(GECKO_SDK_PATH)/sdk/bin
|
||||||
|
|||||||
@@ -50,6 +50,7 @@
|
|||||||
# define nsString_h___
|
# define nsString_h___
|
||||||
# define nsStringFwd_h___
|
# define nsStringFwd_h___
|
||||||
# define nsStringGlue_h__
|
# define nsStringGlue_h__
|
||||||
|
# define nsContentUtils_h___
|
||||||
class nsAFlatCString;
|
class nsAFlatCString;
|
||||||
typedef nsString nsSubstring;
|
typedef nsString nsSubstring;
|
||||||
# include "nsIScrollableFrame.h"
|
# include "nsIScrollableFrame.h"
|
||||||
|
|||||||
@@ -704,8 +704,8 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
|
|||||||
|
|
||||||
let async = params.callback || params.onload || params.onerror;
|
let async = params.callback || params.onload || params.onerror;
|
||||||
if (async) {
|
if (async) {
|
||||||
xmlhttp.onload = function handler(event) { util.trapErrors(params.onload || params.callback, params, xmlhttp, event) };
|
xmlhttp.addEventListener("load", function handler(event) { util.trapErrors(params.onload || params.callback, params, xmlhttp, event) }, false);
|
||||||
xmlhttp.onerror = function handler(event) { util.trapErrors(params.onerror || params.callback, params, xmlhttp, event) };
|
xmlhttp.addEventListener("error", function handler(event) { util.trapErrors(params.onerror || params.callback, params, xmlhttp, event) }, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user