Closed Bug 595149 Opened 14 years ago Closed 14 years ago

Javascript is executed on loading a javascript attachment

Categories

(Mozilla Labs Graveyard :: FlightDeck, defect, P1)

x86
Linux
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: zalun, Assigned: zalun)

Details

To reproduce: 1. create javascript file with .js extension 2. add as attachment 3 [review]. click to display - it will execute it and display It can be used to create requests etc. - it will error if one would use this file as an attachment http://github.com/zalun/jsFiddleGithubDemo/blob/master/Demo/demo.js
Assignee: nobody → zaloon
Let's just make sure we aren't unintentionally attached js files any more...thinking this should go in this release.
Priority: -- → P1
Target Milestone: -- → 0.6
Problem - it shouldn't eval the script with these setting: https://github.com/zalun/FlightDeck/blob/master/apps/jetpack/media/js/Package.js#L61
I think it's not doing it - it's the display.
Unfortunately it shouldn't display it - here is the code responsible for it: Preparing elements: https://github.com/zalun/FlightDeck/blob/master/media/js/FlightDeck.Modal.js#L26 Displaying StickyWin: https://github.com/zalun/FlightDeck/blob/master/media/js/Clientcide.ModalWindow.js
Status: NEW → ASSIGNED
cancel the last one - it is happening in the Request
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Product: Mozilla Labs → Mozilla Labs Graveyard
You need to log in before you can comment on or make changes to this bug.