Commit Graph

249 Commits

Author SHA1 Message Date
waterson%netscape.com
b0ab68c1e3 Bug 20677, 23905, attempt number 2. This time, in the DOM methods, we make sure to do a 'deep' set on mDocument *before* calling to their nsIContent brethren. This ensures that any code in layout that wants to access the document gets the right value. r=scc 2000-02-03 07:55:34 +00:00
valeski%netscape.com
a567c875bb r=warren. nsIUnicharStreamLoader is dead. Now we have a generic byte stream loader that can be used for any sort of data. 2000-02-02 23:04:47 +00:00
waterson%netscape.com
8dd7b2ed23 Revert changes that cause mail sort to crash. 2000-02-02 19:46:03 +00:00
waterson%netscape.com
a26daa2f0d Bugs 20677, 23905. Change nsXULElement to implement nsIContent like nsGenericElement and nsGenericHTMLElement. Specifically, do 'shallow' SetDocument() calls in AppendChildTo(), InsertChildAt() and ReplaceChildAt() methods. Change nsXULDocument to leave newly create element's mDocument as null (so 'null mDocument' means 'this element is not currently in the document'. Fix callers to ensure that a deep SetDocument() is made where necessary. r=hyatt 2000-02-01 22:57:36 +00:00
vidur%netscape.com
e8157b30cb Fix for bugs 20485 and 24600. We no longer flush immediately in the content sink when we hit a script element. Instead the sink is a document observer and listens for BeginUpdate/EndUpdate notifications when evaluating a script and flushes only if necessary. Added BeginUpdate/EndUpdate notifications to nsIDocument and layout content (note that it's still necessary for XUL content). r=nisheeth,pollmann 2000-01-28 23:43:12 +00:00
hyatt%netscape.com
1b09ed7f43 Making the XUL key listener a bubbler. Removing its capability to handle
textareas and inputs.
2000-01-27 09:43:19 +00:00
sspitzer%netscape.com
1a7841574a change PR_ASSERT to NS_ASSERTION. on linux, PR_ASSERT calls abort, and
I was getting getting to the PR_ASSERT when copying text in a quoted mail message.  r=akkana, a=leaf
2000-01-26 20:39:28 +00:00
norris%netscape.com
7ec9655d07 Fix 23227 Document object vulnerability
r=mstoltz
2000-01-26 15:33:57 +00:00
nisheeth%netscape.com
22a5959edb Work done by Vidur and me. Added a FlushPendingNotifications() method to the document. This method flushes the pending content notifications from the content sink and the pending reflow notifications from the pres shell. This code is turned off for now so that it can be tested more thoroughly by Vidur and me. 2000-01-24 06:43:15 +00:00
waterson%netscape.com
d100985675 Bugs 18127, 20677, 23905. Partial fix. Give the nsXULPrototypeDocument it's own JSContext to use for compiling scripts and event handlers. Modify script and event handler code to compile shared scripts using this context, if appropriate. r=brendan 2000-01-22 22:00:35 +00:00
hyatt%netscape.com
b8c4dff420 Adding a XUL element factory so that the XML content sink over in layout will
be able to make XUL elements. r=waterson
2000-01-19 03:28:06 +00:00
hyatt%netscape.com
1d0e1d86fd Patching XUL documents so that they support extensibility of content creation.
Patching the RDF generic builder so that it can build any type of content
element (using the generic factory building interface). r=waterson
2000-01-19 03:11:39 +00:00
waterson%netscape.com
d5fbf22774 Bug 24134. Re-apply r1.233, which was steamrollered by tao's recent checkin. Re-using the r=valeski here. 2000-01-17 19:34:23 +00:00
danm%netscape.com
5a261c8ad9 reapplying changes from rev 1.234, which was lost as part of 1.235 2000-01-15 05:53:41 +00:00
alecf%netscape.com
94b65d019c attempted fix at build bustage. I have no idea if this is the "right" thing or not but it gets the build green 2000-01-15 03:51:31 +00:00
tao%netscape.com
da49ef2262 bug 23400: Need to expose api GetDocumentCharacterSet() to JS. r=vidur. 2000-01-15 02:01:05 +00:00
danm%netscape.com
05825e9716 removing initial window sizing from StartLayout (now done in nsWebShellWindow). Long overdue change; also necessary as part of bug 15775. r:hyatt@netscape.com 2000-01-13 23:49:25 +00:00
waterson%netscape.com
a8efb387b8 Bug 23799. Ignore failure from GetContentType() in StartDocumentLoad(), because some channels may not have yet resolved the content type. In this case, cross our fingers and pray that it's text/xul. r=valeski 2000-01-13 23:23:51 +00:00
alecf%netscape.com
714e7a48a9 expose the form controls in a XUL document in the "controls" DOM attribute
this will make prefs and wizards much faster
r=hyatt
2000-01-13 02:59:08 +00:00
rjc%netscape.com
b945bae5b3 Somehow, we lost some of the magical attributes we need to check for. (coalescing dup arcs, and allowing negative arcs) 2000-01-12 01:47:23 +00:00
waterson%netscape.com
c0a53ad72f Bug 22915. Be sure to add the nsCachedChromeChannel to the load group on nsIChannel::SetLoadGroup(). Also, don't assume (in nsXULDocument::StartDocumentLoad) that when you 'hit' in the cache that the channel is actually a nsCachedChromeChannel; instead, inspect its content type. Finally, get rid of extraneous 'command' member variable in nsCachedChromeChannel. r=mscott 2000-01-11 21:18:19 +00:00
pp%ludusdesign.com
698852a4f4 Converting usage of ::GetIID() to NS_GET_IID().
Bug #20232, r=scc@netscape.com
2000-01-11 20:49:15 +00:00
waterson%netscape.com
971c4ab2ab Take out crufty debug printfs. 2000-01-11 02:49:18 +00:00
rpotts%netscape.com
023f2ff6e1 Made contentType a read/write attribute of nsIChannel 2000-01-08 06:26:04 +00:00
jband%netscape.com
ef9c82db1e Landing big set of DOM and XPConnect changes:
DOM: getting rid of JS_GetContextPrivate wherever possible. Use static parent
links where we can. When we do need to find this info about the caller
we call a function that knows how to get that info rather than inline calls
to JS_GetContextPrivate. This is all required for calling DOM objects on
non-DOM JSContexts as we do via xpconnect.

XPConnect: basic refactoring work to disassociate wrappers from the JSContext
that was active when the wrapper was constructed. This allows for calling into
wrapped JS objects on the right JSContext and for proper grouping of wrapped
native objects so that they can share proto objects. This also allows for
better sharing of objects and lays the foundations for threadsafety and
interface flattening.

Also, xpconnect tests are reorganized and improved.

fixes bugs: 13419, 17736, 17746, 17952, 22086

r=vidur r=mccabe r=norris r=cbegle
a=chofmann
1999-12-18 20:29:29 +00:00
waterson%netscape.com
59f08eb360 Bug 21364. Fix document leaks that occur via uncollected script objects: compile scripts against a special global object owned by the prototype document. shaver mostly did this work. r=brendan Bug 21661. Break circular reference between command dispatcher and XUL document. r=saari 1999-12-17 00:06:28 +00:00
hyatt%netscape.com
78ed47b45c Fix for 21610. r=waterson 1999-12-16 03:19:34 +00:00
waterson%netscape.com
d13a83fb9f Bug 21610. Add support to distinguish key binding overlay from normal overlay documents. 1999-12-15 23:18:34 +00:00
waterson%netscape.com
bc16c6794e Bug 17680. Only need to add template builders on nodes that are more than -two- levels in from an overlay root. The first ply will be set up in nsXULDocument::OverlayForwardReference::Merge(). 1999-12-08 07:59:12 +00:00
hyatt%netscape.com
c026e8d315 Fixing bustage on wensleydale. 1999-12-08 06:04:10 +00:00
hyatt%netscape.com
f23566bf16 Massive rewrite of the key binding system and the command dispatcher. Key
bindings are now fully hierarchical.  In addition, DOM windows, input fields
and textareas can pull their key bindings from a separate XUL file.  This
allows configurable key bindings.

Massive rewrite of the command dispatcher system.  The command dispatcher now
deals with DOM windows in addition to DOM elements.  It now tracks both
successfully and works in conjunction with the new focus/blur architecture.

r=saari
1999-12-08 04:56:56 +00:00
waterson%netscape.com
77a02a8fff Bug 16709. Set 'content ID' fields on elements as they are constructed from XUL. 1999-12-06 23:05:31 +00:00
waterson%netscape.com
c3688d7937 Bug 20897. Change flow-of-control; panic if we can't get from a presshell to a webshell and beyond. r=danm 1999-12-06 23:03:53 +00:00
waterson%netscape.com
38e938ebbc Bug 20470. Add weak reference from 'controllers' object back to command dispatcher. Miscellaneous cleanup. r=hyatt 1999-12-05 23:04:22 +00:00
waterson%netscape.com
82fb1998b7 Bug 18392. Use XUL document cache for retrieving master document. 1999-12-04 07:45:57 +00:00
tbogard%aol.net
317758d9f3 include of nsIScriptGlobalObject.h is now in nsXULDocument.h. 1999-12-03 19:29:23 +00:00
tbogard%aol.net
94a95754d7 Hoping this will help wensleydale. 1999-12-03 12:09:10 +00:00
tbogard%aol.net
eb96099e6d 1.) WebShell no longer implements nsIScriptContextOwner.
2.)  WebShell now implements the new nsIScriptGlobalObjectOwner.
3.)  WebShell supports GetInterface to nsIScriptGlobalObject.
4.)  Documents no longer carry around a reference to nsIScriptContextOwner.  Instead they hold on to a nsIScriptGlobalObject.  nsIDocument::GetScriptContextOwner has now become nsIDocument::GetScriptGlobalObject().  Same change to the set methods.
1999-12-03 09:24:22 +00:00
waterson%netscape.com
b226f5a42a Bug 16516. Doh! Fix use of NS_RELEASE()-ed pointer that was causing load handlers to not run on brutally shared docs. 1999-11-30 22:47:41 +00:00
ftang%netscape.com
f6e3351358 fix bug 20181. r=ftang a=beard 1999-11-30 22:24:16 +00:00
warren%netscape.com
2db26922a6 Landing no_neckoutil2_branch. Bug #11159. Removes neckoutil_s.lib from build which helps beos and openvms. 1999-11-30 04:50:42 +00:00
waterson%netscape.com
947d490060 Fix RemoveStyleSheet() per pierre's comments. 1999-11-30 04:33:28 +00:00
hyatt%netscape.com
7ab98f7f26 Adding RemoveStyleSheet to nsIDocument (needed for skins). r=waterson 1999-11-29 22:15:07 +00:00
waterson%netscape.com
7e03717d55 Bug 20147. Make sure to correctly scope 'parent' when creating script objects. XUL document's parent is the window; XUL element's parent is the document. r=brendan 1999-11-29 20:53:40 +00:00
hyatt%netscape.com
9d73ef65cc More skin work. r=pavlov 1999-11-29 06:51:24 +00:00
tbogard%aol.net
85b5334721 nsXULDocument now uses the nsIBaseWindow interface for windowing stuff on webshell instead of nsIWebShell. This paves the way for the new docshell object to move in. 1999-11-29 06:04:15 +00:00
waterson%netscape.com
dd7c188516 More random flailing to fix gcc-2.7.2.3 1999-11-24 23:39:34 +00:00
waterson%netscape.com
1260e2100c Random flailing to fix gcc-2.7.2.3 bustage. 1999-11-24 23:19:52 +00:00
waterson%netscape.com
1eb45f5c91 Expose nsIXULDocument and nsIXULPrototypeDocument as public interfaces. Properly implement nsIXULDocument::CreateFromPrototype(). 1999-11-24 22:46:09 +00:00
tbogard%aol.net
af1ce8d410 Changed nsIPresContext& to nsIPresContext*. Changed nsEventStatus& to nsEventStatus*. Now more compatible with XPIDL. a=vidur r=scc 1999-11-24 06:03:41 +00:00