[Pkg-mozext-commits] [perspectives-extension] 06/44: Pers_report - Convert synchronous request to async
David Prévot
taffit at moszumanska.debian.org
Sun Jun 26 04:59:17 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository perspectives-extension.
commit b71ba83c1f18b4d55fe0be7c87574142b6fb0b7f
Author: Dave Schaefer <dave.schaefer at gmail.com>
Date: Mon Oct 19 23:44:54 2015 -0600
Pers_report - Convert synchronous request to async
At the request of AMO reviewers.
This code is currently unused, but we should fix it
before re-enabling, once we're ready.
---
plugin/chrome/content/report.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/plugin/chrome/content/report.js b/plugin/chrome/content/report.js
index ffb3cf3..c9e6a30 100644
--- a/plugin/chrome/content/report.js
+++ b/plugin/chrome/content/report.js
@@ -116,7 +116,8 @@ var Pers_report = {
// no feedback if request fails.
var req = new XMLHttpRequest();
// synchronous request
- req.open("POST", this.REPORT_URI + "?record_ip=" + full_report, false);
+ // TODO: change to async request
+ req.open("POST", this.REPORT_URI + "?record_ip=" + full_report, true);
req.send(report_json_str);
if(req.status != 200) {
Pers_util.pers_alert(
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/perspectives-extension.git
More information about the Pkg-mozext-commits
mailing list