Граф коммитов

559 Коммитов

Автор SHA1 Сообщение Дата
tbogard%aol.net f5d81c3e9c GlobalWindow now calls up nsIDocShellTreeOwner rather than nsIBrowserWindow. GlobalWindow has mostly been re-organized as well as cleaned up to provide this new functionality. DocShellTreeOwners got implementations filled in and many bugs fixed. nsIScriptGlobalObject now talks in terms of docShells instead of webShells. Fixed a number of cases where people were walking through content viewers etc to get to a presShell and changed them to simply ask for the presShell from the docShell. GlobalWindow now deals completely in terms of docShells. r=vidur 2000-02-08 13:40:10 +00:00
sspitzer%netscape.com 9f4edcc962 appcores are finally dead on mac, windows and linux. r=alecf 2000-02-06 07:56:31 +00:00
norris%netscape.com 131271ae68 Fix bug #25864 watch() vulnerability
r=vidur,rogerl
2000-02-02 00:22:58 +00:00
pp%ludusdesign.com 13efd9e8c6 Converting usage of ::GetIID() to NS_GET_IID().
Bug #20232, r=scc@netscape.com
2000-01-11 20:49:15 +00:00
jband%netscape.com 7d0cb0f4bb 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 d21b4ca079 Bug 21668. Ooops. Almost missed the CAN'T BE KILLED xpfe/AppCores directory. DIE DIE DIE! 1999-12-17 00:41:09 +00:00
tbogard%aol.net 648ace3e23 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
warren%netscape.com a265a32348 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
norris%netscape.com 74c4e6c6d7 Back out last change; didn't mean to check it in. 1999-11-25 05:30:22 +00:00
norris%netscape.com b62c04253e Fix 18553 [DOGFOOD] addEventListener allows sniffing keystrokes
Add checks to nsScriptSecurityManager::CheckCanListenTo that take
a principal and ensure that the currently executing script code
either is from the same origin as that principal or has the
UniversalBrowserRead privilege enabled. (chrome code has all
privileges enabled by default.) It's okay for the principal passed in
to be null. That just signifies a privileged window/document that only
can be listened to with privileges.

I added GetPrincipal/SetPrincipal methods to nsIEventListenerManager.
nsDocument::GetNewListenerManager sets a principal on the listener
manager when it creates one. Obviously there are other places that
create listener managers, but scripts seem to go through this one.

Another change is to save some memory usage. Currently I allocate an
array of PolicyType that is NS_DOM_PROP_MAX elements long.
Unfortunately, compilers appear to allocate four bytes for each
PolicyType, so the array takes around 2400 bytes. I've added changes
to use two bit vectors that should consume about 1/16 that space.

r=joki

There are also changes that push nsnull onto the JSContext stack when
entering a nested event loop.

r=jband
1999-11-25 05:28:18 +00:00
norris%netscape.com e15cc74c6b Remove unused file and change makefile to reflect change.
r=mstoltz
1999-11-20 07:30:57 +00:00
norris%netscape.com 1c4dac85f3 Modify generated dom code to use a enum rather than a string for codesize
and efficiency.
Tighten checks on document properties and node properties. Should resolve
several bugs:
18965 document.firstChild vulnerability
19043 document.childNodes vulnerability
19044 document.lastChild vulnerability
r=mstoltz
1999-11-20 07:28:34 +00:00
tbogard%aol.net 65790643ab Changed calls to nsIWebShell::GetRootWebShellEvenIfChrome() and further QI's to use the new nsIWebShell::GetTopLevelWindow(). 1999-11-16 20:05:21 +00:00
jdunn%netscape.com d70d78c6bf Fixing all unresolved symbols on unix. The bug has the diff's
r dp@netscape.com (ramiro helped me with it)
# 18688
1999-11-16 06:02:31 +00:00
scc%netscape.com fe1976138d Was using a private name from "nsCOMPtr.h" that happened to go away with this checkin. Should have been using |dont_QueryInterface()|, and now it does. r={danm, hyatt} 1999-11-08 11:43:10 +00:00
dmose%mozilla.org 8535dda53e updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00
cls%seawood.org 14ef08310e Removed unused NECKO ifdefs.
a=leaf
1999-11-02 23:34:03 +00:00
dp%netscape.com 94d79e100e bug#16742 Fixing delete on nsISupports. Thanks for patch from <heikki@citec.fi> Plus using IMPL_ and DECL_ macros and removing operating on refcnt directly. r=dp 1999-10-24 04:41:17 +00:00
danm%netscape.com b80c7dd199 removing (unused) references to nsIWebShell.h. requested by buster@netscape.com, bug 16510, r:me 1999-10-21 22:47:50 +00:00
dveditz%netscape.com 2b60c91417 Fixing 8.3 library name problems, bugs 10355, 10359,10364, 10365, 10372, 11796, 11791. Checking in for cathleen, r=dveditz 1999-10-10 01:32:59 +00:00
beard%netscape.com b547c2ffb0 changed from directly using "MSL DropInRuntime.Lib" to using "NSComponentStartup.o" to enable GC leak detector. r=smfr 1999-10-03 20:46:23 +00:00
sspitzer%netscape.com 483bbf56be removed files: mozilla/xpfe/AppCores/src/nsJSProfileCore.cpp 1999-09-28 08:26:28 +00:00
sspitzer%netscape.com 22aa4c982c removed files: mozilla/xpfe/AppCores/src/nsProfileCore.cpp, mozilla/xpfe/AppCores/src/nsProfileCoreFactory.cpp 1999-09-28 07:31:40 +00:00
sspitzer%netscape.com a0a70c9ca0 fix for #14999. remove the profile appcore 1999-09-28 07:29:25 +00:00
briano%netscape.com 8019ec7ab8 General cleanup. 1999-09-18 03:45:05 +00:00
law%netscape.com ecd06bb76b Remove browser app core 1999-09-14 22:42:49 +00:00
kipp%netscape.com 0082c82680 Use nsAutoString to reduce malloc/free calls 1999-09-13 14:26:56 +00:00
vidur%netscape.com e90af3b58d Fixed memory leaks 1999-09-11 02:03:52 +00:00
alecf%netscape.com 5139b3d6cb remove use of COMMANDLINE_IID 1999-09-10 05:31:00 +00:00
morse%netscape.com bba42751f6 localize wallet xul files 1999-09-09 06:43:15 +00:00
alecf%netscape.com 73970241ba appcores dont need xplib anymore 1999-09-09 06:30:05 +00:00
dougt%netscape.com 6c170a39d6 removing redundant default/ in chrome URI string. 1999-09-04 00:02:35 +00:00
morse%netscape.com c025442b65 convert viewers from html to xul 1999-09-03 04:55:23 +00:00
radha%netscape.com b8b896478f New methods to set and get history state 1999-09-02 21:37:25 +00:00
slamm%netscape.com f42f18844c Add 'select all' 1999-09-01 20:14:02 +00:00
radha%netscape.com c26a3ffd1f Fix warnings 1999-09-01 13:58:31 +00:00
cyeh%netscape.com 26effbde96 Remove IGNORE_MANIFEST=1. It doesn't do anything and it confuses people. 1999-09-01 01:13:14 +00:00
joki%netscape.com 6397eaf9f8 Adding new flag to the security check calls out of the DOM generated JS files. 1999-08-31 14:23:54 +00:00
rjc%netscape.com 17c3dc8037 Get rid of rdf appcore header file. 1999-08-30 09:27:19 +00:00
rjc%netscape.com 3210757253 Also remove nsidomrdfcore.h 1999-08-30 09:09:12 +00:00
rjc%netscape.com d4cfc073f8 Oops, missed these! 1999-08-30 09:07:58 +00:00
rjc%netscape.com bd8b9f0a76 Bye bye, RDF AppCore. 1999-08-30 08:48:52 +00:00
radha%netscape.com 33f6512358 Enable Session history in Go menu 1999-08-28 23:58:29 +00:00
dougt%netscape.com 8c1d20173d Adding protocol icon support. 1999-08-27 21:39:40 +00:00
rjc%netscape.com 13cb1dd360 Use nsIXULSortService 1999-08-27 06:55:10 +00:00
morse%netscape.com a7e6b42fb1 remove warning messages 1999-08-25 21:47:50 +00:00
brendan%mozilla.org bbe959f4d1 Massive spankage to capitalize C++ method and attribute name bindings, per
Architecture Item 6.3 (news://news.mozilla.org/37BA89CF.3823D6F9%40meer.net).
1999-08-25 05:26:25 +00:00
morse%netscape.com 43dab0b80b remove wallet's auto-capturing 1999-08-24 00:48:16 +00:00
ramiro%netscape.com 1d23cab69b Cleanup the jsdom and jsurl linking mess. 1999-08-22 11:05:45 +00:00
mccabe%netscape.com b601095f5d Remove definition of NS_DECL_IOBSERVER and SERVICE and replace uses with xpidl-generated NS_DECL_NSIOBSERVER macro. 1999-08-22 09:18:49 +00:00