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
bbc66ab7aa
commit
1992f66ec0
@ -437,7 +437,7 @@ Nfc.prototype = {
|
||||
classDescription: "Nfc",
|
||||
interfaces: [Ci.nsIWorkerHolder]}),
|
||||
|
||||
QueryInterface: XPCOMUtils.generateQI([Ci.nsIWorkerHolder]),
|
||||
QueryInterface: XPCOMUtils.generateQI([Ci.nsIWorkerHolder, Ci.nsIObserver]),
|
||||
|
||||
_currentSessionId: null,
|
||||
|
||||
@ -636,6 +636,15 @@ Nfc.prototype = {
|
||||
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) {
|
||||
this.sendToWorker("config", prop);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user