[Pkg-mozext-commits] [perspectives-extension] 06/24: Perspectives - fix XMLHttpRequest() constructor call to use 'new'
David Prévot
taffit at moszumanska.debian.org
Sat May 3 02:44:28 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch debian
in repository perspectives-extension.
commit 619965356c80c1e747485ee145c7317facd23a0f
Author: Dave Schaefer <dave.schaefer at gmail.com>
Date: Sat Apr 26 00:14:09 2014 -0600
Perspectives - fix XMLHttpRequest() constructor call to use 'new'
We probably should have done this all along,
but starting in Firefox 30 this will be enforced,
and Perspectives won't work without it.
https://developer.mozilla.org/en-US/Firefox/Releases/30
https://bugzilla.mozilla.org/show_bug.cgi?id=916644
Fixes GH 108
---
plugin/chrome/content/notaries.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugin/chrome/content/notaries.js b/plugin/chrome/content/notaries.js
index 31e2748..a1d9951 100644
--- a/plugin/chrome/content/notaries.js
+++ b/plugin/chrome/content/notaries.js
@@ -276,7 +276,7 @@ var Perspectives = {
var full_url = "http://" + notary_server.host +
"?host=" + ti.uri.host + "&port=" + port + "&service_type=2&";
Pers_debug.d_print("query", "sending query: '" + full_url + "'");
- var req = XMLHttpRequest();
+ var req = new XMLHttpRequest();
req.open("GET", full_url, true);
req.onreadystatechange = (function(evt) {
Perspectives.notaryAjaxCallback(ti, req, notary_server, ti.has_user_permission);
--
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