bug 967218 - interpret result of NativeApp:IsDebuggable as string; r=mfinkle

This commit is contained in:
Myk Melez 2014-02-06 10:48:27 -08:00
parent 4a415b8dd7
commit 794abc552c

View File

@ -67,7 +67,9 @@ let WebAppRT = {
#ifdef MOZ_ANDROID_SYNTHAPKS
// If the app is in debug mode, configure and enable the remote debugger.
if (sendMessageToJava({ type: "NativeApp:IsDebuggable" })) {
// sendMessageToJava can only return string values, so it returns the string
// "true" rather than boolean true if the app is in debug mode.
if (sendMessageToJava({ type: "NativeApp:IsDebuggable" }) === "true") {
this._enableRemoteDebugger(aUrl);
}
#endif