mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1059102 - Part 1: add logging. r=dimi
From 7a4444b112e42c58b1afdf439663de47e4ab43ac Mon Sep 17 00:00:00 2001 --- dom/nfc/gonk/Nfc.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
This commit is contained in:
parent
08246033a0
commit
a9d6f58176
@ -237,7 +237,7 @@ XPCOMUtils.defineLazyGetter(this, "gMessageManager", function () {
|
||||
*/
|
||||
|
||||
receiveMessage: function receiveMessage(msg) {
|
||||
debug("Received '" + msg.name + "' message from content process");
|
||||
debug("Received '" + JSON.stringify(msg) + "' message from content process");
|
||||
if (msg.name == "child-process-shutdown") {
|
||||
this.removePeerTarget(msg.target);
|
||||
return null;
|
||||
@ -503,11 +503,9 @@ Nfc.prototype = {
|
||||
targetsByRequestId: null,
|
||||
|
||||
/**
|
||||
* Process a message from the content process.
|
||||
* Process a message from the gMessageManager.
|
||||
*/
|
||||
receiveMessage: function receiveMessage(message) {
|
||||
debug("Received '" + JSON.stringify(message) + "' message from content process");
|
||||
|
||||
let isPowerAPI = message.name == "NFC:StartPoll" ||
|
||||
message.name == "NFC:StopPoll" ||
|
||||
message.name == "NFC:PowerOff";
|
||||
|
Loading…
Reference in New Issue
Block a user