зеркало из https://github.com/mozilla/gecko-dev.git
merge b2g-inbound to mozilla-central
This commit is contained in:
Коммит
5dfcf3ae00
|
@ -751,6 +751,10 @@ var CustomEventManager = {
|
||||||
case 'inputmethod-update-layouts':
|
case 'inputmethod-update-layouts':
|
||||||
KeyboardHelper.handleEvent(detail);
|
KeyboardHelper.handleEvent(detail);
|
||||||
break;
|
break;
|
||||||
|
case 'nfc-hardware-state-change':
|
||||||
|
Services.obs.notifyObservers(null, 'nfc-hardware-state-change',
|
||||||
|
JSON.stringify({ nfcHardwareState: detail.nfcHardwareState }));
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
<copyfile dest="Makefile" src="core/root.mk"/>
|
<copyfile dest="Makefile" src="core/root.mk"/>
|
||||||
</project>
|
</project>
|
||||||
<project name="fake-dalvik" path="dalvik" remote="b2g" revision="ca1f327d5acc198bb4be62fa51db2c039032c9ce"/>
|
<project name="fake-dalvik" path="dalvik" remote="b2g" revision="ca1f327d5acc198bb4be62fa51db2c039032c9ce"/>
|
||||||
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="ea4a1f0d94a995486ed219f47132949071ecc172"/>
|
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="3fc26ae786e3869a7ef1e23afc9807ac1b4741f2"/>
|
||||||
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="49c722fa1a5e1873fa0010829fd97d0b74009ca5"/>
|
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="49c722fa1a5e1873fa0010829fd97d0b74009ca5"/>
|
||||||
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
|
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
|
||||||
<project name="platform_hardware_ril" path="hardware/ril" remote="b2g" revision="eda08beb3ba9a159843c70ffde0f9660ec351eb9"/>
|
<project name="platform_hardware_ril" path="hardware/ril" remote="b2g" revision="eda08beb3ba9a159843c70ffde0f9660ec351eb9"/>
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
</project>
|
</project>
|
||||||
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
|
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
|
||||||
<project name="fake-libdvm" path="dalvik" remote="b2g" revision="d50ae982b19f42f0b66d08b9eb306be81687869f"/>
|
<project name="fake-libdvm" path="dalvik" remote="b2g" revision="d50ae982b19f42f0b66d08b9eb306be81687869f"/>
|
||||||
<project name="gaia" path="gaia" remote="mozillaorg" revision="ea4a1f0d94a995486ed219f47132949071ecc172"/>
|
<project name="gaia" path="gaia" remote="mozillaorg" revision="3fc26ae786e3869a7ef1e23afc9807ac1b4741f2"/>
|
||||||
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="49c722fa1a5e1873fa0010829fd97d0b74009ca5"/>
|
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="49c722fa1a5e1873fa0010829fd97d0b74009ca5"/>
|
||||||
<project name="moztt" path="external/moztt" remote="b2g" revision="e33ea242b4328fb0d1824c951f379332b5021512"/>
|
<project name="moztt" path="external/moztt" remote="b2g" revision="e33ea242b4328fb0d1824c951f379332b5021512"/>
|
||||||
<project name="apitrace" path="external/apitrace" remote="apitrace" revision="788d9ce293a9b44f64536130cf4ad577e8101dbe"/>
|
<project name="apitrace" path="external/apitrace" remote="apitrace" revision="788d9ce293a9b44f64536130cf4ad577e8101dbe"/>
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
<copyfile dest="Makefile" src="core/root.mk"/>
|
<copyfile dest="Makefile" src="core/root.mk"/>
|
||||||
</project>
|
</project>
|
||||||
<project name="fake-dalvik" path="dalvik" remote="b2g" revision="ca1f327d5acc198bb4be62fa51db2c039032c9ce"/>
|
<project name="fake-dalvik" path="dalvik" remote="b2g" revision="ca1f327d5acc198bb4be62fa51db2c039032c9ce"/>
|
||||||
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="ea4a1f0d94a995486ed219f47132949071ecc172"/>
|
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="3fc26ae786e3869a7ef1e23afc9807ac1b4741f2"/>
|
||||||
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="49c722fa1a5e1873fa0010829fd97d0b74009ca5"/>
|
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="49c722fa1a5e1873fa0010829fd97d0b74009ca5"/>
|
||||||
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
|
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
|
||||||
<project name="platform_hardware_ril" path="hardware/ril" remote="b2g" revision="eda08beb3ba9a159843c70ffde0f9660ec351eb9"/>
|
<project name="platform_hardware_ril" path="hardware/ril" remote="b2g" revision="eda08beb3ba9a159843c70ffde0f9660ec351eb9"/>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{
|
{
|
||||||
"revision": "b82f9138def9e1b0ce69667ca29069cd8b785d5e",
|
"revision": "34a411a6261587124fc6746fb18a19c05571437a",
|
||||||
"repo_path": "/integration/gaia-central"
|
"repo_path": "/integration/gaia-central"
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
<copyfile dest="Makefile" src="core/root.mk"/>
|
<copyfile dest="Makefile" src="core/root.mk"/>
|
||||||
</project>
|
</project>
|
||||||
<project name="fake-dalvik" path="dalvik" remote="b2g" revision="ca1f327d5acc198bb4be62fa51db2c039032c9ce"/>
|
<project name="fake-dalvik" path="dalvik" remote="b2g" revision="ca1f327d5acc198bb4be62fa51db2c039032c9ce"/>
|
||||||
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="ea4a1f0d94a995486ed219f47132949071ecc172"/>
|
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="3fc26ae786e3869a7ef1e23afc9807ac1b4741f2"/>
|
||||||
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="49c722fa1a5e1873fa0010829fd97d0b74009ca5"/>
|
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="49c722fa1a5e1873fa0010829fd97d0b74009ca5"/>
|
||||||
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
|
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
|
||||||
<project name="librecovery" path="librecovery" remote="b2g" revision="84f2f2fce22605e17d511ff1767e54770067b5b5"/>
|
<project name="librecovery" path="librecovery" remote="b2g" revision="84f2f2fce22605e17d511ff1767e54770067b5b5"/>
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<copyfile dest="Makefile" src="core/root.mk"/>
|
<copyfile dest="Makefile" src="core/root.mk"/>
|
||||||
</project>
|
</project>
|
||||||
<project name="fake-dalvik" path="dalvik" remote="b2g" revision="ca1f327d5acc198bb4be62fa51db2c039032c9ce"/>
|
<project name="fake-dalvik" path="dalvik" remote="b2g" revision="ca1f327d5acc198bb4be62fa51db2c039032c9ce"/>
|
||||||
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="ea4a1f0d94a995486ed219f47132949071ecc172"/>
|
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="3fc26ae786e3869a7ef1e23afc9807ac1b4741f2"/>
|
||||||
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="49c722fa1a5e1873fa0010829fd97d0b74009ca5"/>
|
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="49c722fa1a5e1873fa0010829fd97d0b74009ca5"/>
|
||||||
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
|
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
|
||||||
<project name="librecovery" path="librecovery" remote="b2g" revision="84f2f2fce22605e17d511ff1767e54770067b5b5"/>
|
<project name="librecovery" path="librecovery" remote="b2g" revision="84f2f2fce22605e17d511ff1767e54770067b5b5"/>
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
<copyfile dest="Makefile" src="core/root.mk"/>
|
<copyfile dest="Makefile" src="core/root.mk"/>
|
||||||
</project>
|
</project>
|
||||||
<project name="fake-dalvik" path="dalvik" remote="b2g" revision="ca1f327d5acc198bb4be62fa51db2c039032c9ce"/>
|
<project name="fake-dalvik" path="dalvik" remote="b2g" revision="ca1f327d5acc198bb4be62fa51db2c039032c9ce"/>
|
||||||
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="ea4a1f0d94a995486ed219f47132949071ecc172"/>
|
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="3fc26ae786e3869a7ef1e23afc9807ac1b4741f2"/>
|
||||||
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="49c722fa1a5e1873fa0010829fd97d0b74009ca5"/>
|
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="49c722fa1a5e1873fa0010829fd97d0b74009ca5"/>
|
||||||
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
|
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
|
||||||
<project name="librecovery" path="librecovery" remote="b2g" revision="84f2f2fce22605e17d511ff1767e54770067b5b5"/>
|
<project name="librecovery" path="librecovery" remote="b2g" revision="84f2f2fce22605e17d511ff1767e54770067b5b5"/>
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
<copyfile dest="Makefile" src="core/root.mk"/>
|
<copyfile dest="Makefile" src="core/root.mk"/>
|
||||||
</project>
|
</project>
|
||||||
<project name="fake-dalvik" path="dalvik" remote="b2g" revision="ca1f327d5acc198bb4be62fa51db2c039032c9ce"/>
|
<project name="fake-dalvik" path="dalvik" remote="b2g" revision="ca1f327d5acc198bb4be62fa51db2c039032c9ce"/>
|
||||||
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="ea4a1f0d94a995486ed219f47132949071ecc172"/>
|
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="3fc26ae786e3869a7ef1e23afc9807ac1b4741f2"/>
|
||||||
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="49c722fa1a5e1873fa0010829fd97d0b74009ca5"/>
|
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="49c722fa1a5e1873fa0010829fd97d0b74009ca5"/>
|
||||||
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
|
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
|
||||||
<project name="librecovery" path="librecovery" remote="b2g" revision="84f2f2fce22605e17d511ff1767e54770067b5b5"/>
|
<project name="librecovery" path="librecovery" remote="b2g" revision="84f2f2fce22605e17d511ff1767e54770067b5b5"/>
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
</project>
|
</project>
|
||||||
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
|
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
|
||||||
<project name="fake-libdvm" path="dalvik" remote="b2g" revision="d50ae982b19f42f0b66d08b9eb306be81687869f"/>
|
<project name="fake-libdvm" path="dalvik" remote="b2g" revision="d50ae982b19f42f0b66d08b9eb306be81687869f"/>
|
||||||
<project name="gaia" path="gaia" remote="mozillaorg" revision="ea4a1f0d94a995486ed219f47132949071ecc172"/>
|
<project name="gaia" path="gaia" remote="mozillaorg" revision="3fc26ae786e3869a7ef1e23afc9807ac1b4741f2"/>
|
||||||
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="49c722fa1a5e1873fa0010829fd97d0b74009ca5"/>
|
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="49c722fa1a5e1873fa0010829fd97d0b74009ca5"/>
|
||||||
<project name="moztt" path="external/moztt" remote="b2g" revision="e33ea242b4328fb0d1824c951f379332b5021512"/>
|
<project name="moztt" path="external/moztt" remote="b2g" revision="e33ea242b4328fb0d1824c951f379332b5021512"/>
|
||||||
<project name="apitrace" path="external/apitrace" remote="apitrace" revision="788d9ce293a9b44f64536130cf4ad577e8101dbe"/>
|
<project name="apitrace" path="external/apitrace" remote="apitrace" revision="788d9ce293a9b44f64536130cf4ad577e8101dbe"/>
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
<copyfile dest="Makefile" src="core/root.mk"/>
|
<copyfile dest="Makefile" src="core/root.mk"/>
|
||||||
</project>
|
</project>
|
||||||
<project name="fake-dalvik" path="dalvik" remote="b2g" revision="ca1f327d5acc198bb4be62fa51db2c039032c9ce"/>
|
<project name="fake-dalvik" path="dalvik" remote="b2g" revision="ca1f327d5acc198bb4be62fa51db2c039032c9ce"/>
|
||||||
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="ea4a1f0d94a995486ed219f47132949071ecc172"/>
|
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="3fc26ae786e3869a7ef1e23afc9807ac1b4741f2"/>
|
||||||
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="49c722fa1a5e1873fa0010829fd97d0b74009ca5"/>
|
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="49c722fa1a5e1873fa0010829fd97d0b74009ca5"/>
|
||||||
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
|
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
|
||||||
<project name="librecovery" path="librecovery" remote="b2g" revision="84f2f2fce22605e17d511ff1767e54770067b5b5"/>
|
<project name="librecovery" path="librecovery" remote="b2g" revision="84f2f2fce22605e17d511ff1767e54770067b5b5"/>
|
||||||
|
|
|
@ -398,6 +398,7 @@ function Nfc() {
|
||||||
|
|
||||||
Services.obs.addObserver(this, NFC.TOPIC_MOZSETTINGS_CHANGED, false);
|
Services.obs.addObserver(this, NFC.TOPIC_MOZSETTINGS_CHANGED, false);
|
||||||
Services.obs.addObserver(this, NFC.TOPIC_XPCOM_SHUTDOWN, false);
|
Services.obs.addObserver(this, NFC.TOPIC_XPCOM_SHUTDOWN, false);
|
||||||
|
Services.obs.addObserver(this, NFC.TOPIC_HARDWARE_STATE, false);
|
||||||
|
|
||||||
gMessageManager.init(this);
|
gMessageManager.init(this);
|
||||||
let lock = gSettingsService.createLock();
|
let lock = gSettingsService.createLock();
|
||||||
|
@ -655,11 +656,28 @@ Nfc.prototype = {
|
||||||
this.handle(setting.key, setting.value);
|
this.handle(setting.key, setting.value);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case NFC.TOPIC_HARDWARE_STATE:
|
||||||
|
let state = JSON.parse(data);
|
||||||
|
if (state) {
|
||||||
|
let level = this.hardwareStateToPowerlevel(state.nfcHardwareState);
|
||||||
|
this.setConfig({ powerLevel: level });
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
setConfig: function setConfig(prop) {
|
setConfig: function setConfig(prop) {
|
||||||
this.sendToWorker("config", prop);
|
this.sendToWorker("config", prop);
|
||||||
|
},
|
||||||
|
|
||||||
|
hardwareStateToPowerlevel: function hardwareStateToPowerlevel(state) {
|
||||||
|
switch (state) {
|
||||||
|
case 0: return NFC.NFC_POWER_LEVEL_DISABLED;
|
||||||
|
case 1: return NFC.NFC_POWER_LEVEL_ENABLED;
|
||||||
|
case 2: return NFC.NFC_POWER_LEVEL_ENABLED;
|
||||||
|
case 3: return NFC.NFC_POWER_LEVEL_LOW;
|
||||||
|
default: return NFC.NFC_POWER_LEVEL_UNKNOWN;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -63,6 +63,7 @@ this.NFC_POWER_LEVEL_ENABLED = 2;
|
||||||
|
|
||||||
this.TOPIC_MOZSETTINGS_CHANGED = "mozsettings-changed";
|
this.TOPIC_MOZSETTINGS_CHANGED = "mozsettings-changed";
|
||||||
this.TOPIC_XPCOM_SHUTDOWN = "xpcom-shutdown";
|
this.TOPIC_XPCOM_SHUTDOWN = "xpcom-shutdown";
|
||||||
|
this.TOPIC_HARDWARE_STATE = "nfc-hardware-state-change";
|
||||||
this.SETTING_NFC_ENABLED = "nfc.enabled";
|
this.SETTING_NFC_ENABLED = "nfc.enabled";
|
||||||
this.SETTING_NFC_POWER_LEVEL = "nfc.powerlevel";
|
this.SETTING_NFC_POWER_LEVEL = "nfc.powerlevel";
|
||||||
|
|
||||||
|
|
|
@ -122,10 +122,32 @@ function dial(number) {
|
||||||
return deferred.promise;
|
return deferred.promise;
|
||||||
}
|
}
|
||||||
|
|
||||||
function answer(call) {
|
// Answering an incoming call could trigger conference state change.
|
||||||
|
function answer(call, conferenceStateChangeCallback) {
|
||||||
log("Answering the incoming call.");
|
log("Answering the incoming call.");
|
||||||
|
|
||||||
let deferred = Promise.defer();
|
let deferred = Promise.defer();
|
||||||
|
let done = function() {
|
||||||
|
deferred.resolve(call);
|
||||||
|
};
|
||||||
|
|
||||||
|
let pending = ["call.onconnected"];
|
||||||
|
let receive = function(name) {
|
||||||
|
receivedPending(name, pending, done);
|
||||||
|
};
|
||||||
|
|
||||||
|
// When there's already a connected conference call, answering a new incoming
|
||||||
|
// call triggers conference state change. We should wait for
|
||||||
|
// |conference.onstatechange| before checking the state of the conference call.
|
||||||
|
if (conference.state === "connected") {
|
||||||
|
pending.push("conference.onstatechange");
|
||||||
|
check_onstatechange(conference, "conference", "held", function() {
|
||||||
|
if (typeof conferenceStateChangeCallback === "function") {
|
||||||
|
conferenceStateChangeCallback();
|
||||||
|
}
|
||||||
|
receive("conference.onstatechange");
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
call.onconnecting = function onconnectingIn(event) {
|
call.onconnecting = function onconnectingIn(event) {
|
||||||
log("Received 'connecting' call event for incoming call.");
|
log("Received 'connecting' call event for incoming call.");
|
||||||
|
@ -138,7 +160,7 @@ function answer(call) {
|
||||||
call.onconnected = null;
|
call.onconnected = null;
|
||||||
checkEventCallState(event, call, "connected");
|
checkEventCallState(event, call, "connected");
|
||||||
ok(!call.onconnecting);
|
ok(!call.onconnecting);
|
||||||
deferred.resolve(call);
|
receive("call.onconnected");
|
||||||
};
|
};
|
||||||
call.answer();
|
call.answer();
|
||||||
|
|
||||||
|
@ -592,7 +614,9 @@ function setupConferenceThreeCalls(outNumber, inNumber, inNumber2) {
|
||||||
.then(call => { inCall2 = call; })
|
.then(call => { inCall2 = call; })
|
||||||
.then(() => checkAll(conference, [inCall2], 'connected', [outCall, inCall],
|
.then(() => checkAll(conference, [inCall2], 'connected', [outCall, inCall],
|
||||||
[outInfo.active, inInfo.active, inInfo2.incoming]))
|
[outInfo.active, inInfo.active, inInfo2.incoming]))
|
||||||
.then(() => answer(inCall2))
|
.then(() => answer(inCall2, function() {
|
||||||
|
checkState(inCall2, [inCall2], 'held', [outCall, inCall]);
|
||||||
|
}))
|
||||||
.then(() => checkAll(inCall2, [inCall2], 'held', [outCall, inCall],
|
.then(() => checkAll(inCall2, [inCall2], 'held', [outCall, inCall],
|
||||||
[outInfo.held, inInfo.held, inInfo2.active]))
|
[outInfo.held, inInfo.held, inInfo2.active]))
|
||||||
.then(() => addCallsToConference([inCall2], function() {
|
.then(() => addCallsToConference([inCall2], function() {
|
||||||
|
|
|
@ -14,7 +14,11 @@
|
||||||
|
|
||||||
#include "mozilla/ArrayUtils.h"
|
#include "mozilla/ArrayUtils.h"
|
||||||
#include "mozilla/NullPtr.h"
|
#include "mozilla/NullPtr.h"
|
||||||
|
|
||||||
|
#ifdef MOZ_CRASHREPORTER
|
||||||
#include "nsExceptionHandler.h"
|
#include "nsExceptionHandler.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(ANDROID)
|
#if defined(ANDROID)
|
||||||
#include "android_ucontext.h"
|
#include "android_ucontext.h"
|
||||||
#include <android/log.h>
|
#include <android/log.h>
|
||||||
|
@ -92,10 +96,12 @@ Reporter(int nr, siginfo_t *info, void *void_context)
|
||||||
" %lu %lu %lu. Killing process.", pid, syscall_nr,
|
" %lu %lu %lu. Killing process.", pid, syscall_nr,
|
||||||
args[0], args[1], args[2], args[3], args[4], args[5]);
|
args[0], args[1], args[2], args[3], args[4], args[5]);
|
||||||
|
|
||||||
|
#ifdef MOZ_CRASHREPORTER
|
||||||
bool dumped = CrashReporter::WriteMinidumpForSigInfo(nr, info, void_context);
|
bool dumped = CrashReporter::WriteMinidumpForSigInfo(nr, info, void_context);
|
||||||
if (!dumped) {
|
if (!dumped) {
|
||||||
LOG_ERROR("Failed to write minidump");
|
LOG_ERROR("Failed to write minidump");
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// Try to reraise, so the parent sees that this process crashed.
|
// Try to reraise, so the parent sees that this process crashed.
|
||||||
// (If tgkill is forbidden, then seccomp will raise SIGSYS, which
|
// (If tgkill is forbidden, then seccomp will raise SIGSYS, which
|
||||||
|
|
Загрузка…
Ссылка в новой задаче