Merge lp:~jbicha/ubuntu-archive-tools/fix-mixed-https-content into lp:ubuntu-archive-tools

Proposed by Jeremy Bícha
Status: Merged
Merge reported by: Steve Langasek
Merged at revision: not available
Proposed branch: lp:~jbicha/ubuntu-archive-tools/fix-mixed-https-content
Merge into: lp:ubuntu-archive-tools
Diff against target: 11 lines (+1/-1)
1 file modified
charts.py (+1/-1)
To merge this branch: bzr merge lp:~jbicha/ubuntu-archive-tools/fix-mixed-https-content
Reviewer Review Type Date Requested Status
Steve Langasek Approve
Review via email: mp+336268@code.launchpad.net

Description of the change

The Ubuntu Archive reports can be viewed over https like at
https://people.canonical.com/~ubuntu-archive/nbs.html

But the chart at the bottom of the page doesn't load.

Firefox's Console in the Developer Tools shows this error:

  Blocked loading mixed active content “http://yui.yahooapis.com/3.17.2/build/yui/yui-min.js

Chromium also has the problem and shows a similar error in its Console.

I haven't tested this but I think this should work. Yahoo appears to not serve YUI over HTTPS so I'm pointing to the CloudFlare mirror instead.

To post a comment you must log in.
Revision history for this message
Steve Langasek (vorlon) wrote :

The yui.yahooapis.com hostname is part of the api. Why is it correct to replace this hostname with cloudflare?

review: Needs Information
Revision history for this message
Steve Langasek (vorlon) wrote :

To be clear: "Yahoo isn't providing this over HTTPS, but here's a URL that is HTTPS and seems to be stable" is not a good justification.

Revision history for this message
Colin Watson (cjwatson) wrote :

I'd suggest that we should self-host the necessary file(s) instead.

Revision history for this message
Jeremy Bícha (jbicha) wrote :
Revision history for this message
Steve Langasek (vorlon) wrote :

Confirmed that https://yui-s.yahooapis.com/3.17.2/build/yui/yui-min.js now exists so switching to that and considering this merged

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'charts.py'
2--- charts.py 2015-03-10 14:37:48 +0000
3+++ charts.py 2018-01-17 22:50:06 +0000
4@@ -31,7 +31,7 @@
5 height: %(height)dpx;
6 }
7 </style>
8- <script src="http://yui.yahooapis.com/3.17.2/build/yui/yui-min.js">
9+ <script src="https://cdnjs.cloudflare.com/ajax/libs/yui/3.17.2/yui/yui-min.js">
10 </script>
11 """) % params
12

Subscribers

People subscribed via source and target branches