[perf-web] Fix XMLHttpRequest URLs to go to https endpoints
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [perf-web] Fix XMLHttpRequest URLs to go to https endpoints
- Date: Thu, 18 Sep 2014 04:13:19 +0000 (UTC)
commit 3723a17ef663025376fb83109d78c4343f8987bd
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Thu Sep 18 00:10:56 2014 -0400
Fix XMLHttpRequest URLs to go to https endpoints
When perf.gnome.org is served over HTTPS, trying to do AJAX requests
from http:// urls cause them to be blocked because of "mixed active content".
Also fix some links to GNOME to go directly to https:// URLs.
static/main.js | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/static/main.js b/static/main.js
index 8765b94..029b829 100644
--- a/static/main.js
+++ b/static/main.js
@@ -1870,14 +1870,14 @@ PerfDisplay.prototype.updateDetails = function() {
var parts = build.split("/");
var id = parts[0] + parts[1] + parts[2] + "." + parts[3];
$( "#detailsLink" )
- .attr('href', 'http://build.gnome.org/#/build/' + id)
+ .attr('href', 'https://build.gnome.org/#/build/' + id)
.text(id);
var buildCount = builds.length;
var modified = [];
for (var i = 0; i < builds.length; i++) {
- var url = 'http://build.gnome.org/continuous/work/builds/' + builds[i] + '/bdiff.json';
+ var url = 'https://build.gnome.org/continuous/work/builds/' + builds[i] + '/bdiff.json';
var me = this;
$.ajax({datatype: "json",
url: url,
@@ -1939,7 +1939,7 @@ PerfDisplay.prototype.fillDetails = function(modifiedArrays) {
var m;
m = /^git:git:\/\/git.gnome.org\/(.*)/.exec(src);
if (m)
- cgitBase = 'http://git.gnome.org/browse/' + m[1];
+ cgitBase = 'https://git.gnome.org/browse/' + m[1];
m = /^git:git:\/\/anongit.freedesktop.org\/git\/(.*)/.exec(src);
if (m)
cgitBase = 'http://cgit.freedesktop.org/' + m[1];
@@ -1973,7 +1973,7 @@ PerfDisplay.prototype.fetchRevisions = function(date) {
this.loadedRevisions[datePath] = 1;
- var url = 'http://build.gnome.org/continuous/work/builds/' + datePath + '/index.json';
+ var url = 'https://build.gnome.org/continuous/work/builds/' + datePath + '/index.json';
$.ajax({datatype: "json",
url: url,
success:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]