Bug 1089511 - refactor system/js/bluetooth to future compatible format #25791
Conversation
709eecc
to
467d08f
Compare
gasolin (gasolin) started tests. Results |
// Turn off Geolocation | ||
'geolocation.enabled': false | ||
}; | ||
|
||
this.setMozSettings(settingsToSet); | ||
// Turn off Bluetooth | ||
Bluetooth.disable(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a good idea to couple bluetooth.
Please consider to dispatch event or implement System.request('BluetoothCore.toggle');
gasolin (gasolin) started tests. Results |
c744afc
to
b056d38
Compare
gasolin (gasolin) started tests. Results |
b056d38
to
3148c24
Compare
// Turn off Geolocation | ||
'geolocation.enabled': false | ||
}; | ||
|
||
this.setMozSettings(settingsToSet); | ||
// Turn off Bluetooth | ||
window.dispatchEvent(new CustomEvent('bluetooth-disable')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
event name: request-disable-bluetooth
3148c24
to
ac93ee5
Compare
gasolin (gasolin) started tests. Results |
ac93ee5
to
907794e
Compare
gasolin (gasolin) started tests. Results |
907794e
to
8121e0d
Compare
gasolin (gasolin) started tests. Results |
8121e0d
to
0ba124d
Compare
gasolin (gasolin) started tests. Results |
gasolin (gasolin) started tests. Results |
// and try to get defaultAdapter at this moment | ||
// when bluetooth adapter is ready, a.k.a enabled, | ||
// emit event to notify QuickSettings and try to get | ||
// defaultAdapter at this moment | ||
bluetooth.onadapteradded = function bt_onAdapterAdded() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
try this out
bluetooth.addEventListener('adapteradded', this);
5c89d28
to
8127236
Compare
gasolin (gasolin) started tests. Results |
8127236
to
1704a34
Compare
gasolin (gasolin) started tests. Results |
1704a34
to
97fbc22
Compare
gasolin (gasolin) started tests. Results |
97fbc22
to
04e04a2
Compare
gasolin (gasolin) started tests. Results |
04e04a2
to
49eb7c3
Compare
gasolin (gasolin) started tests. Results |
49eb7c3
to
ed5a7b1
Compare
gasolin (gasolin) started tests. Results |
Bug 1089511 - refactor system/js/bluetooth to future compatible format, r=alive&Ian
Revert "Merge pull request #25791 from gasolin/issue-1089511-3"
No description provided.