Closed
Bug 120756
Opened 24 years ago
Closed 24 years ago
function use before <script> declaration considered harmful
Categories
(Bugzilla :: Bugzilla-General, defect, P1)
Tracking
()
RESOLVED
FIXED
Bugzilla 2.16
People
(Reporter: timeless, Assigned: gerv)
Details
Attachments
(1 file, 1 obsolete file)
|
6.76 KB,
patch
|
afranke
:
review+
|
Details | Diff | Splinter Review |
IE5.5 and 6 at the very least result in runtime errors if you do it. The
attachments manager triggers this a lot. a non harmful example is to click edit
attachment as comment. you get a script error and no results.
Comment 1•24 years ago
|
||
Much as we all love the lizard, I think that this is a 2.16 blocker. It would
possibly be easier for someone with access to IE to do this one.
Priority: -- → P1
Target Milestone: --- → Bugzilla 2.16
Comment 2•24 years ago
|
||
This doesn't happen with the query.cgi JS-foo, but I agree it's a good thing.
Should this be blocked by the "make JS a separate file" bug to make it easier to
implement?
| Assignee | ||
Comment 3•24 years ago
|
||
This seems sensible, but I have no ability to test it. I just moved the entire
<script> block to the top of the file.
Gerv
| Assignee | ||
Updated•24 years ago
|
Comment 4•24 years ago
|
||
Need reviews from Javascript folks on this one.
Comment 5•24 years ago
|
||
Comment on attachment 67406 [details] [diff] [review]
Patch v.1
r=caillon
Attachment #67406 -
Flags: review+
Comment 6•24 years ago
|
||
Comment on attachment 67406 [details] [diff] [review]
Patch v.1
r=afranke
Attachment #67406 -
Flags: review+
Comment 8•24 years ago
|
||
Comment on attachment 67406 [details] [diff] [review]
Patch v.1
I went to check this in, and I can't get the patch to apply. diff claims it's
"reversed or already applied", and the patch fails whether I apply it in
reverse mode or not.
Attachment #67406 -
Flags: review+ → review-
Comment 9•24 years ago
|
||
That patch was diffed against r1.7 of edit.atml, current cvs tip is r1.8. I did
try applying the patch to r1.7 then updating, but cvs failed to merge it also.
Comment 10•24 years ago
|
||
This is the patch against rev. 1.8 of template/default/attachment/edit.atml .
I have recreated it manually, without using the old patch. (The patch just
swaps the order of occurrence of the main <form> and <script> elements.)
I have tried to test the patch in Netscape4 and Mozilla, and I could not find
any oddities. Seems to work fine.
Attachment #67406 -
Attachment is obsolete: true
Comment 11•24 years ago
|
||
Comment on attachment 69083 [details] [diff] [review]
Updated patch to rev. 1.8
Re-marking r=afranke.
Attachment #69083 -
Flags: review+
| Assignee | ||
Comment 12•24 years ago
|
||
Checked in.
Gerv
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Updated•13 years ago
|
QA Contact: matty_is_a_geek → default-qa
You need to log in
before you can comment on or make changes to this bug.
Description
•