mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 863130 - (Regional) The SMS delivery report is on by default. r=vicamo
This commit is contained in:
parent
190e133444
commit
65b60f123f
@ -381,6 +381,7 @@ pref("dom.ipc.browser_frames.oop_by_default", false);
|
||||
// Temporary permission hack for WebSMS
|
||||
pref("dom.sms.enabled", true);
|
||||
pref("dom.sms.strict7BitEncoding", false); // Disabled by default.
|
||||
pref("dom.sms.requestStatusReport", false); // Disabled by default.
|
||||
|
||||
// Temporary permission hack for WebContacts
|
||||
pref("dom.mozContacts.enabled", true);
|
||||
|
@ -164,6 +164,11 @@ SettingsListener.observe('language.current', 'en-US', function(value) {
|
||||
function(value) {
|
||||
Services.prefs.setBoolPref('dom.sms.strict7BitEncoding', value);
|
||||
});
|
||||
|
||||
SettingsListener.observe('ril.sms.requestStatusReport.enabled', false,
|
||||
function(value) {
|
||||
Services.prefs.setBoolPref('dom.sms.requestStatusReport', value);
|
||||
});
|
||||
})();
|
||||
|
||||
//=================== DeviceInfo ====================
|
||||
|
@ -2696,7 +2696,14 @@ RadioInterfaceLayer.prototype = {
|
||||
let options = this._fragmentText(message, null, strict7BitEncoding);
|
||||
options.rilMessageType = "sendSMS";
|
||||
options.number = PhoneNumberUtils.normalize(number);
|
||||
options.requestStatusReport = true;
|
||||
let requestStatusReport;
|
||||
try {
|
||||
requestStatusReport =
|
||||
Services.prefs.getBoolPref("dom.sms.requestStatusReport");
|
||||
} catch (e) {
|
||||
requestStatusReport = false;
|
||||
}
|
||||
options.requestStatusReport = requestStatusReport;
|
||||
if (options.segmentMaxSeq > 1) {
|
||||
options.segmentRef16Bit = this.segmentRef16Bit;
|
||||
options.segmentRef = this.nextSegmentRef;
|
||||
|
@ -4068,6 +4068,7 @@ pref("dom.sms.enabled", false);
|
||||
// Enable Latin characters replacement with corresponding ones in GSM SMS
|
||||
// 7-bit default alphabet.
|
||||
pref("dom.sms.strict7BitEncoding", false);
|
||||
pref("dom.sms.requestStatusReport", false);
|
||||
|
||||
// WebContacts
|
||||
pref("dom.mozContacts.enabled", false);
|
||||
|
Loading…
Reference in New Issue
Block a user