Closed
Bug 649513
Opened 13 years ago
Closed 13 years ago
Failing to load stats_worker.js
Categories
(addons.mozilla.org Graveyard :: Statistics, defect, P2)
addons.mozilla.org Graveyard
Statistics
Tracking
(Not tracked)
VERIFIED
FIXED
6.0.9
People
(Reporter: clouserw, Assigned: oremj)
References
Details
When I try to view a stats page, eg. https://addons.mozilla.org/z/en-US/firefox/addon/status-watch/statistics/ The bottom three graphs never stop spinning. My error console says: Error: Failed to load script: https://static.addons.mozilla.net/media/js/zamboni/stats/stats_worker.js (nsresult = 0x805303f4)
Reporter | ||
Updated•13 years ago
|
Priority: -- → P5
Target Milestone: Q2 2011 → 6.0.8
Comment 1•13 years ago
|
||
The script is failing to load because workers must be loaded from same-origin. I've moved stats_worker.js to media/js/workers/. Possible solutions here are setting up the headers so the CDN is treated as same-origin (might not be wise) or exempting media/js/workers from a CDN rewrite (might be kludgey). Wil, what do you think?
Reporter | ||
Comment 2•13 years ago
|
||
I don't like either of those! :) It sounds like a special case either way, not rewriting the script is probably the best. If you give me the new URL, I'll get that added
Comment 3•13 years ago
|
||
The script is at /media/js/workers/stats_worker.js I made the workers directory, so we can actually exempt all future workers with a slightly more general rule if we so wish.
Reporter | ||
Comment 4•13 years ago
|
||
That's a good idea. We can just use this bug. Oremj, can you add this to the exclusions so it doesn't hit the CDN? ^/media/js/workers/.* A similar rule was added in bug 649789
Assignee: thepotch → jeremy.orem+bugs
Reporter | ||
Updated•13 years ago
|
Target Milestone: 6.0.8 → 6.0.9
Reporter | ||
Updated•13 years ago
|
Priority: P5 → P2
Assignee | ||
Comment 5•13 years ago
|
||
Added this to preview: RewriteCond %{ENV:REQ_URI} ^/media/js/workers/.*$ RewriteRule . - [E=IS_CDN_REQ:false]
Reporter | ||
Comment 6•13 years ago
|
||
Cool, I'm getting a different error now, so I think this is fixed. Thanks.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Comment 7•13 years ago
|
||
Filed bug 655833 for the new JS error. I don't see the error anymore @ https://addons.allizom.org/z/en-US/firefox/addon/status-watch/statistics/?last=90 Marking this as verified.
Status: RESOLVED → VERIFIED
Updated•8 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•