Read-only Git mirror of the Mercurial gecko repositories at https://hg.mozilla.org. How to contribute: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
Перейти к файлу
brendan%mozilla.org e81a02eeb2 Reduce seeks outside the FastLoad file's underlying stream buffer (195010,
r=ben, sr=bryner).

- Pass null scope objects into nsIScriptContext::Compile{EventHandler,Script}
when precompiling for brutal sharing.  The JS engine does not need a non-null
object parameter for static scope.  That parameter can be non-null only if it
helps the compiler "pre-bind" functions to the same scope object that they'll
be parented by when executing, but with brutal sharing, functions are
precompiled once and executed against many different scope objects.

- A problem in XUL FastLoad was that it would serialize master .xul document
out-of-line scripts (those included via script src= from non-overlay, "master"
.xul docs) far from the place in the FastLoad file where XUL prototype script
info was serialized for the <script src=> tag itself.  I fixed that so that,
unless the out-of-line script was previously serialized (by a different src=
reference from another .xul file), the OOL script data immediately follows the
proto-script info in the FastLoad file.

This required adding a SerializeOutOfLine method to nsXULPrototypeScript, which
restores symmetry by matching the existing DeserializeOutOfLine(Script) (note:
I dropped the redundant "Script" from the end of the latter method's name.  We
need SerializeOutOfLine to handle overlay OOL scripts.	They are serialized by
nsXULDocument::OnStreamComplete, because that code knows the difference between
an overlay and a master doc.  This removes all trace of FastLoad writing from
nsXULPrototypeScript::Compile -- FastLoad stuff didn't belong there, not only
because we now want to write master OOL scripts later, when walking the master
XUL prototype doc's element tree, but also for modularity reasons.  The caller
knows about FastLoad, nsXULPrototypeScript::Compile does just what its name
implies.

There are 132 seeks with the patch, only 49 of which dump the underlying file
stream's buffer, vs. 133 seeks without the patch, 87 of which dump the buffer.

- Nit-picked some comments to fit in 80 columns, and made other cosmetic fixes.

- Implicated the nsXULDocument::mIsWritingFastLoad flag from the useXULCache
"is the XUL cache enabled?" flag, so other places that test mIsWritingFastLoad
don't have to query whether the cache is enabled.

- Added METERING synchronous meter-dumping to /tmp/bufstats, only ifdef
DEBUG_brendan, in netwerk/base/src/nsBufferedStreams.cpp.

- Added the deferred seek optimization from the first patch in bug 195010 to
nsFastLoadFile.cpp.

- Fixed nsFastLoadFileReader so it overrides readSegments as well as read.
This catches up with the interface extension made to nsIInputStream to add
readSegments.  The nsFastLoadFileReader extends nsBinaryInputStream, which is
a concrete class, and overrides Read in order to snoop on *all* bytes read.
It does this in order to demultiplex documents interleaved when the FastLoad
file was written.

But since the readSegments move into nsIInputStream.idl, certain primitives
in nsBinaryStream.cpp, e.g., nsBinaryInputStream::ReadCString, have used
ReadSegments, not Read, to consume parts of the underlying stream (to read
the C string's chars, in that example), and the FastLoad file implementation
has not accounted for those bytes.

- Added a new method to nsIFastLoadFileControl and its impls: hasMuxedDocument.
 This is needed when serializing master XUL doc OOL scripts, because we must
not serialize twice, and any OOL script that other XUL docs can include via
script src= could already be in the FastLoad mux.

/be
2003-04-12 01:34:11 +00:00
README Testing cvs upgrade 2001-12-01 04:34:21 +00:00
accessible Make --disable-xul work (bug 69995). We build enough XUL to support 2003-04-11 00:56:27 +00:00
apache/gzip/src
browser bump vendorSub to 0.5+ 2003-04-05 21:00:17 +00:00
build Removing obsolete include/ from build. 2003-04-04 07:47:31 +00:00
calendar Fixed bug 198859: times of events are displayed 1 hour later than they should be 2003-04-02 19:34:47 +00:00
camino Bug 201508 - Add Print Dialog PDE to Camino. r=pink/sr=sfraser 2003-04-11 20:27:56 +00:00
caps Removing stray windows newline that causes build warning... No reviews, sorry. 2003-04-08 20:26:41 +00:00
cck Fix for bugscape bug 13929: Show Config Info button labels should be consistent 2002-08-27 22:13:03 +00:00
chimera Try to fix trunk bustage, sync with RDF API changes. 2003-03-01 01:22:42 +00:00
chrome Make --disable-xul work (bug 69995). We build enough XUL to support 2003-04-11 00:56:27 +00:00
cmd/xfe/src
config Make --disable-xul work (bug 69995). We build enough XUL to support 2003-04-11 00:56:27 +00:00
content Reduce seeks outside the FastLoad file's underlying stream buffer (195010, 2003-04-12 01:34:11 +00:00
db XP code changes required for mingw landing. 2003-03-07 06:07:56 +00:00
dbm #95128 2003-01-20 23:13:38 +00:00
directory Partial fix for 148272 - flawfinder warnings in directory. 2003-04-01 21:04:23 +00:00
docshell Bug 201423 Crash [@ nsWebShell::Create] if urildr.dll is missing 2003-04-10 18:17:57 +00:00
dom Make --disable-xul work (bug 69995). We build enough XUL to support 2003-04-11 00:56:27 +00:00
editor Bug 201609: Cancelling publish doesn't really cancel currently executing uploads 2003-04-11 13:20:20 +00:00
ef Bug 106386 rid source of misspellings 2002-03-19 04:30:17 +00:00
embedding Implement IBindHost::CreateMoniker including base url support, initialise _Module global properly and comment out IOleInPlaceSiteWindowless b=200680 r=dbradley@netscape.com sr=alecf@netscape.com 2003-04-11 13:51:34 +00:00
expat Bug 191327, make internalSubset not include delimiting brackets (was not defined in DOM 2 but is now defined in DOM 3 drafts). Also fix bug 191482, external entity definitions should be included in internal subset. r=harishd, jst, sr=peterv. 2003-03-07 23:40:51 +00:00
extensions Bug 197141, XMLHttpRequest behavior did not match IE when host was not found, r=harishd, sr=darin. 2003-04-11 17:06:29 +00:00
gc/boehm Change my email address from dbaron@fas.harvard.edu to dbaron@dbaron.org. Comment changes only. 2003-01-01 23:53:20 +00:00
gconfig Bugzilla Bug 106386 rid source of these misspellings: persistant persistance priviledge protocal editting editted targetted targetting 2001-12-23 23:23:41 +00:00
gfx Gfx portion of fix for bug 193053. Fix nsImageMac::ConvertToPICT so that we can safely call it from code that gets the image for the clipboard, and for dragging. r=pinkerton, sr=bryner. 2003-04-10 17:23:32 +00:00
gfx2 removing gfx2. r=kmcclusk sr/a=roc+moz 2003-01-27 15:16:13 +00:00
grendel Checkin of changes from Brandon Wiley related to mbox storage and how Grendel was numbering messages. Changes tested and good. jrg 2002-02-12 06:22:41 +00:00
htmlparser bug 68738 : UTF-16/32LE with BOM is always detected as UTF-16BE/32BE. 2003-04-10 07:10:48 +00:00
intl Remove ctl add-on modules from link list in static builds. 2003-04-11 20:39:09 +00:00
java Author= Daniel Park 2003-04-09 17:42:41 +00:00
jpeg mingw/w32api uses a different header guard than MSVC for <basestd.h> 2003-03-14 20:41:43 +00:00
js Fix set-property on sealed object to throw error (94693, r=rogerl). 2003-04-11 21:02:29 +00:00
js2 Fixed nullClass accessors. 2003-04-11 22:57:00 +00:00
l10n Landing bookmarks branch. Everything except mozilla/xpfe 2003-03-25 04:44:31 +00:00
layout taking a stab at luna orange... removing bogus forward declaration 2003-04-11 11:29:32 +00:00
lib Bug 186036 - Allow PPEmbed to build under Mach-O. NOT YET PART OF BUILD. r=pinkerton/sr=bryner/a=asa 2003-02-12 15:35:40 +00:00
mail land some trunk bug fixes 2003-04-10 18:35:08 +00:00
mailnews Fix for 201588. Set dirType in CreateDirectoryByURI() and prefName in DIR_AddNewAddressBook(). r=shliang, sr=sspitzer. 2003-04-12 01:26:36 +00:00
modules bugid=186056 browser crashed on second call to applet using javascript 2003-04-11 05:47:21 +00:00
mozilla
msgsdk Bugzilla Bug 106386 rid source of these misspellings: persistant persistance priviledge protocal editting editted targetted targetting 2001-12-23 23:23:41 +00:00
mstone
netwerk Reduce seeks outside the FastLoad file's underlying stream buffer (195010, 2003-04-12 01:34:11 +00:00
nsprpub Bug 200335: need to cast pthread_t (which could be a pointer) to an 2003-04-11 03:38:24 +00:00
nunet
other-licenses First shot at implementing timezone support, bug 165963: [RFE] Specify timezone for start and end dates 2003-03-04 20:47:57 +00:00
parser bug 68738 : UTF-16/32LE with BOM is always detected as UTF-16BE/32BE. 2003-04-10 07:10:48 +00:00
plugin/oji Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it is no longer needed. r=timeless sr=jag 2003-01-08 22:45:23 +00:00
privacy
profile fixing bug 195148 - XPInstall API's getFolder should support Classic and OSX folders under OSX. r=ccarlen,dougt sr=sspitzer 2003-04-07 07:02:32 +00:00
rdf Make --disable-xul work (bug 69995). We build enough XUL to support 2003-04-11 00:56:27 +00:00
security Make --disable-xul work (bug 69995). We build enough XUL to support 2003-04-11 00:56:27 +00:00
silentdl
string fixes bug 199221 "provide inline implementations of common string methods" r=dbaron sr=jag 2003-04-02 06:24:47 +00:00
suite
sun-java Purge XP_PC. 2003-04-02 22:45:08 +00:00
themes Bug 160100 Mac Classic theme claims to simulate Windows 2003-04-10 20:25:25 +00:00
timer
toolkit change MOZ_PHOENIX #ifdefs to MOZ_XUL_APP. Patch by mscott. 2003-04-08 02:46:57 +00:00
tools testy - first cut 2003-04-10 19:51:25 +00:00
uriloader Removing unused openURIVia function. Bug 200223, r+sr=sspitzer. 2003-04-06 20:33:38 +00:00
view nsViewFactory.cpp is dead now that view is in gklayout. Not part of the build. 2003-04-11 08:30:00 +00:00
webshell Purge XP_PC. 2003-04-02 22:45:08 +00:00
webtools rest of bug 201520, r=cyeh. using $regexp exposed an unterminated regexp match 2003-04-11 00:16:05 +00:00
widget s/INCLUDE_XUL/MOZ_XUL/ 2003-04-11 02:06:32 +00:00
xpcom Reduce seeks outside the FastLoad file's underlying stream buffer (195010, 2003-04-12 01:34:11 +00:00
xpcom_obsolete Force xpcom_compat to be shared again duue to win32 static build bustage. 2003-03-16 06:49:44 +00:00
xpfe Make --disable-xul work (bug 69995). We build enough XUL to support 2003-04-11 00:56:27 +00:00
xpinstall fixing bug 197847 - Too many network errors should pause install, not automatically cancel it. r=dveditz, rs=sspitzer 2003-04-11 07:32:00 +00:00
.cvsignore Add mozilla-config.h to .cvsignore 2002-08-22 01:14:34 +00:00
LEGAL
LICENSE
Makefile.in Make --disable-xul work (bug 69995). We build enough XUL to support 2003-04-11 00:56:27 +00:00
README.txt 193777 r=timeless sr=dbaron a=asa Update Readme file to remove references to Mac OS 8.6 2003-02-24 21:15:26 +00:00
aclocal.m4 bug 156593, Remove the dependence to gtk1 when the default toolkit is gtk2. 2002-08-29 10:30:58 +00:00
allmakefiles.sh Bug 199518. Merge MSAA marshalling dlls into one dll. r=cls, sr=alecf 2003-04-08 05:12:01 +00:00
camino.mk add .PHONY so that build target always builds. not part of the default build. 2003-04-10 20:47:12 +00:00
client.mak Adding pull targets. 2002-09-20 09:15:50 +00:00
client.mk When pulling standalone modules, pull the individual toplevel files first to avoid having the files disappear with cvs giving the ' warning: new-born <file> has disappeared' message. 2002-12-11 07:06:43 +00:00
configure Automated update 2003-04-11 01:00:41 +00:00
configure.in Make --disable-xul work (bug 69995). We build enough XUL to support 2003-04-11 00:56:27 +00:00
embed.mak removing widget/timer from embed makefiles 2001-12-16 09:27:41 +00:00
embed.mk removing widget/timer from embed makefiles 2001-12-16 09:27:41 +00:00
makefile.win Re-adding files to avoid checkout warnings. The warnings are because the files are individually listed in the cvs module definition. Replaced standard targets with reference to win32 build page. 2002-08-10 02:45:57 +00:00
minimo.mk Pull in more of the tree to build the minimo config 2003-04-09 05:29:04 +00:00
mozilla.kdevprj
mozilla.lsm
nglayout.mac
nglayout.mk 187017 r=cls state that nglayout.mk is no longer used 2002-12-29 00:13:37 +00:00
trex.mak
trex.mk

README.txt

==============================================================

= = = = = = = = = =   Mozilla Read Me    = = = = = = = = = = =

==============================================================

Mozilla is subject to the terms detailed in the license
agreement accompanying it.

This Read Me file contains information about system
requirements and installation instructions for the Windows,
Mac OS, and Linux builds of Mozilla. 

For more info on Mozilla, see www.mozilla.org. To submit bugs
or other feedback, see the Navigator QA menu and check out
Bugzilla at http://bugzilla.mozilla.org for links to known
bugs, bug-writing guidelines, and more. You can also get help
with Bugzilla by pointing your IRC client to #mozillazine
at irc.mozilla.org.


==============================================================

                      Getting Mozilla

==============================================================

You can download nightly builds of Mozilla from the
Mozilla.org FTP site at

  ftp://ftp.mozilla.org/pub/mozilla/nightly/

For the very latest builds, see

  ftp://ftp.mozilla.org/pub/mozilla/nightly/latest

Keep in mind that nightly builds, which are used by
Mozilla.org developers for testing, may be buggy. If you are
looking for a more polished version of Mozilla, Mozilla.org
releases Milestone builds of Mozilla every six weeks or so
that you can download from

  http://www.mozilla.org/releases
 
Be sure to read the Mozilla release notes for information
on known problems and installation issues with Mozilla.
The release notes can be found at the preceding URL along
with the milestone releases themselves.

Note: Please use Talkback builds whenever possible. These
builds allow transmission of crash data back to Mozilla
developers, improved crash analysis, and posting of crash
information to our crash-data newsgroup.


==============================================================

                    System Requirements

==============================================================

*All Platforms

	To view and use the new streamlined "Modern" theme,
	your display monitor should be set to display
	thousands of colors. For users who cannot set their
	displays to use	more than 256 colors, Mozilla.org
	recommends using the "Classic" theme for Mozilla.

	To select the Modern theme after you have installed 
	Mozilla, from the Navigator browser, open the View
	menu, and then open then open the Apply Theme submenu
	and choose Modern.

*Mac OS

	-Mac OS X or later
	-PowerPC processor (266 MHz or faster recommended)
	-64 MB RAM
	-36 MB of free hard disk space

*Windows

	-Windows 95, 98, Me, NT4, 2000 or XP
	-Intel Pentium class processor (233 MHz or faster 
	 recommended)
	-64 MB RAM
	-26 MB free hard disk space

*Linux

	-The following library versions (or compatible) are 
	 required: glibc 2.1, XFree86 3.3.x, GTK 1.2.x, Glib
	 1.2.x, Libstdc++ 2.9.0. Red Hat Linux 6.0, 
	 Debian 2.1, and SuSE 6.2 (or later) installations 
	 should work.
	-Red Hat 6.x users who want to install the Mozilla 
	 RPM must have at least version 4.0.2 of rpm
	 installed.
	-Intel Pentium class processor (233 MHz or faster 
	 recommended)
	-64MB RAM
	-26MB free hard disk space


==============================================================

                 Installation Instructions

==============================================================

For Mac OS and Windows users, it is strongly recommended that
you exit all programs before running the setup program. Also,
you should temporarily disable virus-detection software.

For Linux users, note that the installation instructions use
the bash shell. If you're not using bash, adjust the commands
accordingly.

For all platforms, install into a clean (new) directory.
Installing on top of previously released builds may cause
problems.

Note: These instructions do not tell you how to build Mozilla.
For info on building the Mozilla source, see

  http://www.mozilla.org/source.html


Windows Installation Instructions
---------------------------------

Note: For Windows NT/2000/XP systems, you need Administrator
privileges to install Mozilla. If you see an "Error 5" message
during installation, make sure you're running the installation
with Administrator privileges.


    To install Mozilla by downloading the Mozilla installer,
    follow these steps:
	
	1. Click the the mozilla-win32-installer.exe link on
	the site you're downloading Mozilla from to download
	the installer file to your machine.
	
	2. Navigate to where you downloaded the file and
	double-click the Mozilla program icon on your machine
	to begin the Setup program.
	
	3. Follow the on-screen instructions in the setup
	program. The program starts automatically the first
	time.


    To install Mozilla by downloading the .zip file and
    installing manually, follow these steps:

	1. Click the mozilla-win32-talkback.zip link or the
	mozilla-win32.zip link on the site you're down-
	loading Mozilla from to download the .zip file to
	your machine.

	2. Navigate to where you downloaded the file and
	double-click the compressed file.

	Note: This step assumes you already have a recent
	version of WinZip installed, and that you know how to
	use it. If not,	you can get WinZip and information
	about the program at www.winzip.com.

	3. Extract the .zip file to a directory such as
	C:\Program Files\mozilla.org\Mozilla.

	4. To start Mozilla, navigate to the directory you
	extracted Mozilla to and double-click the Mozilla.exe
	icon.


Mac OS X Installation Instructions
----------------------------------

    To install Mozilla by downloading the Mozilla disk image, 
    follow these steps:

	1. Click the mozilla-mac-MachO.dmg.gz link to download 
	it to your machine. By default, the download file is 
	downloaded to your desktop.

	2. Once you have downloaded the .dmg.gz file, drag it 
	onto Stuffit Expander to decompress it. If the disk 
	image doesn't mount automatically, double-click on the 
	.dmg file to mount it. If that fails, and the file 
	does not look like a disk image file, do a "Show Info" 
	on the file, and, in the "Open with application" 
	category, choose Disk Copy. In Mac OS 10.2, you can 
	use "Open with" from the context menu.

	3. Once the disk image mounts, open it, and drag the 
	Mozilla icon onto your hard disk.

	4. We recommend that you copy it to the Applications 
	folder.

	5. Now Eject the disk image.

	6. If you like, you can drag Mozilla to your dock to 
	have it easily accessible at all times. You might also 
	wish to select Mozilla as your default browser in the 
	Internet system preferences pane (under the Web tab).


Linux Installation Instructions
-------------------------------

Note: If you install in the default directory (which is
usually /usr/local/mozilla), or any other directory where
only the root user normally has write-access, you must
start Mozilla first as root before other users can start
the program. Doing so generates a set of files required
for later use by other users.


    To install Mozilla by downloading the Mozilla installer,
    follow these steps:

	1. Create a directory named mozilla (mkdir mozilla)
	and change to that directory (cd mozilla).
	
	2. Click the link on the site you're downloading
	Mozilla from to download the installer file
	(called mozilla-1686-pc-linux-gnu-installer.tar.gz)
	to your machine.

	3. Change to the mozilla directory (cd mozilla) and
	decompress the archive with the following command:

	  tar zxvf moz*.tar.gz

	The installer is now located in a subdirectory of
	Mozilla	named mozilla-installer.

	4. Change to the mozilla-installer directory
	(cd mozilla-installer) and run the installer with the
	./mozilla-installer command.

 	5. Follow the instructions in the install wizard for
	installing Mozilla.

	Note: If you have a slower machine, be aware that the
	installation may take some time. In this case, the
	installation progress may appear to hang indefinitely,
	even though the installation is still in process.

	6. To start Mozilla, change to the directory where you
	installed it and run the ./mozilla command.


    To install Mozilla by downloading the tar.gz file:

	1. Create a directory named "mozilla" (mkdir mozilla)
	and change to that directory (cd mozilla).

	2. Click the link on the site you're downloading
	Mozilla from to download the non-installer
	(mozilla*.tar.gz) file into the mozilla directory.

	3. Change to the mozilla directory (cd mozilla) and
	decompress the file with the following command:

	  tar zxvf moz*.tar.gz
 	
	This creates a "mozilla" directory under your mozilla
	directory. 

	4. Change to the mozilla directory (cd mozilla). 

	5. Run Mozilla with the following run script: 

	  ./mozilla


    To hook up Mozilla complete with icon to the GNOME Panel,
    follow these steps:

	1. Click the GNOME Main Menu button, open the Panel menu,
	and then open the Add to Panel submenu and choose Launcher.

	2. Right-click the icon for Mozilla on the Panel and
	enter the following command:
	  directory_name./mozilla

	where directory_name is the name of the directory
	you downloaded mozilla to. For example, the default
	directory that Mozilla suggests is /usr/local/mozilla.

	3. Type in a name for the icon, and type in a comment
	if you wish.

	4. Click the icon button and type in the following as
	the icon's location:

	  directory_name/icons/mozicon50.xpm

	where directory name is the directory where you
	installed Mozilla. For example, the default directory
	is /usr/local/mozilla/icons/mozicon50.xpm.