From ec55f260cf15095d31a617e20733c22ff40f3b68 Mon Sep 17 00:00:00 2001 From: Asaf Romano Date: Tue, 6 May 2014 11:43:59 +0300 Subject: [PATCH] tests-bustage fix for bug 981689 (the code relies on the current-version preference being always set, which isn't true for testing-prefs-branches) --- services/datareporting/policy.jsm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/datareporting/policy.jsm b/services/datareporting/policy.jsm index 1bb7310a04300..758cfb1dc8255 100644 --- a/services/datareporting/policy.jsm +++ b/services/datareporting/policy.jsm @@ -532,7 +532,7 @@ this.DataReportingPolicy.prototype = Object.freeze({ set dataSubmissionPolicyAccepted(value) { this._prefs.set("dataSubmissionPolicyAccepted", !!value); if (!!value) { - let currentPolicyVersion = this._prefs.get("currentPolicyVersion"); + let currentPolicyVersion = this._prefs.get("currentPolicyVersion", 1); this._prefs.set("dataSubmissionPolicyAcceptedVersion", currentPolicyVersion); } else { this._prefs.reset("dataSubmissionPolicyAcceptedVersion");