mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1208376 - Disable v2 data upload in Firefox 42+. r=gfritzsche
This commit is contained in:
parent
94946f8488
commit
b49fea80b1
@ -3,6 +3,7 @@
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
pref("datareporting.policy.dataSubmissionEnabled", true);
|
||||
pref("datareporting.policy.dataSubmissionEnabled.v2", true);
|
||||
pref("datareporting.policy.firstRunTime", "0");
|
||||
pref("datareporting.policy.dataSubmissionPolicyNotifiedTime", "0");
|
||||
pref("datareporting.policy.dataSubmissionPolicyAcceptedVersion", 0);
|
||||
|
@ -378,6 +378,16 @@ this.DataReportingPolicy.prototype = Object.freeze({
|
||||
this._prefs.set("dataSubmissionEnabled", !!value);
|
||||
},
|
||||
|
||||
/**
|
||||
* Whether submission of data is allowed for v2.
|
||||
*
|
||||
* This is used to gently turn off data submission for FHR v2 in Firefox 42+.
|
||||
*/
|
||||
get dataSubmissionEnabledV2() {
|
||||
// Default is true because we are opt-out.
|
||||
return this._prefs.get("dataSubmissionEnabled.v2", true);
|
||||
},
|
||||
|
||||
get currentPolicyVersion() {
|
||||
return this._prefs.get("currentPolicyVersion", DATAREPORTING_POLICY_VERSION);
|
||||
},
|
||||
@ -648,7 +658,7 @@ this.DataReportingPolicy.prototype = Object.freeze({
|
||||
// If the master data submission kill switch is toggled, we have nothing
|
||||
// to do. We don't notify about data policies because this would have
|
||||
// no effect.
|
||||
if (!this.dataSubmissionEnabled) {
|
||||
if (!this.dataSubmissionEnabled || !this.dataSubmissionEnabledV2) {
|
||||
this._log.debug("Data submission is disabled. Doing nothing.");
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user