mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1010668 - B2G NFC: Nfc doesn't implement nsIObserver. r=dimi
From 48629f7e966c98e2149eb9ec46fa16120d804413 Mon Sep 17 00:00:00 2001 --- dom/system/gonk/Nfc.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-)
This commit is contained in:
parent
4e4a2f8929
commit
e4c4d276f1
@ -437,7 +437,7 @@ Nfc.prototype = {
|
|||||||
classDescription: "Nfc",
|
classDescription: "Nfc",
|
||||||
interfaces: [Ci.nsIWorkerHolder]}),
|
interfaces: [Ci.nsIWorkerHolder]}),
|
||||||
|
|
||||||
QueryInterface: XPCOMUtils.generateQI([Ci.nsIWorkerHolder]),
|
QueryInterface: XPCOMUtils.generateQI([Ci.nsIWorkerHolder, Ci.nsIObserver]),
|
||||||
|
|
||||||
_currentSessionId: null,
|
_currentSessionId: null,
|
||||||
|
|
||||||
@ -636,6 +636,15 @@ Nfc.prototype = {
|
|||||||
return null;
|
return null;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* nsIObserver interface methods.
|
||||||
|
*/
|
||||||
|
observe: function(subject, topic, data) {
|
||||||
|
if (topic != "profile-after-change") {
|
||||||
|
debug("Should receive 'profile-after-change' only, received " + topic);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
setConfig: function setConfig(prop) {
|
setConfig: function setConfig(prop) {
|
||||||
this.sendToWorker("config", prop);
|
this.sendToWorker("config", prop);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user