Commit Graph

431 Commits

Author SHA1 Message Date
caillon%returnzero.com
1fe458ad18 205225 - document.createTreeWalker(null, ...) wasn't null checking.
r=sicking sr=jst a=asa


git-svn-id: svn://10.0.0.236/trunk@142586 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-17 13:57:16 +00:00
jst%netscape.com
57a0b36cc7 Fixing bug 116598. Making document.lastModified = now() if the server doesn't send a last-modified header. This makes us compatible with IE. r=caillon@returnzero.com, sr=bzbarsky@mit.edu, a=asa@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@142143 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-06 00:45:54 +00:00
bzbarsky%mit.edu
6f3d8509a0 Move document.lastModified up onto nsIDOMNSDocument; refactor the
RetrieveRelevantHeaders stuff a bit.  Bug 192366, patch by Pratik
<psolanki@netscape.net>, r=bzbarsky, sr=jst


git-svn-id: svn://10.0.0.236/trunk@141452 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-19 16:53:44 +00:00
jst%netscape.com
4132f747e7 Fixing bug 111514. In an XHTML document served as application/xhtml+xml, |document| is not an HTML document object, but an XML document object. r=bugmail@sicking.cc, sr=peterv@netscape.com
git-svn-id: svn://10.0.0.236/trunk@141424 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-19 00:28:09 +00:00
hpradhan%hotpop.com
d446a9ee63 bug 199756 : Crash at nsDocument::GetPrincipal
git-svn-id: svn://10.0.0.236/trunk@140446 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-31 15:45:44 +00:00
jst%netscape.com
08e9d026e0 Fixing bug 124412. Making nsXULDocument inherit nsXMLDocument to avoid the need to duplicate a large amount of code in nsXULDocument. Also removing nsMarkupDocument and nsIDOMEventCapturer that are no longer needed. Changing the inheritance of nsIDOMXULDocument to avoid ~60 or so forwarding methods, and doing a *lot* of code cleanup. r=bugmail@sicking.cc, sr=peterv@netscape.com
git-svn-id: svn://10.0.0.236/trunk@140344 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-26 07:41:30 +00:00
heikki%netscape.com
9ab0181236 Bug 139276, implement synchronous document.load(), r=jst, sr=darin.
git-svn-id: svn://10.0.0.236/trunk@139954 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-21 19:22:52 +00:00
heikki%netscape.com
e1c2bcdb80 Bug 182323, implemented XPointer spec, we now support the framework, shorthand syntax, element, fixptr, xpath1 and xmlns schemes, and provide a proprietary API from scripts, r=sicking, sr=peterv.
git-svn-id: svn://10.0.0.236/trunk@139800 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-19 23:45:42 +00:00
bzbarsky%mit.edu
e13b131d86 Fix crash on having a <xul:listbox> in a plain XML document. Bug 197234,
r=sicking, sr=jst


git-svn-id: svn://10.0.0.236/trunk@139696 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-18 21:18:26 +00:00
bzbarsky%mit.edu
f0eaf3702e Make all CSSStyleSheets have a useful mDocument so that they can pass change
notifications properly.  Parent sheets are responsible for keeping their kids'
mDocument pointers up-to-date.  Bug 194543, r=dbaron, sr=peterv


git-svn-id: svn://10.0.0.236/trunk@139589 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-17 03:44:02 +00:00
peterv%netscape.com
c96c6fa64f Fix for bug 195153 (Remove bogus 'extern' decls from NS_New* functions.). Patch by jst, r=sicking, sr=peterv.
git-svn-id: svn://10.0.0.236/trunk@138957 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-05 15:08:41 +00:00
bzbarsky%mit.edu
834f54cbc8 Sync up observer notifications between nsDocument and nsXULDocument. Bug
192130, r=dbaron, sr=jst


git-svn-id: svn://10.0.0.236/trunk@138302 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-23 18:49:45 +00:00
sicking%bigfoot.com
37c5c969e9 Bug 174713: Make XPath on HTML documents behave consistently and HTML-ish. This makes the XPath-functions name() and local-name() return upper-case names and makes nametests case-insensitive.
r=peterv sr=jst a=asa


git-svn-id: svn://10.0.0.236/trunk@137794 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-14 00:59:40 +00:00
dbaron%dbaron.org
1e9033b05f Backing out half of previous changes, since they're not necessary to fix the crash and I think they cause problems.
git-svn-id: svn://10.0.0.236/trunk@137518 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-07 03:21:27 +00:00
dbaron%dbaron.org
60df6b53bb Make observer notification in nsDocument and nsXULDocument happen in the same order (that of nsXULDocument), and make nsXULDocument more resistant to observer removal during notification in an attempt to fix crashes. b=192130 Patch from Boris Zbarsky <bzbarsky@mit.edu>. r=dbaron sr=jst a=asa
git-svn-id: svn://10.0.0.236/trunk@137517 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-07 03:15:41 +00:00
bzbarsky%mit.edu
24c99f9f5f Relanding 189384 since it seems Not Guilty. Still r=sicking/sr=jst/a=asa
git-svn-id: svn://10.0.0.236/trunk@137227 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-31 23:21:22 +00:00
bzbarsky%mit.edu
67d9f82daa Backing out 189384 to see whether this caused the Tp jump.
git-svn-id: svn://10.0.0.236/trunk@137194 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-31 14:28:50 +00:00
bzbarsky%mit.edu
2684cc736f Make getElementsByTagName(NS) in XUL use content lists (perf, etc). Bug
189384, r=sicking, sr=jst, a=asa


git-svn-id: svn://10.0.0.236/trunk@137185 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-31 06:28:14 +00:00
cbiesinger%web.de
8b51a21663 remove ifdef IBMBIDI in content/, r+sr=roc+moz, bug 89203
git-svn-id: svn://10.0.0.236/trunk@136507 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-17 12:09:23 +00:00
sicking%bigfoot.com
6b164af018 Bug 187611: Set the proper Content-Type of XSLT generated documents
r=peterv sr=jst


git-svn-id: svn://10.0.0.236/trunk@136067 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-09 15:45:45 +00:00
dbaron%dbaron.org
30879d2c9e Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it's no longer needed. r=timeless sr=jag
git-svn-id: svn://10.0.0.236/trunk@135991 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-08 19:24:38 +00:00
dbaron%fas.harvard.edu
ffb8d9cca7 Change my email address from dbaron@fas.harvard.edu to dbaron@dbaron.org. Comment changes only.
git-svn-id: svn://10.0.0.236/trunk@135757 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-01 23:53:20 +00:00
peterv%netscape.com
3a3c75b9f7 Fix for bug 183999 (Modernize content). r=caillon, sr=bz.
git-svn-id: svn://10.0.0.236/trunk@135128 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-11 14:24:49 +00:00
caillon%returnzero.com
8eb8abf86c 182954 - Convert content to use nsIPrefService, nsIPrefBranch, and friends.
r=sicking sr=peterv


git-svn-id: svn://10.0.0.236/trunk@135071 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-10 23:44:03 +00:00
caillon%returnzero.com
3519a9924e Bug 177328: Update compareTreePosition to compareDocumentPosition as per the latest DOM3 Core WD: http://www.w3.org/TR/2002/WD-DOM-Level-3-Core-20021022/core.html#Node3-compareDocumentPosition
r=bzbarsky sr=jst


git-svn-id: svn://10.0.0.236/trunk@134777 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-04 05:18:39 +00:00
bzbarsky%mit.edu
5e5a29e7af Fixing compiler warning. r=timeless.
git-svn-id: svn://10.0.0.236/trunk@134689 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-03 15:14:00 +00:00
bzbarsky%mit.edu
6ab8d32bdc get rid of build warning for unused var.
git-svn-id: svn://10.0.0.236/trunk@134674 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-03 06:53:22 +00:00
bzbarsky%mit.edu
c3731640d3 Make the CSSLoader correctly order stylesheets as they are dynamically added
and removed via the DOM.  Clean up the nsIDocument stylesheet accessors.  Clean
up nsIDocumentObserver stylesheet stuff a bit.  Make style sheets visible in
the CSSOM (though not completely accessible) from the moment the load is kicked
off.  Make us have sheet objects that can be manipulated via CSSOM even for
failed loads. Bug 107567, bug 47734, bug 57225, bug 178407.
r=sicking,  sr=peterv.


git-svn-id: svn://10.0.0.236/trunk@134667 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-03 05:48:14 +00:00
peterv%netscape.com
d103a96ada Fix for bug 176610 (Make nsNameSpaceManager a service). r=caillon, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@134587 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-29 23:44:07 +00:00
jst%netscape.com
0fcfc0bc39 Fixing bug 181351. Making NS_NewTextNode() return an nsITextContent pointer in stead of reaturning an nsIContent pointer to avoid having to QI the new text node to set it's value. r=caillon@returnzero.com, sr=bzbarsky@mit.edu
git-svn-id: svn://10.0.0.236/trunk@134285 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-21 23:53:06 +00:00
bzbarsky%mit.edu
4ebebea365 Don't drop the principal, because we need it later on in destruction.
Let it die a peaceful death on its own.  Bug 180441, patch by
keeda@hotpop.com (Harshal), r=jst, sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@133984 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-16 22:49:14 +00:00
bzbarsky%mit.edu
e9b4c6da2c Need to sanity-check the index to avoid out-of-bounds array access. Bug
180043, r=jkeiser, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@133960 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-16 06:08:37 +00:00
bryner%netscape.com
b345c67a0c Add a second pass of event processing for system events, using DOM3 event group functionality. Bug 124990. Patch by joki, r=saari and bryner, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@133439 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-09 00:25:25 +00:00
bzbarsky%mit.edu
cd2b67ecb7 This addref needs removing too. Part of bug 177543, r=rjesup, sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@133299 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-07 15:21:08 +00:00
bzbarsky%mit.edu
0748e6efda that addref should not have landed... thanks to rpotts for catching it
git-svn-id: svn://10.0.0.236/trunk@133281 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-07 08:04:04 +00:00
rpotts%netscape.com
dad38a973d bug #174404 (r=adam, sr=jst) Support the optional FOR and EVENT attributes on the SCRIPT tag
git-svn-id: svn://10.0.0.236/trunk@133264 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-07 05:17:21 +00:00
bzbarsky%mit.edu
5cce5589b3 clean up some array stuff in nsDocument. Bug 177543, r=peterv, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@133245 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-07 02:36:24 +00:00
darin%netscape.com
10ba1113a1 fixes bug 151478 "https wyciwyg page is cached on disk" r=mstoltz sr=rpotts a=asa
git-svn-id: svn://10.0.0.236/trunk@131775 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-11 04:22:54 +00:00
dbaron%fas.harvard.edu
c2de335afb Fix leaks from nsDocument::mPrincipal by making it an nsCOMPtr. b=170201 r=mstoltz sr=jst
git-svn-id: svn://10.0.0.236/trunk@130316 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-24 01:27:44 +00:00
dougt%netscape.com
e289284076 166917. Clean up xpcom SDK includes. r=rpotts@netscape.com, sr=alecf@netscape.com, a=rjesup@wgate.com
git-svn-id: svn://10.0.0.236/trunk@129050 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-07 17:13:19 +00:00
bryner%netscape.com
929cad272b Bug 141295 and 153681 - fix some timing problems with initial focus. Make sure that window watcher's activeWindow accurately reflects the last window to receive an NS_ACTIVATE. Remove the GetFocusController API from nsIDocument, since the focus controller can now be obtained for the entire lifetime of the document by using GetContainer(). Cleaned up some methods on nsEventStateManager/nsIEventStateManager that were virtual for no reason. r=danm, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@128925 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-06 00:19:58 +00:00
roc+%cs.cmu.edu
c6bb83f66a Bug 160936. Add type nsChangeHint for style hints. Make it a set of bits. Make sure an NS_STYLE_HINT_REFLOW always also does a repaint of the frame. r=dbaron,sr=kin
git-svn-id: svn://10.0.0.236/trunk@128041 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-24 14:41:28 +00:00
jst%netscape.com
ed117f9119 Fixing bug 156364. Laying the groundwork for associating more info with elements in the DOM, and moving event listener managers and range lists out of nsGenericElement slots. This change cuts down on the size of nsGenericElement. r=sicking@bigfoot.com, sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@127114 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-13 00:50:50 +00:00
peterv%netscape.com
31de3f5600 Fix for bug 138295 (XML Loading on Mac fails on .childNodes of non-root nodes). r=mstoltz, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@126889 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-09 08:45:30 +00:00
sicking%bigfoot.com
fdf8ae5b5f Make sure it is possible to get URI of xul elements even if they share nodeinfo with their prototype and are removed from the document tree.
b=156452 r=bz sr=jst a=asa


git-svn-id: svn://10.0.0.236/trunk@125642 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-23 22:16:45 +00:00
jkeiser%netscape.com
01341d9e3c Make radio buttons work without forms (bug 14445), r=rods@netscape.com, sr=jst@netscape.com, a=asa.
git-svn-id: svn://10.0.0.236/trunk@125544 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-20 23:09:24 +00:00
sicking%bigfoot.com
7ef44d6e76 Add same-origin checks in a few DOM methods. Patch by me and jst.
b=156452, r=jst/me, sr=bz, a=pending


git-svn-id: svn://10.0.0.236/trunk@125294 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-16 13:09:15 +00:00
sicking%bigfoot.com
f0e2529596 Add sameorigin checks to treewalker
b=156452, r=mstoltz, sr=jst, a=chofmann


git-svn-id: svn://10.0.0.236/trunk@125233 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-15 19:25:27 +00:00
jst%netscape.com
9dc48e1db8 Fixing bug 131841. Don't make calls on weak XPCOM (nsIPresShell in this case) pointers since the objects might go away during the call, this lead to a crash in this particular case. r=sicking@bigfoot.com, sr=vidur@netscape.com, brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@121802 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-18 00:02:50 +00:00
caillon%returnzero.com
00ebc565e0 Initial implementation of DOM Level 3 Core methods Node.compareTreePosition() and Node.isSameNode(), Bug 139344, r=jkeiser, sr=jst
git-svn-id: svn://10.0.0.236/trunk@121437 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-14 01:28:17 +00:00