Security

(public)

User Story

Yesterday I took a few minutes to add the mozilla license to all of the xul, css,
js, and dtd files in the editor ui. To my dismay I completely broke the editor
and all of its dialogs (none of them would load--I just get tiny windows).
Apparently adding the license (found at http://www.mozilla.org/NPL/boilerplate-
1.1/npl.html) to the beginning of each file doesn't work. For now, I have backed
out the license in all of the *.xul, and *.dtd files.
I'm not sure who this bug should go to (parser or xul problem). Please reassign
if appropriate.

One interesting thing about XML (and thus xul and presumably dtd) is that the
first line in an XML file must be the <?xml version="1.0"?> or similar tag. So
the license text would have to start at least on the second line. It may in
fact be that the license boilerplat has to follow all the <? tags; I don't
know. Perhaps someone who knows XML better can fill me in.
Could this have been the problem you were seeing, Kathy?
Dan

There shouldn't be any reason why you can't verify this (it's not in the code).
Just create a xul file and add the license to it. The new license will work.
The old license had " --" at the beginning of most of its lines (you could test)
which wouldn't work.
The url for the license is listed in the comments above.