Closed Bug 1184131 Opened 9 years ago Closed 9 years ago

Slide show not rendered on about:addons > Get Add-ons

Categories

(addons.mozilla.org Graveyard :: Discovery Pane, defect)

defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED
2015-07

People

(Reporter: alice0775, Assigned: magopian)

References

Details

(Keywords: regression)

Attachments

(1 file)

Steps to reproduce:
1. Open aboud:addons and select Get Add-ons pane

Actual results:
Slide show not display

And an error is shown in Web Console:
SyntaxError: JSON.parse: expected property name or '}' at line 1 column 2 of the JSON data discovery-min.js:5:16124

Expected Results:
Slide show should display
Component: General → Discovery Pane
Product: Firefox → addons.mozilla.org
Version: 41 Branch → unspecified
Problem seems to be that in extensions.js we do setURL(url + "#" + JSON.stringify(list));
After bug 1093611 url.hash no longer automatically unescapes the result, so we have to call unescape(url.hash) to get the same value.
Excellent investigation! It seems the extensions.js file comes from https://github.com/mozilla/nunjucks/blob/master/tests/express-sample/js/extensions.js, which is (I think) a dependency of commonplace.

I guess we need to update the requirements to use a more recent version, and hope this has been fixed (or submit a bug on nunjucks?).

Do you want to do that? I can help if you want to create a PR for that on AMO ;)
See Also: → 1168054
This bug is going to hit beta in less than two weeks, so we should fix it for next week's push.
Severity: normal → major
Target Milestone: --- → 2015-07
It seems the problem wasn't coming from nunjucks but from discovery_pane.js on olympia.

PR: https://github.com/mozilla/olympia/pull/630
Assignee: nobody → mathieu
Commits pushed to master at https://github.com/mozilla/olympia

https://github.com/mozilla/olympia/commit/b5b301bfba1260c1860e992cae5ef5e677ba3554
location.hash isn't unescaped automatically anymore in FF >= 41 (bug 1184131)

https://github.com/mozilla/olympia/commit/7581411223af1e14b85771db50e70a11bbb7539a
Merge pull request #630 from magopian/1184131-unescape-location.hash

location.hash isn't unescaped automatically anymore in FF >= 41 (bug 1184131)
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: