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

232 Коммитов

Автор SHA1 Сообщение Дата
kmcclusk%netscape.com dc23d344e1 Added support for widgetless viewmanager. Changed code pattern that assumed the root view
always has a nsIWidget instance to call viewmanager to get widget instance. b=22069; r=rods@netscape.com
2000-01-26 23:04:40 +00:00
norris%netscape.com e7f484f030 Fix 23227 Document object vulnerability
r=mstoltz
2000-01-26 15:33:57 +00:00
hyatt%netscape.com 0f660e6f84 Fixes for bugs: 18193, 13971, 23440, 18444, 21462, 21818, 22619, 23498, 24081, and 21972. r=just about everybody. 2000-01-25 06:35:27 +00:00
norris%netscape.com e753eaa792 Files:
caps/include/nsScriptSecurityManager.h
	caps/src/nsScriptSecurityManager.cpp
	modules/libpref/src/init/all.js
Fix
24565 nsScriptSecurityManager::GetSecurityLevel() is a performance
24567 re-write DOM glue security checks to avoid NS_WITH_SERVICE()
r=waterson

Files:
	dom/src/base/nsGlobalWindow.cpp
	layout/base/src/nsDocument.cpp
	layout/base/src/nsGenericElement.cpp
Fix assertion failure for 1-character property names.


Files:
	dom/src/jsurl/nsJSProtocolHandler.cpp
	webshell/src/nsDocLoader.cpp
Fix 18653 "javascript:" URLs cross windows problems (probably regressi
r=nisheeth

Files:
	layout/events/src/nsEventListenerManager.cpp
Fix
23834 document.onkeypress allows sniffing keystrokes
24152 document.onclick shows links from other window
r=joki
2000-01-23 04:23:14 +00:00
waterson%netscape.com 903106b34d 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
saari%netscape.com 57ea4c7120 Fix for 24124, focus crasher. Review and a whole lot of help from danm. 2000-01-19 03:03:09 +00:00
bryner%uiuc.edu 694f805643 Make trees capable of scrolling by full pages with the mouse wheel.
General cleanup and additions to mousewheel debugging code (which is
#ifdef DEBUG_scroll).  r=hyatt.
2000-01-16 05:30:49 +00:00
brade%netscape.com a6d671ec0e remove function DispatchKeyPressEvent (not used); initialize the modifier keys in the event structure; r=joki 2000-01-15 17:21:20 +00:00
brade%netscape.com 659cea5806 remove function DispatchKeyPressEvent (not used) r=joki 2000-01-15 17:21:10 +00:00
brade%netscape.com 58b13d6b47 initialize to nsnull; r=vidur 2000-01-13 14:53:51 +00:00
hyatt%netscape.com a55bebe0dd Cleaning up makefile 2000-01-13 11:50:18 +00:00
hyatt%netscape.com 6be1991e03 Fix for 18444 2000-01-13 11:49:18 +00:00
hyatt%netscape.com fd051365d5 Fix for 18444 2000-01-13 11:43:54 +00:00
sspitzer%netscape.com 8056debbe2 fixing my old enemy "the classic .get() with nsCOMPtr on solaris (and linux, if you have --enable-pedantic) turned on" bustage. 2000-01-12 07:39:00 +00:00
beard%netscape.com 5e6eab69d6 fixes nsIAtom leaks, bug=15906, r=sspitzer 2000-01-12 06:54:58 +00:00
bryner%uiuc.edu 51a564df40 This fixes mousewheel scrolling inside trees. I also cleaned up the code
in nsEventStateManager, moving the view/frame locating code to its own
function - this will be helpful for implementing page up/down scrolling
for trees.  r=alecf.
2000-01-11 22:30:22 +00:00
cls%seawood.org 9f3b874745 Removed redundant XPDIST from the build. Changed existing references to DIST.
Replaced all uses of $(DIST)/include with $(PUBLIC) except those looking for NSPR headers.
Removed extra instances of $(DIST)/include or $(PUBLIC) from INCLUDES as it's already there.
Override OS_LIBS when setting host variables for cross-compiling.
2000-01-11 05:13:01 +00:00
brendan%mozilla.org bd00bf675b (bug 22795, r=vidur@netscape.com)
- Add "aShared" flag to nsIScriptContext::CompileEventHandler, telling it to clear the compiled event handler's scope chain if true, in order to
  (a) avoid entraining garbage
      (i.e., a shared compile-time-only parent object); and
  (b) cause later BindCompiledEventHandler calls to ensure that the event handler has the particular scope chain needed for the binding
      (to the target object that's receiving the event).
- Use :: consistently (and all over the place) before calls to JS_ functions in nsJSEnvironment.cpp.
- Eliminate tabs and barbarians-at-the-gate-of-Rome style, in favor of when-in-Rome style (hail Waterson Maximus!)
2000-01-08 00:24:24 +00:00
bryner%uiuc.edu 0da2c2a772 Implementing the mousewheel preferences. A new option has been added, "Use system default", which follows the OS
default (on Windows at least) for the number of lines to scroll.  I also changes the default actions for the modifier
keys slightly.
2000-01-06 06:22:00 +00:00
sspitzer%netscape.com a18efcb68c whoops. when I checked in that warnings fix I accidentally checked in some
changes from bryner for the mouse wheel prefs.  backing my last check in out,
but still fixing the warning.
1999-12-28 23:02:38 +00:00
sspitzer%netscape.com 42e7039924 fix warnings 1999-12-28 19:41:57 +00:00
mcafee%netscape.com 08c3c0f243 Fixing null pointer reference, patch submitted by jst@citec.fr. r=mcafee 1999-12-28 08:29:11 +00:00
vidur%netscape.com beab8d39b8 Removing warnings. a=don r=waqar 1999-12-22 22:47:15 +00:00
hyatt%netscape.com 563b3b509d Patch that gets tabbing back into text fields. r=waterson 1999-12-21 19:35:13 +00:00
pinkerton%netscape.com c1fd7f7797 remove hand-rolled QI and using scc's macros. Also removing static IID's where necessary. r=hyatt,scc a=sdagley. 1999-12-21 19:28:15 +00:00
saari%netscape.com 8c44b2b1a8 Simple check for null fix for a crasher that some people are seeing quite a lot today. It is reflected in bug 22024. R= waterson, a= chofmann 1999-12-21 01:12:40 +00:00
hyatt%netscape.com 64b7811b77 Fixes for 3 PDT+ bugs (THAT'S RIGHT). Bugs 21895, 21832, and 21610. r=mjudge,
a=i'm leaving now for vacation, and i can't find anyone around, but i'm assuming that you
actually want them before January 3rd, so I'm checking them in.
1999-12-18 04:02:28 +00:00
saari%netscape.com 97e523f919 Fix for PDT+ bugs 21602 and 21648. r=joki 1999-12-15 22:04:43 +00:00
danm%netscape.com 167d27faa2 deathgrip the event listener manager in HandleEvent. partial fix for bug 21397. r:hyatt a:chofmann 1999-12-14 02:29:34 +00:00
hyatt%netscape.com 139c75574b Fix for the crash in SendFocusBlur. 1999-12-11 05:42:18 +00:00
mjudge%netscape.com 2cf7e901e3 massive changes a=jar.hoffman, r=akkana 1999-12-11 00:02:08 +00:00
saari%netscape.com b2d7a2eb2c Helping to fix 19114 by making a strong ref weak. Potential fix for 19268 by making scrollbars not steal focus. r=hyatt a=chofmann 1999-12-10 00:51:50 +00:00
joki%netscape.com 25f4443f89 fix 21337, set modifier keys for generated events. r:brendan a:brendan 1999-12-09 21:02:09 +00:00
hyatt%netscape.com 3a797b3681 Fix for caret problems in Ender text fields. r=saari 1999-12-08 20:55:45 +00:00
hyatt%netscape.com c759f0ad08 Fix for the two crashers: 21180 and 21163, r=saari 1999-12-08 20:18:16 +00:00
hyatt%netscape.com c13bdf625e Fix for 21139, r=waterson 1999-12-08 09:01:06 +00:00
hyatt%netscape.com 3f9fa43e97 Massive rewrite of the focus/blur architecture. Things should behave better
now. r=saari
1999-12-08 04:54:29 +00:00
brendan%mozilla.org c939085774 - Rename "FunctionObject" or shorthands to "EventHandler" to make nsIScriptContext more scripting-language-neutral.
- Allow nsIScriptContext::BindEventHandler to take a null void* handler argument, to remove the binding by nullifying it (for hyatt's XML-driven-key-mapping work). 
- Try to GetCompiledEventHandler (and if we don't, and compile it, Put too) for the load event and other non-deferred (XUL window-level) event listeners. 
- Improve doc comments and whitespace.
1999-12-07 22:14:17 +00:00
ftang%netscape.com 723af171cd add query composition event which get current curosor position. add timer base IME x y location query for gtk. r=erik. fix bug 17916 20550 1999-12-07 01:29:00 +00:00
kin%netscape.com 866303bdee Fix for bug #20524: [DOGFOOD] No Caret in Win32 Composer window
Made some modifications to nsEventStateManager::PreHandleEvent().
We now prevent setting of gLastFocusedContent when handling
NS_ACTIVATE. We now allow DOM focus notifications even when
we can't send a blur notification in NS_GOTFOCUS.
r=saari@netscape.com
1999-12-06 21:48:36 +00:00
joki%netscape.com c68fbf669c Fix for bug 20663, mem leak in event listeners. r:beard 1999-12-04 23:40:05 +00:00
joki%netscape.com 805ffa761a Fix bug 14836, keep disabled control from responding to events. r:pollmann@netscape.com 1999-12-04 02:22:21 +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
brendan%mozilla.org f3855ca6b0 - Doc-comments for nsIScriptContext methods I added or modified.
- Rename nsIScriptContext::CompileFunction to CompileEventHandler, and add BindCompiledEventHandler, to reflect function name restrictions and help brutal sharing.
- Add adjunct-interface nsIScriptEventHandlerOwner to nsIScriptObjectOwner.h; this interface is queried for by nsEventListenerManger.cpp to test and fill the XUL prototype event handler "cache".
- PR_LOG JS warnings, and look in javascript.options.{strict,werror} for those options.  
- Implement nsIScriptEventHandlerOwner in nsXULElement, keeping pointers to pre-compiled event handlers in nsXULPrototypeAttribute.
 
(bug 13218, r=waterson@netscape.com,vidur@netscape.com)
1999-12-03 03:40:30 +00:00
saari%netscape.com 1779ba2e0e Adding new event state manager API GetFocusedEventTarget which returns the current frame in focus
regardless of the ESM instance you call it from. Editor guys need this for bug 20225
1999-12-02 20:55:17 +00:00
danm%netscape.com a9db94dfe7 adding 'close' xul event handler. part of bug 13695. r:hyatt@netscape.com 1999-12-01 22:35:33 +00:00
norris%netscape.com afb1f1e1e3 Fix
20257 unable to edit existing images in editor due to JS error
	19933 JavaScript "window.location" core dumps in CAPS
Back out previous changes for enforcing security on listeners and go with a
simple restriction of access to the method for adding listeners.
r=mstoltz
1999-12-01 22:23:22 +00:00
saari%netscape.com c882a84687 Fix for bug 18983, multiple carets showing up. R: shaver, a long time ago. I've since verified personally on linux and other platforms. 1999-12-01 09:09:46 +00:00
bryner%uiuc.edu c271bcbc40 Making a minor optimization for mousewheel scrolling on trees. r=shaver. 1999-11-30 22:00:28 +00:00
waterson%netscape.com 04b634654b Fix incorrect use of dont_QueryInterface() in PreHandleEvent() that was leaking. 1999-11-29 22:47:39 +00:00