mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 852782 - update URL to final health report URL, r=MattN
This commit is contained in:
parent
9bd0f6aa25
commit
c60acf2d88
@ -29,11 +29,16 @@ let healthReportWrapper = {
|
||||
|
||||
let iframe = document.getElementById("remote-report");
|
||||
iframe.addEventListener("load", healthReportWrapper.initRemotePage, false);
|
||||
let report = Services.io.newURI(prefs.get("about.reportUrl"), null, null);
|
||||
let report = this._getReportURI();
|
||||
iframe.src = report.spec;
|
||||
prefs.observe("uploadEnabled", this.updatePrefState, healthReportWrapper);
|
||||
},
|
||||
|
||||
_getReportURI: function () {
|
||||
let url = Services.urlFormatter.formatURLPref("datareporting.healthreport.about.reportUrl");
|
||||
return Services.io.newURI(url, null, null);
|
||||
},
|
||||
|
||||
onOptIn: function () {
|
||||
policy.recordHealthReportUploadEnabled(true,
|
||||
"Health report page sent opt-in command.");
|
||||
@ -67,7 +72,7 @@ let healthReportWrapper = {
|
||||
},
|
||||
|
||||
injectData: function (type, content) {
|
||||
let report = Services.io.newURI(prefs.get("about.reportUrl"), null, null);
|
||||
let report = this._getReportURI();
|
||||
|
||||
// file URIs can't be used for targetOrigin, so we use "*" for this special case
|
||||
// in all other cases, pass in the URL to the report so we properly restrict the message dispatch
|
||||
|
@ -29,5 +29,4 @@ pref("datareporting.healthreport.service.providerCategories",
|
||||
#endif
|
||||
);
|
||||
|
||||
pref("datareporting.healthreport.about.glossaryUrl", "https://services.mozilla.com/healthreport/glossary.html");
|
||||
pref("datareporting.healthreport.about.reportUrl", "https://services.mozilla.com/healthreport/placeholder.html");
|
||||
pref("datareporting.healthreport.about.reportUrl", "https://fhr.cdn.mozilla.net/%LOCALE%/");
|
||||
|
Loading…
Reference in New Issue
Block a user