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)
Tracking
(Not tracked)
RESOLVED
FIXED
0.6
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
Updated•14 years ago
|
Assignee: nobody → zaloon
Comment 1•14 years ago
|
||
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
Assignee | ||
Comment 2•14 years ago
|
||
Problem - it shouldn't eval the script with these setting:
https://github.com/zalun/FlightDeck/blob/master/apps/jetpack/media/js/Package.js#L61
Assignee | ||
Comment 3•14 years ago
|
||
I think it's not doing it - it's the display.
Assignee | ||
Comment 4•14 years ago
|
||
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
Assignee | ||
Updated•14 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 5•14 years ago
|
||
cancel the last one - it is happening in the Request
Assignee | ||
Comment 6•14 years ago
|
||
overloading processScripts fixes it
https://github.com/zalun/FlightDeck/commit/8d0fd640ce726105200d7c7335214675df32f405
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•