--- books/www/corrections.html 2003/03/13 17:18:38 1.88 +++ books/www/corrections.html 2003/04/25 15:42:55 1.123 @@ -1,18 +1,18 @@ -

Corrections +

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. +href="mailto:reviewers@mozdev.org">reviewers@mozdev.org mailing list.

Note: All errors in the text and examples are shown in red and all corrections are shown in green. +class="fixed">blue.

Preface @@ -25,15 +25,15 @@ such as Galeon and Camino'

  • On page xiv: 'http://www.oreilly.com/mozilla/' has been changed to 'http://www.oreilly.com/catalog/mozilla/'

    -
  • On page xvii: 'David McNamara, and Mark Hammond' has been changed to 'David -McNamara, Mark Hammond, Gary Frederick, and Andreas Halter'

    +
  • On page xvii: 'David McNamara, and Mark Hammond.' has been changed to 'David +McNamara, Mark Hammond, Gary Frederick, and Andreas Halter.'

  • On page xvii: 'David Hyatt and Mike Pinkerton for the Chimera browser' has been changed to 'David Hyatt and Mike Pinkerton for the Camino browser'

    -
  • On page xvii: 'including Kim Steckler, Rachel Oeschger, and Priscilla, Dylan, and Devon Collins' has been +
  • On page xvii: 'including Kim Steckler, Rachel Oeschger, and Priscilla, Dylan, and Devon Collins.' has been changed to 'including Kim Steckler, Rachel Oeschger, Marjana Molan, Lia Molan King, and Priscilla, Dylan, and Devon -Collins'

    +Collins.'

    @@ -47,7 +47,7 @@ Collins'

    'like Camino (an ultra-fast browser that works only on Mac OS X)'

  • 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 +been changed to 'The Firebird project (http://www.mozilla.org/projects/firebird/) also addresses shortcomings'

  • On page 7: In sidebar 'Some examples include Chimera (http://chimera.mozdev.org)' has been changed to '' has been chang locale, and skin, as shown in Figure 2-5. The locale directory will have the default 'en-US' language pack structure.'

    +
  • On page 25: In Figure 2-5 there should be an en-US subfolder under the locale folder. Here is a correct image (Click for bigger +version):

    + +New
+Figure 2-5

    +
  • On page 31: In Example 2-14 'locale/' has been changed to 'locale/en-US/'

  • On page 32: In Example 2-15 'locale,install,url,resource:/chrome/xfly/locale/' has been changed to 'locale,install,url,resource:/chrome/xfly/locale/en-US/'

    +
  • On page 33: A warning note has been added before the last paragraph of the chapter + + +If you have trouble editing and relaunching the xFly application, +there are a couple of platform specific culprits to look into. On +Windows, the Quick Launch feature may prevent you from seeing changes +to your files. On Unix, file permission conflicts can also cause +problems viewing your files. Making sure that Quick Launch is disabled +and double checking file permissions may help get xFly working +on your system. + + @@ -106,6 +124,16 @@ to 'We've packed a lot
  • On page 35: 'secondLevelNodes[I] = docEl.childNodes[i];' has been changed to 'secondLevelNodes[I] = docEl.childNodes[I];'

    +
  • On page 38: In Example 3-3 the namespace declarations have been changed to (note the addition of quotes and the removal of italics) + + + xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:nc="http://home.netscape.com/NC-rdf#"> + + +
  • On page 38: In Example 3-3 '<image src="page1.png">' has been changed to '<image +src="page1.png"/>'

    +
  • On page 40: '<toolbarbutton id="printBtn" label="Open" oncommand="doPrint( );" />' has been changed to '<toolbarbutton id="printBtn" label="Print" oncommand="doPrint( );" >'

    @@ -113,7 +141,10 @@ id="printBtn" label="Print" oncommand="d
  • 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) +
  • On page 54: 'Clicking on the box sets the clicked attribute' has been +changed to 'Clicking on the box sets the checked attribute'

    + +
  • On pages 58 and 59: Example 3-15 has been changed to (note the addition of spaces to separate values) <?xml version="1.0"?> @@ -140,6 +171,11 @@ changed to '<b class="fixed">&lt;descrip </window> +
  • On page 63: 'But there are also CSS versions of these properties that +use the prefix box-pack becomes box-pack when it's defined in CSS, for example.' has been +changed to 'But there are also CSS versions of these properties that +use the prefix box-. pack becomes box-pack when it's defined in CSS, for example.'

    + @@ -151,8 +187,8 @@ changed to '<descrip
  • 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'

    +
  • 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'

    @@ -173,9 +209,25 @@ class="fixed">The chrome URL that the -m
  • On page 120: 'dump(l+'\n');' has been changed to 'dump(len+'\n');'

  • -
  • On page 135: Example 5-11 has been changed to +
  • On page 123: Example 5-3 + +for (var i=0; i<chex.length; i++) + chex[i].setAttributte("checked", "false"); +for (var i=0; i<unchex.length; i++) + unchex[i].setAttributte("checked", "true"); + +has been changed to +for (var i=0; i<chex.length; i++) + chex[i].setAttribute("disabled", "false"); +for (var i=0; i<unchex.length; i++) + unchex[i].setAttribute("disabled", "true"); + +
    +
  • +
  • On page 135: Example 5-11 has been changed to + <head> <title>Sound Service Play Example</title> <script> @@ -184,10 +236,10 @@ class="fixed">The chrome URL that the -m var sample = Components.classes["@mozilla.org/sound;1"].createInstance(); sample = sample.QueryInterface(Components.interfaces.nsISound); const SND_NETWORK_STD_CID = "@mozilla.org/network/standard-url;1"; - const SND_I_URL = "nsIURL"; - const SND_URL = new C.Constructor(SND_NETWORK_STD_CID, SND_I_URL); - var url = new SND_URL(); - url.spec = 'http://jslib.mozdev.org/test.wav'; + const SND_I_URL = "nsIURL"; + const SND_URL = new C.Constructor(SND_NETWORK_STD_CID, SND_I_URL); + var url = new SND_URL(); + url.spec = 'http://jslib.mozdev.org/test.wav'; sample.play(url); } </script> @@ -196,7 +248,6 @@ class="fixed">The chrome URL that the -m <form name="form"> <input type="button" value="Play Sound" onclick="play();"> </form> -
  • On page 137: 'var connection = Components.classes ["@mozilla.org/network/ldap-connection;1";' @@ -215,7 +266,7 @@ load('chrome/jslib/jslib.js');'
    < + +

    Chapter 7 + +

    + +

    Chapter 8

    @@ -349,12 +568,36 @@ has been changed to @@ -389,16 +632,22 @@ has been changed to (note the difference print ' ' % form['op3'].value - +
  • On page 341: The following sentence has been deleted 'You can delete the key3.db and secmod.db files +because they do not pertain to certificate creation or modification.'

    + +
    +NOTE: This last fix in chapter 12 is a short/quick fix +for some major flaws in the security section of this chapter. +There is a more desirable fix, outlined in the bug monitoring it, +but it would require a substantial rewrite to the section. +Please consider both of these options for a second printing. +
    +

    +

    Appendix A @@ -406,21 +655,58 @@ href="http://certs.mozdev.org">http://ce

  • On page 365: 'http://www.mozilla.org/source.tml' has been changed to 'http://www.mozilla.org/source.html'

    +
  • - +
  • On page 367: In the Linux CVS instructions + + +1. Set the CVSROOT variable: + $ setenv CVSROOT :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot +2. Log in as anonymous@cvs-mirror.mozilla.org using the password "anonymous": + + +has been changed to (note the addition of '=' after CVSROOT, +the changing of 'setenv' to 'export' and the simplification of instruction 2) + + +1. Set the CVSROOT variable: + $ export CVSROOT=:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot +2. Log in using the password "anonymous": + +
  • On page 368: In the Windows CVS instructions + + +1. Set the CVSROOT variable: + > set CVSROOT :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot +2. Log in as anonymous@cvs-mirror.mozilla.org using the password "anonymous": + + +has been changed to (note the addition of '=' after CVSROOT +and the simplification of instruction 2) + + +1. Set the CVSROOT variable: + > set CVSROOT=:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot +2. Log in using the password "anonymous": + + +
  • + +

    Index



    - - +