Closed Bug 861522 Opened 13 years ago Closed 13 years ago

"JavaScript Compile-Time Error" in XUL file validations - choking on CDATA closing brackets and failing to parse files

Categories

(addons.mozilla.org Graveyard :: Add-on Validation, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
2013-04-18

People

(Reporter: davemgarrett, Assigned: basta)

Details

Attachments

(1 file)

783 bytes, application/octet-stream
Details
I'm getting a "JavaScript Compile-Time Error" in the addon validator for each XUL file I have with a CDATA block in its script. <script type="application/javascript"> <![CDATA[ // something ]]> </script> Specifically, the error is reporting on the line with the closing brackets ("]]>"). Once upon a time in the distant past, people had to make them JS comments with an added "//" to not break old parsers, but that was a while ago and XUL never had a problem with this as far as I know. The addon validator used to handle this fine. The result of this is that most of my XUL files are not getting validated at all.
Can you please attach a sample that generates this error?
Flagfox 4.2.8: https://addons.mozilla.org/firefox/downloads/file/203346/flagfox-4.2.8-sm+fx.xpi Validator report for that file: https://addons.mozilla.org/en-US/developers/addon/flagfox/file/203346/validation This error applies to editaction.xul, options.xul, and preview.xul but not overlay.xul or about.xul as they do not have a CDATA block.
Attached file reduced testcase XPI —
Here's a reduced testcase XPI I just slapped together, and here's its validator report: https://addons.mozilla.org/en-US/developers/upload/2b3201bcf6c541669ecfc263165e4405
Attachment #737769 - Attachment mime type: application/x-xpinstall → application/octet-stream
Assignee: nobody → mattbasta
Severity: major → normal
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2013-04-18
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

Creator:
Created:
Updated:
Size: