Closed Bug 503968 Opened 15 years ago Closed 15 years ago

Download button missing for experimental add-ons in Meet the developer page

Categories

(addons.mozilla.org Graveyard :: Public Pages, defect)

x86
All
defect
Not set
major

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: krupa.mozbugs, Assigned: clouserw)

References

()

Details

Attachments

(2 files)

Attached image download button missing
steps to reproduce:
Go to https://preview.addons.mozilla.org/en-US/firefox/addon/12466/developers

observed behavior:
-Download button is missing for experimental addons in "Meet the developer" page.
-For regular addons,download button is present.
wfm, what browser/version/etc?
STR:
1.Do NOT log in
2.Navigate to the developer profile for an experimental add-on

reproducible in Ff3.5/IE7/IE8
(In reply to comment #2)
> STR:
> 1.Do NOT log in
> 2.Navigate to the developer profile for an experimental add-on
> 
> reproducible in Ff3.5/IE7/IE8

Thanks, I can reproduce now
This actually looks like an XSS/injection issue:

Error: missing ) after argument list
Source File: https://preview.addons.mozilla.org/en-US/firefox/addon/12466/developers
Line: 432, Column: 97
Source Code:
setTimeout(function() {initExpConfirm('70522-17791944');fixPlatformLinks('70522-17791944', 'tets'ನಿಂತ ಮೇಲೆ ಹಾಸ');},0);
Attached patch use publish()Splinter Review
Attachment #388395 - Flags: review?(jbalogh)
Comment on attachment 388395 [details] [diff] [review]
use publish()

Only a 1/2 r+, for the publish part.  Why are you moving pageTitle out of the view?  That doesn't feel like the domain of the controller.
Attachment #388395 - Flags: review?(jbalogh) → review+
(In reply to comment #7)
> (From update of attachment 388395 [details] [diff] [review])
> Only a 1/2 r+, for the publish part.  Why are you moving pageTitle out of the
> view?  That doesn't feel like the domain of the controller.

because cake expects it to be set in the controller and escapes the title automatically
r29730
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Assignee: nobody → clouserw
(In reply to comment #8)
> (In reply to comment #7)
> > (From update of attachment 388395 [details] [diff] [review] [details])
> > Only a 1/2 r+, for the publish part.  Why are you moving pageTitle out of the
> > view?  That doesn't feel like the domain of the controller.
> 
> because cake expects it to be set in the controller and escapes the title
> automatically

Oh of course, where else would the title of an html page belong? :(
(In reply to comment #10)
> (In reply to comment #8)
> > (In reply to comment #7)
> > > (From update of attachment 388395 [details] [diff] [review] [details] [details])
> > > Only a 1/2 r+, for the publish part.  Why are you moving pageTitle out of the
> > > view?  That doesn't feel like the domain of the controller.
> > 
> > because cake expects it to be set in the controller and escapes the title
> > automatically
> 
> Oh of course, where else would the title of an html page belong? :(

Actually, this one may be on us.  We're running it through $html->entities() in amo2009.thtml
Download button is now visible.The JS error is not occurring anymore.Marking this verified.
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.

Attachment

General

Created:
Updated:
Size: