119206 Commits

Author SHA1 Message Date
bzbarsky%mit.edu
8afd2397cf Change nsObjectFrame reflow when showing an image or iframe to just reflow the kid and
use its desired size.  Change reflow when doing a plugin to properly look at
the mComputedHeight/Width instead of trying to (incorrectly) walk up the reflow
state chain.  Plus some nsCOMPtr love.  Bug 191246 and bug 196280,
r=peterlubczynski, sr=roc+moz


git-svn-id: svn://10.0.0.236/trunk@141056 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-12 04:55:07 +00:00
sfraser%netscape.com
4ad2db3a68 Fix method types to keep Windows happy (__stdcall crap)
git-svn-id: svn://10.0.0.236/trunk@141055 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-12 04:22:16 +00:00
bzbarsky%mit.edu
b8e8019889 Clean up nsURILoader.cpp some. Better comments, more understandable code in
nsDocumentOpenInfo::DispatchContent, less confusing use of RetargetOutput
(which is now ConvertData).  Bug 201618, r=darin, sr=sspitzer.


git-svn-id: svn://10.0.0.236/trunk@141054 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-12 03:36:53 +00:00
bzbarsky%mit.edu
f8a4f4dd67 More const string love. Bug 200389, patch by ataylor@its.to (Andrew Taylor),
r=jst, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@141053 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-12 03:23:33 +00:00
bzbarsky%mit.edu
f037bb02c1 Make some strings in prompt service char arrays instead of pointers to move
them to readonly data.  Bug 201355, patch by ataylor@its.to (Andrew Taylor),
r=adamlock, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@141052 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-12 03:17:15 +00:00
bzbarsky%mit.edu
aad4e87eec Make frequence tables in universal charset decoder const to move them into the
readonly segment.  Bug 201361, patch by ataylor@its.to (Andrew Taylor),
r=smontagu, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@141051 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-12 03:14:30 +00:00
sfraser%netscape.com
a5673a050d Part of fix for bug 201400. r=aaronl, sr=me.
git-svn-id: svn://10.0.0.236/trunk@141050 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-12 03:12:59 +00:00
sfraser%netscape.com
6baf5a217e Fix bug 201560: reimplement the DOM window controller using shared controller code, and a singleton nsIControllerCommandTable. This reduces the number of string compares when updating commands, and is cleaner. Include some string cleanup in SetCursor() to reduce codesize. r=brade/jkeiser, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@141049 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-12 03:08:23 +00:00
sfraser%netscape.com
9851fa57a1 Fix for bug 201400: move the "accessibility.browsewithcaret" pref observer to the nsEventStateManager, to remove it from the DOMWindowController. Patch by brade/sfraser, r=aaronl, sr=sfraser.
git-svn-id: svn://10.0.0.236/trunk@141048 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-12 03:03:27 +00:00
brendan%mozilla.org
271e886eb3 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


git-svn-id: svn://10.0.0.236/trunk@141047 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-12 01:34:11 +00:00
cavin%netscape.com
1766c41b12 Fix for 201588. Set dirType in CreateDirectoryByURI() and prefName in DIR_AddNewAddressBook(). r=shliang, sr=sspitzer.
git-svn-id: svn://10.0.0.236/trunk@141046 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-12 01:26:36 +00:00
despotdaemon%netscape.com
da41848c0e Pseudo-automatic update of changes made by leon.zhang@sun.com.
git-svn-id: svn://10.0.0.236/trunk@141045 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-12 01:12:02 +00:00
despotdaemon%netscape.com
26ae0953ed Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@141044 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-12 01:00:07 +00:00
sspitzer%netscape.com
90c9eb605f backing out my fix for 200603, and neils supplimental fix for it.
git-svn-id: svn://10.0.0.236/trunk@141043 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-12 00:17:25 +00:00
rogerl%netscape.com
2c244d4d3f Fixed nullClass accessors.
git-svn-id: svn://10.0.0.236/trunk@141041 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-11 22:57:00 +00:00
rogerl%netscape.com
2f8cf38445 Leakage.
git-svn-id: svn://10.0.0.236/trunk@141039 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-11 22:20:10 +00:00
rogerl%netscape.com
03abda8fe8 Leakage fixes.
git-svn-id: svn://10.0.0.236/trunk@141038 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-11 21:54:58 +00:00
despotdaemon%netscape.com
5dbc31e1a1 Pseudo-automatic update of changes made by knous@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@141037 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-11 21:34:10 +00:00
rogerl%netscape.com
ae70a95927 Leakage fixes.
git-svn-id: svn://10.0.0.236/trunk@141036 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-11 21:29:50 +00:00
brendan%mozilla.org
1bf7edca81 Fix set-property on sealed object to throw error (94693, r=rogerl).
git-svn-id: svn://10.0.0.236/trunk@141035 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-11 21:02:29 +00:00
seawood%netscape.com
aeb0440e5d Remove ctl add-on modules from link list in static builds.
Thanks to Roland Mainz <Roland.Mainz@informatik.med.uni-giessen.de> for the patch.
Bug #201167 r=cls


git-svn-id: svn://10.0.0.236/trunk@141034 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-11 20:39:09 +00:00
ccarlen%netscape.com
b34d7da75f Bug 201508 - Add Print Dialog PDE to Camino. r=pink/sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@141033 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-11 20:27:56 +00:00
rogerl%netscape.com
c3cb831251 Leak plugging.
git-svn-id: svn://10.0.0.236/trunk@141032 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-11 18:53:59 +00:00
darin%netscape.com
fa1226134e fixes bug 80918 "Proxy: 'No Proxy for:' does not support ip address wildcards" r=bbaetz sr=alecf
git-svn-id: svn://10.0.0.236/trunk@141031 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-11 18:24:55 +00:00
heikki%netscape.com
bd8501f4bd Bug 197141, XMLHttpRequest behavior did not match IE when host was not found, r=harishd, sr=darin.
git-svn-id: svn://10.0.0.236/trunk@141030 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-11 17:06:29 +00:00
nhotta%netscape.com
2e3cf9e4c9 Initialize IDN service at nsStandardURL constructor,
added pref observers for IDN related prefs,
bug 188218, r=darin, sr=alecf.


git-svn-id: svn://10.0.0.236/trunk@141029 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-11 17:05:56 +00:00
nhotta%netscape.com
771b58c6ee Adding Ascii check for mailto url recognition,
bug 201369, r=ben.bucksch, sr=darin.


git-svn-id: svn://10.0.0.236/trunk@141028 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-11 16:56:01 +00:00
locka%iol.ie
b5ce46bac7 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
git-svn-id: svn://10.0.0.236/trunk@141027 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-11 13:51:34 +00:00
jaggernaut%netscape.com
528007a342 Bug 201609: Cancelling publish doesn't really cancel currently executing uploads
. r=ssu, sr=bryner, moa=brade. Note that this bug depends on bug 201610 being fi
xed.


git-svn-id: svn://10.0.0.236/trunk@141026 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-11 13:20:20 +00:00
bryner%netscape.com
3adf1814d6 taking a stab at luna orange... removing bogus forward declaration
git-svn-id: svn://10.0.0.236/trunk@141025 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-11 11:29:32 +00:00
bryner%netscape.com
7f6ea424ca nsViewFactory.cpp is dead now that view is in gklayout. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@141024 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-11 08:30:00 +00:00
bryner%netscape.com
2b86f1c62f Remove nsScrollFrame and frame constructor support for it. Remove dlldeps.cpp for layout, it's not necessary. Bug 201457, r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@141023 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-11 08:26:42 +00:00
ssu%netscape.com
a44a374678 fixing bug 197847 - Too many network errors should pause install, not automatically cancel it. r=dveditz, rs=sspitzer
git-svn-id: svn://10.0.0.236/trunk@141022 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-11 07:32:00 +00:00
joshua.xia%sun.com
3378bdd3c6 bugid=186056 browser crashed on second call to applet using javascript
r=brendan@mozilla.org sr=beard@netscape.com


git-svn-id: svn://10.0.0.236/trunk@141021 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-11 05:47:21 +00:00
wtc%netscape.com
84c76038a5 Bug 200335: need to cast pthread_t (which could be a pointer) to an
unsigned type (PRUptrdiff).  The patch is contributed by Nelson Bolyard.


git-svn-id: svn://10.0.0.236/trunk@141020 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-11 03:38:24 +00:00
bryner%netscape.com
4ac590137d s/INCLUDE_XUL/MOZ_XUL/
git-svn-id: svn://10.0.0.236/trunk@141019 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-11 02:06:32 +00:00
darin%netscape.com
6d3b44ee11 fixes bug 201570 "enable socket transport logging in nightly builds" r=dougt sr=brendan
git-svn-id: svn://10.0.0.236/trunk@141018 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-11 01:19:07 +00:00
cltbld%netscape.com
0bf265c0cd Automated update
git-svn-id: svn://10.0.0.236/trunk@141017 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-11 01:00:41 +00:00
bryner%netscape.com
0c66a2052e Make --disable-xul work (bug 69995). We build enough XUL to support
scrollbars unconditionally, but can now leave out heavyweight widgets like
grid, listbox, and tree.  r=bzbarsky, sr=alecf.


git-svn-id: svn://10.0.0.236/trunk@141016 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-11 00:56:27 +00:00
arougthopher%lizardland.net
38ba53b615 Bug#180134
NS_METHOD nsWindow::ConstrainPosition needs impelentation in BeOS
r=arougthopher,sergei


git-svn-id: svn://10.0.0.236/trunk@141015 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-11 00:54:42 +00:00
despotdaemon%netscape.com
542f427534 Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@141014 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-11 00:20:44 +00:00
leaf%mozilla.org
063b584e5e rest of bug 201520, r=cyeh. using $regexp exposed an unterminated regexp match
for [^/] when % is used, which matches any string that has any non-/ characters
in it, rather than *no* / characters before the end of the string.


git-svn-id: svn://10.0.0.236/trunk@141013 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-11 00:16:05 +00:00
shliang%netscape.com
b9ea32befc 125197 - and/or search tables for ab searches - r=cavin, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@141012 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-11 00:10:18 +00:00
shliang%netscape.com
b813df88ba 195213 - sidebar does not load when opened if collapsed on startup - r=sspitzer, sr=jag
git-svn-id: svn://10.0.0.236/trunk@141011 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-11 00:03:04 +00:00
shliang%netscape.com
d40476bb4a 166912 - mail account manager settings appear not to take effect - r=cavin, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@141010 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-10 23:58:52 +00:00
brendan%mozilla.org
3fdcaf7c48 Fix JS_CompileUCFunctionForPrincipals to allow null obj with non-null funAtom, for precompiling a named function against no scope (no bug, r=self trivial change).
git-svn-id: svn://10.0.0.236/trunk@141009 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-10 23:38:59 +00:00
bzbarsky%mit.edu
711f7862ae Use the right window object -- unbreaks "Launch" button on progress dialog.
Final bits of bug 91969, r=timeless, sr=jag


git-svn-id: svn://10.0.0.236/trunk@141008 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-10 23:35:42 +00:00
dbaron%dbaron.org
10f629714d Remove lines that do nothing except leak. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@141007 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-10 23:26:36 +00:00
leaf%mozilla.org
9aa9a2e9e4 bug 201520, r=dmose, cyeh. Use the modified regexp string instead of the
flat pattern string when comparing file entries in pre-existing partitions.


git-svn-id: svn://10.0.0.236/trunk@141006 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-10 22:26:49 +00:00
blizzard%redhat.com
7d56d7877c Fix uninitialized variable pointed out by pkw@us.ibm.com. No bug. Not part of the default build.
git-svn-id: svn://10.0.0.236/trunk@141005 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-10 22:11:27 +00:00