2178 Commits

Author SHA1 Message Date
hpradhan%hotpop.com
18a0eaa7ad bug 212415 : crash while closing a javascript alert. r=peterv sr=jst
git-svn-id: svn://10.0.0.236/trunk@145446 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-01 03:40:24 +00:00
caillon%returnzero.com
c8612ff038 Bug 38370.
Allow color of an HR element to be changed.
Make HR be a block element in quirks mode instead of the hacky inline we were previously using (standards mode already had it as a block).
Patch by Ian Hickson <ian@hixie.ch> with minor modifications by me.
r+sr=bzbarsky@mit.edu


git-svn-id: svn://10.0.0.236/trunk@145375 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-30 08:13:07 +00:00
bzbarsky%mit.edu
9e4941c980 DeCOMify GetParent/GetBindingParent/GetDocument on nsIContent. Bug 213823,
r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@145292 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-28 21:35:53 +00:00
brendan%mozilla.org
2532d3d12a Big dynamic footprint win via script filename caching, plus line number fix for strict/const diags (see http://bugzilla.mozilla.org/attachment.cgi?id=127130&action=view for detailed checkin comments; 208030, r/rs=shaver, r=rginda on the jsd change, r=jst on the dom change).
git-svn-id: svn://10.0.0.236/trunk@145239 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-26 22:37:11 +00:00
caillon%returnzero.com
60a80f171d Bug 213912
If getting the a chrome document's principal fails, handle the error and clean up the navigator object's holder.
r+sr=bzbarsky@mit.edu


git-svn-id: svn://10.0.0.236/trunk@145229 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-26 08:16:44 +00:00
jaggernaut%netscape.com
df747d0621 Bug 213602: Switch some users of NS_GetWeakReference over to do_GetWeakReference. r=bzbarsky, sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@145205 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-25 19:06:59 +00:00
cbiesinger%web.de
72ffd605aa 147679 GetFromMIMEType on Windows only gets one extension and needs rethinking r=bzbarsky sr=darin
this merges nsIMIMEService::GetFromType and GetFromExtension


git-svn-id: svn://10.0.0.236/trunk@145198 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-25 16:48:00 +00:00
caillon%returnzero.com
cd46cbbaad Bug 83536.
Merge script principal implementations into one class.
Should reduce footprint, speed up calls to caps a little bit, and fixes several memory leaks.
Also fixes bugs 211174 and 211263
r=jst@netscape.com
sr=bzbarsky@mit.edu
moa=mstoltz@netscape.com (he looked at an earlier patch and said it looked fine, and will do a retroactive review when he returns from vacation as well)


git-svn-id: svn://10.0.0.236/trunk@145137 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-24 05:15:20 +00:00
jaggernaut%netscape.com
e07c163859 Bug 213601: Switch some users of NS_NewAtom over to do_GetAtom. r=bzbarsky, sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@145136 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-24 04:53:13 +00:00
jaggernaut%netscape.com
f34216bf2d Bug 25886: Get rid of a bunch of unused NS_DEFINE_IID, NS_DEFINE_CID. r=caillon, sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@144992 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-20 07:47:59 +00:00
jst%netscape.com
5fd3dcd56b Fixing bug 212231. Make errors returned from document.open() not cause silent failures. r=caillon@aillon.org, sr=bzbarsky@mit.edu.
git-svn-id: svn://10.0.0.236/trunk@144854 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-14 21:58:59 +00:00
jst%netscape.com
ced70ba321 Fixing bug 212560. Patch by kw1u@yahoo.com, r=caillon@aillon.org, sr=bzbarsky@mit.edu.
git-svn-id: svn://10.0.0.236/trunk@144838 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-14 21:06:21 +00:00
jaggernaut%netscape.com
95a2235bee Bug 73353: clean up MODULE/REQUIRES story. r=cls, sr=bryner
git-svn-id: svn://10.0.0.236/trunk@144804 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-13 22:29:00 +00:00
cbiesinger%web.de
43d079629c 212532 patch by riceman+bmo@mail.rit.edu r=biesi,caillon sr=bz
Getting window.history returns null after the first attempt (bug 209866 regression)


git-svn-id: svn://10.0.0.236/trunk@144783 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-12 21:23:40 +00:00
bzbarsky%mit.edu
5435c5826d Add correct line number reporting to errors from XBL fields and handlers. Make
it possible to pass a url and line number to CompileEventHandler in general.
Bug 127567, r=bryner, sr=brendan


git-svn-id: svn://10.0.0.236/trunk@144752 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-11 22:54:36 +00:00
caillon%returnzero.com
42ad896b6d Bug 212218
Start supporting bits and pieces of the additions to |Document| in DOM Level 3 Core.
r=jst@netscape.com sr=bzbarsky@mit.edu


git-svn-id: svn://10.0.0.236/trunk@144748 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-11 22:32:25 +00:00
jst%netscape.com
2200f06170 Fixing bug 211719. Making window.opener replaceable. r=caillon@aillon.org, sr=bzbarsky@mit.edu.
git-svn-id: svn://10.0.0.236/trunk@144609 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-09 00:48:25 +00:00
varga%netscape.com
94b96d1848 Fix for bug 202393. Add DOM class info for nsIXULTreeBuilder.
r=pike, sr=peterv


git-svn-id: svn://10.0.0.236/trunk@144586 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-08 21:10:52 +00:00
cbiesinger%web.de
c80cb4ba6c 78919 part 1. r=bzbarsky, sr=darin. This adds an |hasDefaultHandler| attribute
to nsIMIMEInfo that should be used to check if a default application is available
for this mimeinfo.


git-svn-id: svn://10.0.0.236/trunk@144559 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-08 13:52:46 +00:00
bzbarsky%mit.edu
18967e96cb Random already_AddRefed stuff. Bug 211380, r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@144417 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-03 02:49:06 +00:00
bzbarsky%mit.edu
50802bdf22 Add nsIContent::GetBaseURL; get rid of similar functions on nsIXMLContent and
nsIHTMLContent.  Bug 209573, r=caillon, sr=jst.


git-svn-id: svn://10.0.0.236/trunk@144415 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-03 02:45:34 +00:00
jst%netscape.com
4877aa6cb9 Checking in patch from tenthumbs@cybernex.net to fix bug 202543. Eliminating useless assertions and speeding things up a bit. r=bzbarsky@mit.edu, sr=jst@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@144333 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-01 05:11:46 +00:00
aaronl%netscape.com
230dadfa15 Bug 208460. Add domstubs.idl/h to Gecko SDK. r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@144212 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-27 11:28:20 +00:00
bryner%netscape.com
c4c16cf195 Remove #include "nsIScriptContext.h" from nsPIDOMWindow.h, because this (among other things) creates a dependency on js headers, which is breaking Camino. Bug 210704, r+sr=jst.
git-svn-id: svn://10.0.0.236/trunk@144170 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-26 00:41:23 +00:00
danm%netscape.com
0e864a0244 also check for popup window abuse in the internal Open method. bug 210560 r=brendan,jst
git-svn-id: svn://10.0.0.236/trunk@144167 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-25 23:38:45 +00:00
jst%netscape.com
1afe147382 Removing unnecessary initialization of static variables that only cause bloat.
git-svn-id: svn://10.0.0.236/trunk@144119 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-24 23:06:12 +00:00
jst%netscape.com
fa56aa0de1 Fixing bug 210141. Don't make external global properties be readonly. r=axel@pike.org, sr=bzbarsky@mit.edu.
git-svn-id: svn://10.0.0.236/trunk@144109 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-24 21:47:33 +00:00
jst%netscape.com
ecae24eff4 Fixing bug 209884. Writing an inline helper to safely get an nsIScriptContext from a JSContext and making direct callers of JS_GetContextPrivate() use the helper. r=caillon@aillon.org, sr=peterv@netscape.com
git-svn-id: svn://10.0.0.236/trunk@144108 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-24 21:43:01 +00:00
caillon%returnzero.com
056169e55b 210451 - Implement getting Node.textContent (see the DOM3 WD)
r+sr=jst@netscape.com


git-svn-id: svn://10.0.0.236/trunk@144107 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-24 21:39:39 +00:00
jst%netscape.com
2811909f3e Fixing bug 203179. Make String.prototype.localeCompare be locale aware. r=smontagu@netscape.com, sr=bzbarsky@mit.edu.
git-svn-id: svn://10.0.0.236/trunk@144105 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-24 21:09:57 +00:00
bzbarsky%mit.edu
63ed4e4cd2 Make XBL methods and properties report useful line numbers and urls so that the
JS errors/warnings in the JS console point to the right place.  Bug 127567,
r=bryner, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@144079 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-24 01:20:40 +00:00
bzbarsky%mit.edu
b2b73ad6a1 Trying to fix orange. We were only setting the out param in cases when we
tried to allocate the object for these three objects...


git-svn-id: svn://10.0.0.236/trunk@144026 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-21 09:36:03 +00:00
caillon%returnzero.com
1247df7622 I just noticed a few potential crashes with my patch for bug 209866. Fixes those and a few minor cleanup issues. No bug for this patch. r+sr=bzbarsky on IRC
git-svn-id: svn://10.0.0.236/trunk@144023 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-21 07:15:32 +00:00
caillon%returnzero.com
1cf5b456c2 Bug 209866 - Use nsRefPtr for non-COM refcounted members in GlobalWindowImpl and NavigatorImpl
r=sicking, sr=jst


git-svn-id: svn://10.0.0.236/trunk@144009 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-20 23:51:46 +00:00
mstoltz%netscape.com
d75dbe073a Bug 184618 - allow scripts to close a script-generated window even if its opener has been set to null. r=heikki, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@144002 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-20 22:44:33 +00:00
stephend%netscape.com
c958718c89 Grammatical error. It's is contractive; its is possessive.
git-svn-id: svn://10.0.0.236/trunk@143902 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-19 00:08:29 +00:00
caillon%returnzero.com
588acb1f7c Bug 163645 - User defined properties of window.navigator are not remembered when a new page is loaded.
Enable this for websites within the same domain only.
Also, fixes CheckSameOriginPrincipal to just check the principals, and not care whether we have anything on the JS stack.
r=mstoltz, sr=jst


git-svn-id: svn://10.0.0.236/trunk@143900 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-18 23:48:57 +00:00
alecf%flett.org
71e5d724e5 fix for bug 209220 - now that i18n APIs take ASCII charset names, update consumers to avoid excess conversions.. which usually means storing charset names as ASCII and updating a few other APIs
r=jkeiser, sr=jst and some great comments from jshin@mailaps.org


git-svn-id: svn://10.0.0.236/trunk@143800 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-17 16:40:34 +00:00
bzbarsky%mit.edu
ec94bec8b1 unescape() needs to convert from UTF-16 to page encoding properly, instead of
just using ToNewCString().  Bug 200984, r=smontagu, waldemar, sr=jst


git-svn-id: svn://10.0.0.236/trunk@143780 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-17 01:09:41 +00:00
aaronl%netscape.com
290c0f8aa6 Bug 208460. Remove nsIDOM3Node.idl dependency from nsIDOMNode.idl
git-svn-id: svn://10.0.0.236/trunk@143756 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-16 11:17:18 +00:00
caillon%returnzero.com
0a6d1ae509 Bug 209087
Content interface out-parameters should use ptr-to-ptrs instead of ref-to-ptrs and some small deCOMtamination.
r+sr=jst@netscape.com


git-svn-id: svn://10.0.0.236/trunk@143683 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-13 20:10:01 +00:00
caillon%returnzero.com
fb75cd3bbb Bug 209133
Make |Node| from script recognize constants defined in nsIDOM3Node.
Move DOM3 constants over to nsIDOM3Node.
Update the names and values to reflect the latest draft of the DOM 3 Core (Last Call)

r=timeless sr=jst


git-svn-id: svn://10.0.0.236/trunk@143619 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-12 02:54:16 +00:00
alecf%flett.org
1c89787dc0 fix for bug 206379:
- combine nsICharsetConverterManager2 and nsICharsetConverterManager
- get rid of nsIAtom in most of the methods
- provide versions of getUnicodeDecoder/Encoder which don't do alias resolution
- change all charset types to ASCII strings
- clean up some other i18n APIs which could be simplified
- fix all consumers of all changed i18n interfaces
r=jshin, smontagu
rs=sfraser


git-svn-id: svn://10.0.0.236/trunk@143589 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-11 18:16:03 +00:00
seawood%netscape.com
06e1507b0c Removing old cfm build files. Use the CFM_LAST_RITES tag to resurrect. r=macdev
git-svn-id: svn://10.0.0.236/trunk@143527 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-10 21:18:27 +00:00
seawood%netscape.com
9e4caeaa92 Removing old cfm build files. Use the CFM_LAST_RITES tag to resurrect. r=macdev
git-svn-id: svn://10.0.0.236/trunk@143522 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-10 20:12:33 +00:00
mkaply%us.ibm.com
780db256b0 #90459
r=sicking, sr=peterv
DOM support missing for ondblclick = functionname


git-svn-id: svn://10.0.0.236/trunk@143512 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-10 18:33:58 +00:00
dbaron%dbaron.org
bf4ec31727 Put more information on the CSS properties in nsCSSPropList.h.
Use the property list in the tables for nsRuleNode::CheckSpecifiedProperties.
To reduce heap usage, redesign the storage of properties and values in nsCSSDeclaration to allocate all property-value pairs in a declaration block in a single allocation, and use temporary structures (like the old permanent structures) during parsing and modification.  Replace per-property switch statements in nsCSSDeclaration with table-based code to reduce code size.
b=125246  r+sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@143421 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-07 22:14:42 +00:00
jst%netscape.com
1089004b88 Fixing bug 147270. Making window.document and other properties enumerable. r=peterv@netscape.com, sr=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@143300 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-04 21:33:15 +00:00
aaronl%netscape.com
3008e9566a Bug 207487. No accessible name using label for xul <textbox> element. r=kyle, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@143299 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-04 20:57:39 +00:00
mkaply%us.ibm.com
630da50bcb #158610
r=pavlov, sr=jst
Add support for setting and querying lowsrc attribute so frontpage pic galleries work.
This does NOT make lowsrc work as it used to, it only adds it to the DOM


git-svn-id: svn://10.0.0.236/trunk@143287 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-04 13:15:37 +00:00