Closed Bug 1061914 Opened 10 years ago Closed 10 years ago

Do not hardcode CDN mozorg.cdn.mozilla.net

Categories

(addons.mozilla.org Graveyard :: Code Quality, defect, P3)

defect

Tracking

(Not tracked)

VERIFIED FIXED
2014-10

People

(Reporter: TheOne, Assigned: aspyrine)

Details

Hardcoding the CDN the way we currently do breaks dev instances if you access them via http as the CDN is CSP whitelisted via https only.

~/mozilla/olympia $ grep -R "mozorg.cdn" *
templates/impala/base.html:    <link href="//mozorg.cdn.mozilla.net/media/css/tabzilla-min.css" rel="stylesheet" />
templates/impala/base.html:    <script src="//mozorg.cdn.mozilla.net/{{ LANG }}/tabzilla/tabzilla.js"></script>
templates/base.html:           <link href="//mozorg.cdn.mozilla.net/media/css/tabzilla-min.css" rel="stylesheet" />
templates/base.html:           <script src="//mozorg.cdn.mozilla.net/{{ LANG }}/tabzilla/tabzilla.js"></script>

(irrelevant results removed)
Priority: -- → P3
Target Milestone: --- → 2014-09
Can we just

s/=/=https:\/\//

ie insert https:// as I don't see that olympia contains tabzilla?
Assignee: nobody → olivier
(In reply to Andreas Wagner [:TheOne] from comment #1)
> Can we just
> 
> s/=/=https:\/\//

As suggested, I changed scheme to https in https://github.com/mozilla/olympia/pull/310
(In reply to Christopher Van Wiemeersch [:cvan] from comment #3)
> I can file a separate bug if you'd wish.

I would take care of this right now, don't bother with another bug :)
Target Milestone: 2014-09 → 2014-10
> I would take care of this right now, don't bother with another bug :)

Done https://github.com/mozilla/olympia/pull/312
Thanks again! Merged:
https://github.com/mozilla/olympia/commit/8497a03
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Please add STR here or mark it with [qa-] if no QA is needed.
1/ Open https://addons-dev.allizom.org/fr/firefox/
2/ View the page source
3/ Check that URLs for mozorg.cdn.mozilla.net start with "https://"
4/ Check that URLs for cdn.optimizely.com start with "https://"
Verified as fixed in FF32(Win7) in marketplace-dev.allizom.org
Postfix screencast: http://screencast.com/t/r0wyCZoULk
Closing.
Status: RESOLVED → VERIFIED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.