Corrections
This page contains a list of corrections to be made in the next printing of
the book. If you have suggestions for changes or find errors in the text,
feel free open a bug with a report of the problem, post a message in the User Notes
section on the chapter pages, or send a message to the reviewers@mozdev.org mailing list.
Note: All errors in the text and examples are shown in red and all corrections are shown in green .
Preface
On page xiv: 'http://www.oreilly.com/mozilla/ ' has been changed
to 'http://www.oreilly.com/catalog/mozilla/ '
Chapter 1
On page 7: In sidebar 'Another project, call m/b (short for mozilla/browser), addresses shortcomings ' has
been changed to 'The Phoenix project (http://www.mozilla.org/projects/phoenix/) also addresses
shortcomings '
On page 7: In sidebar the Chimera URL 'http://chimera.mozdev.org ' has been changed to 'http://www.mozilla.org/projects/chimera/ '
On page 7: 'applications web built using XPFE ' has been
changed to 'applications built using XPFE '
Chapter 2
On page 10: Added a new sentence to the end of the 2nd paragraph of the xFly examples sidebar: 'An installable version
of the complete xFly application can be found at http://xfly.mozdev.org. '
On page 12: '<window
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
/> ' has been changed to '<window
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> '
On page 14: In first code sample from Windows features section, 'xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> ' has been changed to 'xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" '
On page 17: 'selecting File > Open File > from ' has been
changed to 'selecting File > Open File from '
On page 20: 'CenterWindoOnScreen( ) function ' has been changed
to 'CenterWindowOnScreen( ) function '
Chapter 3
On page 34: 'We've packed a lot information in this chapter and it be a useful reference ' has been changed
to 'We've packed a lot of information in this chapter and it will be a useful reference '
On page 35: 'secondLevelNodes[I] = docEl.childNodes[i]; ' has been changed to 'secondLevelNodes[I] = docEl.childNodes[I]; '
On page 40: '<toolbarbutton id="printBtn" label="Open"
oncommand="doPrint( );" /> ' has been changed to '<toolbarbutton
id="printBtn" label="Print" oncommand="doPrint( );" > '
On page 51: '<decription>The mozdev.org site [...] your own development project</decription> ' has been
changed to '<description>The mozdev.org site [...] your own development project</description> '
On pages 58 and 59: Example 3-15 has been changed to (note the addition of spaces to seperate values)
Chapter 4
On page 88: 'these are selectors are identical ' has been changed to 'these selectors are
identical '
On page 109: 'The chome URL that the -moz-binding property points to ' has been changed to 'The chrome URL that the -moz-binding property points to '
Chapter 5
On page 113: Javascript 1.5 reference link in footnote has been changed from
'http://developer.netscape.com/docs/manuals/js/core/jsref15/contents.html ' to
'http://developer.netscape.com/docs/manuals/index.html?content=javascript.html '
On page 120: '</script. ' has been changed to '</script> '
On page 120: 'dump(l+'\n'); ' has been changed to 'dump(len+'\n'); '
On page 135: Example 5-11 has been changed to
Sound Service Play Example
On page 137: 'var connection = Components.classes ["@mozilla.org/network/ldap-connection;1"; ' has been changed to
'var connection = Components.classes ["@mozilla.org/network/ldap-connection;1"]; '
On page 140: 'js> load(`chrome/jslib/jslib.js'); ' has been changed to 'js>
load('chrome/jslib/jslib.js'); '
Chapter 8
On page 211: In 2nd sentence of paragraph 'QueryInterace ' has been changed to 'QueryInterface '
On page 222: In Example 8-4 'mName: "a default value" ' has been changed to 'mName: "a default
value", '
On page 222: In Example 8-4
this.myCID,
"My JS Component",
this.myProgID, fileSpec,
location, true, true,
type);
has been changed to
compMgr.registerComponentWithType(
this.myCID,
"My JS Component",
this.myProgID, fileSpec,
location, true, true,
type);
On page 222: In Example 8-4 one of the duplicate 'dump(" ***** Registering: Simple JS component!
****\n"); ' lines has been removed
On page 223: In Example 8-4 one of the duplicate 'if (outer != null) ' lines has been removed
On page 239: Example 8-15 has been changed to
DEPTH = ../../..
topsrcdir = ../../..
srcdir = .
VPATH = .
include $(DEPTH)/config/autoconf.mk
MODULE = xpcom
XPIDL_MODULE = simple
LIBRARY_NAME = simple
IS_COMPONENT = 1
MODULE_NAME = nsSimpleModule
REQUIRES = string \
xpcom \
$(NULL)
CPPSRCS = \
nsSimple.cpp \
nsSimpleModule.cpp \
$(NULL)
XPIDLSRCS = nsISimple.idl
include $(topsrcdir)/config/config.mk
LIBS += \
$(XPCOM_LIBS) \
$(NSPR_LIBS) \
$(NULL)
include $(topsrcdir)/config/rules.mk
EXTRA_DSO_LDOPTS += $(MOZ_COMPONENT_LIBS)
install:: $(TARGETS)
Chapter 10
On page 297: 'http://www.jslib.mozdev.org ' has been changed
to 'http://jslib.mozdev.org '
Chapter 11
On page 314: In Example 11-5 and Example 11-6 'var linetext =
document.createTextNode(messageParagraphs[i]); ' has been changed to 'var linetext =
document.createTextNode(lines[i]); '
Chapter 12
On page 336: In Example 12-6
print ` ' % form['op1'].value
print ` ' % form['op2'].value
print ` ' % form['op3'].value
has been changed to (note the difference in indentation and in using a single quote versus a backtick)
print ' ' % form['op1'].value
print ' ' % form['op2'].value
print ' ' % form['op3'].value
On page 339: A new 'Certificate Authorities and Digital
Signatures' section is being written with drafts available on http://certs.mozdev.org
Appendix A
On page 365: 'http://www.mozilla.org/source.tml ' has been changed to 'http://www.mozilla.org/source.html '