danm%netscape.com
e48e2108a7
backing out 1.199, which breaks sooooo many things. oops.
2000-01-05 01:27:40 +00:00
danm%netscape.com
c9b5268447
explicitly skip URL load if no URL param specified in window.open. fixes bug 20757. patch submitted by bissiri@eecs.umich.edu. r:me
2000-01-04 22:29:57 +00:00
vidur%netscape.com
d37c5c5323
Fix for bug 16787. Added navigator.cookieEnabled. Removed warnings. a=don r=waqar
1999-12-22 22:42:06 +00:00
vidur%netscape.com
21a755c03d
Partial fix for bug 22413. Create generic script instances for layer and ilayer elements. a=don r=waqar
1999-12-22 22:32:41 +00:00
vidur%netscape.com
70de582cc6
Fix for bug 18840. Radio button groups are now reflected as collections in a form's namespace. Added nsIDOMHTMLFormControlList interface and special handling for namedItem method that return a jsval. a=dagley r=pollmann
1999-12-22 01:48:47 +00:00
vidur%netscape.com
87722ed65b
added files: mozilla/dom/src/html/nsJSHTMLFormControlList.cpp
1999-12-22 01:48:41 +00:00
vidur%netscape.com
f2a687efd0
Fix for 20955. Fixed FMMs in window.navigator methods. a=dagley r=pollmann
1999-12-22 01:43:48 +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
tbogard%aol.net
1f9c8343b4
DOMWindow List now holds on to a docshell interface rather than a webshell. Tweaked some of the finding of named frames to adhere to spec. GlobalWindowImpl now in many places talks to the webshell object as a docshell rather than the old webshell interfaces. Fixed bug #21970 . r=vidur
1999-12-17 22:25:22 +00:00
syd%netscape.com
9ad549aeef
Change calls to Flash(void) in nsIWidget, nsWindow to GetAttention().
...
r=sdagley a=chofmann. Add support for GetAttention API to nsIDOMWindow.
r=vidur, a=chofmann. To do, make call to WebShell from nsIDOMWindow,
this will come once travis lands some webshell code.
1999-12-17 06:11:45 +00:00
mscott%netscape.com
5f4692f308
fix antother webshell leak. Add a CleanUp method to the global window. When the global window is told it is closing,
...
call the CleanUp method to force it to release all of it's state.
r=vidur, a=chofmann
1999-12-17 00:50:17 +00:00
waterson%netscape.com
b3cf5bd138
Bug 21668. Ugh. Totally botched my patch application. Let's try that again.
1999-12-17 00:26:08 +00:00
waterson%netscape.com
baa1f3847b
Bug 21668. Use Linss-ptr (or nsCOMPtr) to avoid leaking nativeThis. (Unfortunately, I also picked up some whitespace diffs from previously un-regenerated files. Ignore that!) r=shaver
1999-12-17 00:15:51 +00:00
waterson%netscape.com
cef34d8d22
Bug 21668. Use nsCOMPtr (or Linss-ptr) to get the nativeThis. r=shaver
1999-12-17 00:11:03 +00:00
waterson%netscape.com
52fe23a466
Bug 21364. Break parent and proto pointers after compiling shared event handler. shaver mostly did this. r=brendan. Also, fix extra addref of global object, thanks mscott!
1999-12-17 00:08:28 +00:00
mjudge%netscape.com
9cb4dbc615
adding in lineup/down code
1999-12-15 03:59:38 +00:00
danm%netscape.com
92a48a543e
check for null context in CheckTimeout. add another deathgrip in HandleDOMEvent. part of fix for bug 19302. r:hyatt a:chofmann
1999-12-15 02:14:53 +00:00
vidur%netscape.com
76b192e1f0
Backing out because of bogus checkin comment
1999-12-15 00:28:32 +00:00
vidur%netscape.com
7eee3537f3
Fix for bug 21368. navigator.plugins methods were returning an error code if the plugin wasn't found instead of returning null. a=jar R=pollmann.
1999-12-15 00:25:00 +00:00
vidur%netscape.com
b5706304c1
Fix for bug 21368. navigator.plugins methods were returning an error code if the plugin wasn'
1999-12-15 00:24:24 +00:00
vidur%netscape.com
8937c4d924
Fix for bug 10644. In cases where we expect boolean attributes, accept anything that can be converted to a boolean. a=jar r=pollmann.
1999-12-15 00:24:02 +00:00
syd%netscape.com
180c85a27e
Window.idl was not being built if you did this on Linux (Makefile.in
...
rot). r=vidur, a=brendan (related to but does not fix PDT+ 18518).
1999-12-14 23:48:08 +00:00
vidur%netscape.com
657729a882
Fix for bug 9787. Implemented a stub version of document.clear. Fix necessary for getting in 20737. a=chofmann r=pollmann.
1999-12-14 23:32:26 +00:00
danm%netscape.com
fe29f5d7a5
deathgrip chrome event handler in HandleDOMEvent. partial fix for bug 21397. r:hyatt a:chofmann
1999-12-14 02:28:16 +00:00
mjudge%netscape.com
b564a31389
forgot newline at end of file. causing warning
1999-12-14 01:41:27 +00:00
mjudge%netscape.com
61f17031a2
2 files mcluskey reviewed, saari also. fix for keybindings pageup/down. ya
1999-12-14 01:38:17 +00:00
akkana%netscape.com
54aa51a733
Fixing build bustage on Linux
1999-12-14 00:55:37 +00:00
davidm%netscape.com
231d707531
#ifdef out code for controller. Checkin to unblock mjudge and other
r= mjudge
1999-12-13 23:13:33 +00:00
jdunn%netscape.com
0a5450b336
nsCOMPtr is supposed to wrap interface references and not class references
...
r= chofmann@netscape.com danm@netscape.com
# 20193
1999-12-09 21:44:16 +00:00
hyatt%netscape.com
9471c4c457
Modifications to support the command dispatcher. r=saari
1999-12-08 04:58:05 +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
vidur%netscape.com
68f79c1ca8
Fix for bug 17857. Relative URLs for script-based setting of the SRC attribute now does resolution relative to the calling context. R=nisheeth.
1999-12-08 03:52:01 +00:00
brendan%mozilla.org
5135a6dbb2
- 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
danm%netscape.com
1b74898ee7
add deathgrip to JSContext to prevent its untimely destruction. fixes bug 20193. r:brendan@mozilla.org
1999-12-07 02:39:17 +00:00
ftang%netscape.com
5d9824b4bd
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
waterson%netscape.com
3ef74ab388
Bug 20785. Clone function object to define as event handler property. Checked in for brendan@mozilla.org
1999-12-06 08:27:03 +00:00
waterson%netscape.com
ec2655c506
Bug 20786. Use function object, rather than function, as the thing which is executed, ensuring that the correct bindings are used when the function is shared across several contexts. This checkin is really brendan@mozilla.org; I'm just landing the code.
1999-12-05 07:29:25 +00:00
warren%netscape.com
6af4802e75
Added buffer size parameters to NewChannel. Allows for optimization of amount of image data consumed. Bug #20408
1999-12-04 10:01:32 +00:00
vidur%netscape.com
0877a41ffc
Changed IID to remove conflict in IIDs.h
1999-12-04 01:29:54 +00:00
tbogard%aol.net
d6a8d07409
Fixing the mail bustage. Was accidently using the internal object instead of the one passed in.
1999-12-03 21:41:35 +00:00
tbogard%aol.net
79ca59ef74
Fixed the merge.
1999-12-03 21:13:50 +00:00
tbogard%aol.net
9e5b4606dd
Flipped the if. Was not continuing on success.
1999-12-03 21:11:30 +00:00
waterson%netscape.com
139d5cb27f
Use more mundane macros to fix backwards logic.
1999-12-03 21:08:56 +00:00
tbogard%aol.net
c50e9ef9dd
Fixed a bug where the first time to try and get the location object was failing.
1999-12-03 19:41:22 +00:00
tbogard%aol.net
f35fd0e55a
Fixes to get rid of relying on webShell implementing nsIScriptContextOwner. It now implements nsIScriptGlobalObjectOwner or can do a GetInterface to nsIScriptGlobalObject.
1999-12-03 19:02:31 +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
brendan%mozilla.org
87f3583410
Mac doesn't have ctype.h, or something.
1999-12-03 06:11:54 +00:00
brendan%mozilla.org
d44c35ee1b
- 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
drapeau%eng.sun.com
b12618788f
Fix for bug 18899 ('Make "--enable-oji" as part of the default Mozilla
...
Build'). Modified files that conditionally compiled in support for
OJI, replacing with code that looks for OJI as an XPCOM service, and
failing gracefully if the OJI XPCOM service is not found. The four
files modified by this fix are the only active ones; other modules
that conditionally compile in support for OJI appear to be dead code.
r=drapeau@eng.sun.com . Fix contributed by Jayashri Visvanathan
(visvan@eng.sun.com ).
1999-12-03 00:26:09 +00:00
norris%netscape.com
98862d9415
Fix bug 18636 java script security problem when accessing my.netscape.com/
...
r=mstoltz
1999-12-02 23:56:25 +00:00
tbogard%aol.net
daa4db77af
Adding nsIScriptGlobalObjectOwner.idl to the manifest.
1999-12-02 06:18:32 +00:00
tbogard%aol.net
b0ab7a8495
added files: mozilla/dom/public/nsIScriptGlobalObjectOwner.idl
1999-12-02 06:17:29 +00:00
tbogard%aol.net
ec4119174e
Connecting nsIScriptGlobalObjectOwner.idl to be compiled. Not yet used anywhere.
1999-12-02 06:16:08 +00:00
tbogard%aol.net
5a3a6e0145
Adding new interface for people who can supply an nsIScriptGlobalObject. Not yet connected to the build.
1999-12-02 06:14:49 +00:00
danm%netscape.com
d25d8e587a
adding 'close' xul event handler. part of bug 13695. r:hyatt@netscape.com
1999-12-01 22:35:33 +00:00
norris%netscape.com
d89d87531c
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
shaver%netscape.com
1a0aec6215
fix windows filename case damage, r=brade,sdagley
1999-12-01 16:11:07 +00:00
rods%netscape.com
f1a98d55ca
removing all lower case version of this file
1999-12-01 16:10:00 +00:00
rods%netscape.com
4749742331
bug 2253
1999-12-01 15:54:59 +00:00
buster%netscape.com
fd31de07ac
bug 2253. added controller to html text input
...
r = kmcclusk, norris
1999-12-01 15:11:33 +00:00
hyatt%netscape.com
074f2362e4
More skin goodness. r=gimpy
1999-11-30 09:29:43 +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
tbogard%aol.net
b79a4cc957
Removing now that the interface definition can be found in the IDL file.
1999-11-30 04:09:16 +00:00
tbogard%aol.net
887609d285
Would help if I removed nsIScriptContextOwner.h instead of nsIScriptObjectOwner.h
1999-11-30 00:28:40 +00:00
dougt%netscape.com
c031e1c389
Fix for 18078. R=mstoltz,warren
1999-11-30 00:14:55 +00:00
tbogard%aol.net
b000f75888
Connected nsIScriptContextOwner.idl to the build and removed the copy of the header file.
1999-11-29 23:05:19 +00:00
tbogard%aol.net
d5726554c8
added files: mozilla/dom/public/nsIScriptContextOwner.idl
1999-11-29 23:04:23 +00:00
tbogard%aol.net
6a6f6507e7
Added nsIScriptContextOwner.idl to the list of IDL files to build. Removed nsIScriptContextOwner.h from the list of export header files.
1999-11-29 22:51:42 +00:00
tbogard%aol.net
dbb4e575f9
Added nsIScriptContextOwner.idl to the list of IDL files to build. Removed nsIScriptContextOwner.h from the list of export header files. r=vidur.
1999-11-29 22:44:28 +00:00
tbogard%aol.net
c54b48ce20
Changed the UUID back to the one that nsIScriptContextOwner had in the .h file.
1999-11-29 22:42:07 +00:00
tbogard%aol.net
ec36c2ff05
First cut at putting nsIScriptContextOwner interface into idl. (Not connected to the build yet.)
1999-11-29 22:32:58 +00:00
warren%netscape.com
96ec037ac6
Eliminated the libs build pass.
1999-11-28 03:05:01 +00:00
tbogard%aol.net
fc861622a5
GlobalWindow now uses the nsIBaseWindow interface off the WebShell object to do positioning stuff instead of nsIWebShell interface. Also changed the call to GetTitle to properly free the returned pointer as an internal const pointer is no longer returned.
1999-11-27 02:35:54 +00:00
shaver%netscape.com
89607b7de2
Repair missing newlines at end of files, and remove lines of the form
...
#endif foo
both of which upset HPUX's compiler quite a bit.
Patch from Andrew Taylor <Andrew.Taylor@cal.montage.ca>.
1999-11-26 05:33:35 +00:00
norris%netscape.com
51842ef45e
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
vidur%netscape.com
bc1a90e967
Reverted to NPL 1.1. R=joki
1999-11-25 00:02:47 +00:00
vidur%netscape.com
58c1de27fd
Fix for 19650 and 15133. Added nsIJSEventListener. JS event listener now stores script context and script object owner for late compilation of script event handlers.
1999-11-25 00:01:30 +00:00
vidur%netscape.com
3ddb8869ea
Added window.scroll(). Changed signature of RegisterScriptEventListener. R=joki
1999-11-25 00:00:21 +00:00
vidur%netscape.com
6d1174d90c
Added nsIJSEventListener.h
1999-11-24 23:59:08 +00:00
vidur%netscape.com
0d4cde9c06
Added window.scroll(). Reverted back to NPL 1.1. R=joki
1999-11-24 23:58:43 +00:00
vidur%netscape.com
bf26e759a4
Added window.scroll()
1999-11-24 23:56:39 +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
tbogard%aol.net
515e4d9739
Changed the concept of the webshell holding an mChromeElement object to it holding a nsIChromeEventHandler interface. This is more generic and allows other apps to plugin nicer into the API.r=hyatt
1999-11-23 09:57:47 +00:00
joki%netscape.com
fc077ea0be
Add initialization of named Event class to script. part of fix for 9544. r:vidur
1999-11-22 19:39:55 +00:00
norris%netscape.com
24778bda71
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
buster%netscape.com
93551f1751
moved content-specific data and methods from nsIWebShell to appropriate content viewer interface
...
no bug number, this is for webshell redesign work
r=rickg, travis
1999-11-19 07:35:27 +00:00
buster%netscape.com
2de668fe3c
DOM extension for exposing text areas to XUL
...
bug 12022, r=rickg and vidur
1999-11-19 07:19:10 +00:00
buster%netscape.com
57e8b347a2
DOM extension for exposing text areas to XUL
...
bug 12022, r=rickg
1999-11-19 07:18:25 +00:00
waterson%netscape.com
833fe7f7f8
Fix event listener leak in idlc-generated code. r=joki
1999-11-18 20:39:58 +00:00
waterson%netscape.com
c38842c56b
Fix event listener leak in code that is generated to take functions. Fix to generate new NPL 1.1 license. r=joki
1999-11-18 20:38:43 +00:00
warren%netscape.com
59ef7fadbf
Removed the nsICapabilities interface in favor of nsIInterfaceRequestor.
1999-11-18 07:36:41 +00:00
tbogard%aol.net
ceb3dd7a02
Fixed some calls on GetTopLevelWindow() and the assumptions made on the return value with the returned pointer. Added some pseudo code that is commented out for prompter stuff. r=seth (This is a cleanup of the checkin made in an effort to get the tree open.)
1999-11-18 00:33:54 +00:00
sspitzer%netscape.com
e69a8417da
fix for #19117 , crash. add check before dereferencing null.
1999-11-17 23:05:29 +00:00
warren%netscape.com
34ecf73507
Necko API and implementation changes for retargeting. Needed for URL dispatching. r=mscott
1999-11-17 08:14:52 +00:00
tbogard%aol.net
81036c2c73
Seems Solaris' compiler is on the bus... Doesn't understand what nsISupports to grab or something. Anway adding the .get() fixes it.
1999-11-17 03:55:35 +00:00
tbogard%aol.net
81513dba8a
errr, Unix compilers don't understand the right value nsCOMPtr thing... Fixed.
1999-11-17 01:54:04 +00:00
tbogard%aol.net
50ecb4c11b
Changed nsPIDOMWindow::GetPrivateParent() to be implemented using it's own mChromeElement so it doesn't have to rely on the nsIWebShell::GetParentEvenIfChrome(). r=hyatt.
1999-11-17 00:43:19 +00:00
vidur%netscape.com
d34feb8eb0
Fix for bug 18301. window.closed returns true for all windows that have been closed. R=troy. Fix for typo from earlier checkin from Travis that caused window.open to fail. R=travis
1999-11-16 23:11:50 +00:00
tbogard%aol.net
3caae87616
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
e871be6de2
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