Commit Graph

1234 Commits

Author SHA1 Message Date
rickg%netscape.com
194f10b94d landing phase 2 to remove deprecated string calls 2000-03-12 11:10:07 +00:00
rickg%netscape.com
ffe78e83e5 removed calls to deprecated string methods 2000-03-12 09:14:14 +00:00
tbogard%aol.net
6f99d05f74 Fixed ordering of member variable initialization to fix compiler warnings. Back() and Forward() now use the nsIWebNavigation interface instead of the old nsIWebShell one. 2000-03-11 11:58:13 +00:00
norris%netscape.com
060e388a6b Files:
caps/idl/nsICertificatePrincipal.idl
	caps/idl/nsIPrincipal.idl
	caps/src/nsBasePrincipal.cpp
Implement the ability to manipulate multiple capabilties simultaneously.
r=mstoltz@netscape.com

Files:
	caps/src/nsCodebasePrincipal.cpp
Codebase equality should be based upon origin, not full path.
r=mstoltz@netscape.com

Files:
	caps/src/nsScriptSecurityManager.cpp
Change URI checking to deny based upon scheme rather than allow based upon
scheme for greater flexibility.
r=mstoltz@netscape.com

Files:
	dom/public/nsDOMPropEnums.h
	dom/public/nsDOMPropNames.h
	dom/src/base/nsGlobalWindow.cpp
	modules/libpref/src/init/all.js
Fix bug 20469 Seeing JS functions and global variables from arbitrary host
r=vidur@netscape.com

Files:
	dom/src/base/nsJSUtils.cpp
	dom/src/base/nsJSUtils.h
	dom/src/base/nsJSEnvironment.cpp
	dom/tools/JSStubGen.cpp
	layout/base/src/nsDocument.cpp
	layout/html/content/src/nsGenericHTMLElement.cpp
Improve performance by removing NS_WITH_SERVICE call for every DOM access.
Propagate XPCOM failure codes out properly.
r=vidur@netscape.com

Files:
	layout/html/document/src/nsFrameFrame.cpp
Fix 27387 Circumventing Same Origin security policy using setAttribute
r=vidur@netscape.com
2000-03-11 06:32:42 +00:00
norris%netscape.com
9b2edd3c59 Remove mURL from nsWebShell, and GetURL from nsIWebShell.
r=travis
2000-03-11 02:57:39 +00:00
tbogard%aol.net
ca737d3b79 Use the nsIWebNavigation interface for loading an URL where possible instead of the old webShell one. When calling FindChildWithName add the new parameter to state that a child of a different type if ok to return. 2000-03-11 00:59:08 +00:00
tbogard%aol.net
5ecfcfafb4 FindChildWithName now takes a new parameter for if children of different types should be returned. We pass FALSE here to say children of a different type is fine. 2000-03-11 00:57:01 +00:00
mscott%netscape.com
26d9b3ad83 Bug #30553 --> properly get the correct window sizes for new windows created with a window target. This code
was actually written by travis and was reviewed by danm. I'm just checking it in for him.
a=jevering
2000-03-09 08:19:22 +00:00
valeski%netscape.com
e34603f984 r=vidur. a=jevering. We now advertise Netscape like we always did in the AppName field 2000-03-07 15:35:48 +00:00
warren%netscape.com
c0497e31be Bug 21556: Making linux be thread-safe. Making tons of classes implement threadsafe AddRef/Release. a=jar 2000-03-05 21:26:01 +00:00
hyatt%netscape.com
d6796e3c65 XUL RadioGroup element, not used in XUL. r=ben, a=jar 2000-03-02 10:00:09 +00:00
mcafee%netscape.com
d43ab625b4 Fixing unix bustage, should use PR_TRUE. 2000-02-26 02:56:29 +00:00
vidur%netscape.com
53507a2af2 Fix for bug 27935. Found a FMR in nsGlobalWindow::Runtimeout that caused a timing-dependent crash. r=pinkerton,pollmann 2000-02-26 02:28:27 +00:00
pinkerton%netscape.com
4e3e72a47c saari at pink's machine again, another generated file 2000-02-26 02:03:04 +00:00
pinkerton%netscape.com
bd834b5c7f saari checking in on pink's machine, fixing build, adding generated DOM idl file 2000-02-26 01:48:04 +00:00
saari%netscape.com
dbaa79f38a Fix PDT+ 28467, windows jumping z-order to front on load. r=hyatt a=jar 2000-02-26 00:58:12 +00:00
hyatt%netscape.com
5ff8c68587 XUL Property APIs, b=26109, r=ben 2000-02-25 08:37:49 +00:00
mjudge%netscape.com
fc3ebb697e part of checkin to add new getter and setter to nsIDOMSelection. a=jar r=jfrancis 2000-02-25 04:30:31 +00:00
mjudge%netscape.com
0035fc652a r=jfrancis, a=jar Part of checkin including layout/base/src/nsRangeList.cpp to fix caret issues 2000-02-25 04:29:28 +00:00
tbogard%aol.net
58eb012885 Fixed build warnings. 2000-02-25 01:15:37 +00:00
tbogard%aol.net
9ebce62660 Reload now goes through the new nsIWebNavigation interface instead of the old nsIWebShell interface. Work on 13374 and landing of new session history/ uriloading. r=mscott a=jevering 2000-02-24 03:57:32 +00:00
tbogard%aol.net
77d00ef7b2 Changed call to RemoveFocus to first try and set the focus to the parent docshell and then to the tree owner. Work for 13374. r=saari 2000-02-24 02:03:08 +00:00
pollmann%netscape.com
3cd70308f6 Bug 12513: Forgot a file, blast! r=vidur, a=rickg 2000-02-24 00:57:34 +00:00
pollmann%netscape.com
1fc6e17a67 Bug 12513: Fix typo (win build bustage). 2000-02-24 00:24:10 +00:00
pollmann%netscape.com
78ed122243 added files: mozilla/dom/src/html/nsJSNSHTMLOptionCollection.cpp 2000-02-24 00:08:08 +00:00
pollmann%netscape.com
2ed06994e0 Bug 12513: Add OptionCollection interface for Nav DOM compatability. r=vidur a=rickg 2000-02-24 00:08:00 +00:00
pollmann%netscape.com
b86d693799 Bug 12513: Add OptionCollection interface for Nav DOM compatability. r=vidur a=rickg 2000-02-23 22:46:11 +00:00
pollmann%netscape.com
e9cd1dc77d Bug 12513: Add OptionCollection interface for Nav DOM compatability. r=vidur a=rickg 2000-02-23 22:38:00 +00:00
norris%netscape.com
d64387736b Fix 28612 META Refresh allowed in Mail/News
r=mstoltz,a=jar
Fix 28658 File upload vulnerability
r=vidur,a=jar
2000-02-23 22:34:40 +00:00
vidur%netscape.com
e5b64e43ae Fix for bug 27775. Introduced idl keyword 'replaceable' and marked some of the newer window properties with it. Fixes pages like www.oracle.com that have define window-scoped variables with the same name. r=rginda, a=chofmann 2000-02-22 22:08:36 +00:00
vidur%netscape.com
c15943f018 Fix for bug 28283. Crash setting window.innerHeight - fixed typo in setter. r=travis, a=chofmann 2000-02-22 22:03:55 +00:00
norris%netscape.com
641ee73ace Fix 26235.
r=mztoltz, a=jar
2000-02-19 00:47:21 +00:00
alecf%netscape.com
6aead1ab53 fix solaris bustage 2000-02-16 09:37:33 +00:00
rginda%netscape.com
37085fc3fd DOM fixes for bug 20721, r=vidur 2000-02-16 07:13:59 +00:00
joki%netscape.com
c564b74577 Fixes for bug 9544, 9552, 9558, 9561, and 13309. event handler 4x compat. and capture/bubble fixes. r:pollmann 2000-02-16 06:59:07 +00:00
vidur%netscape.com
262b187eee Fix for bug 9844. Added offsetTop/Left/Width/Height/Parent to nsIDOMHTMLElement. It should go on a new interface - to avoid the cost of new interface (a new vtable pointer per content instance), it's temporarily on the standard interface.r=pollmann 2000-02-16 02:25:27 +00:00
wtc%netscape.com
9377345e33 Bugzilla bug #27457: prepare the Windows build system for NSPR library
name change.  Define a new makefile variable LIBPLC.
Modified files:
mozilla/config/config.mak
mozilla/dom/src/build/makefile.win
mozilla/extensions/wallet/cookieviewer/makefile.win
mozilla/extensions/wallet/editor/makefile.win
mozilla/extensions/wallet/signonviewer/makefile.win
mozilla/extensions/wallet/walletpreview/makefile.win
mozilla/mailnews/import/eudora/src/makefile.win
mozilla/mailnews/import/oexpress/makefile.win
mozilla/mailnews/import/outlook/src/makefile.win
mozilla/mailnews/import/src/makefile.win
mozilla/mailnews/import/text/src/makefile.win
mozilla/netwerk/protocol/jar/src/makefile.win
mozilla/profile/Acctidl/makefile.win
mozilla/profile/src/makefile.win
mozilla/xpcom/sample/makefile.win
2000-02-15 14:35:15 +00:00
tbogard%aol.net
3a54bd5f2a Adding the new interfaces for browserElement and iframeElement. r=hyatt 2000-02-15 04:43:29 +00:00
vidur%netscape.com
4a99a365f0 Fix for bug 25269. We can now reenter GlobalWindowImpl::RunTimeout. This may happen if a modal dialog (and hence a subevent loop) is invoked from a timeout - as it does with the Mail Account Wizard window. r=norris 2000-02-15 01:32:19 +00:00
sfraser%netscape.com
3145b88aad Fix a bug where UpdateCommands() would recurse. r=hyatt 2000-02-15 01:08:04 +00:00
tbogard%aol.net
affdb28ed0 Changed to get the document from the nsIWebNavigation interface instead of the nsIDocShell interface. r=hyatt 2000-02-14 06:23:02 +00:00
hyatt%netscape.com
5b1a23bf63 Fix for bug #20764. 2000-02-12 10:08:52 +00:00
hyatt%netscape.com
f4ca859684 Fix for PDT+ bug #20764. 2000-02-12 10:08:23 +00:00
tbogard%aol.net
aabff5b406 When setting focus, it should be valid that if there is not a tree owner, then we don't assert, just don't call the tree owner to set itself visible. r=saari. 2000-02-12 02:47:02 +00:00
tbogard%aol.net
3a04b2a127 When getting a TreeOwner that is null, make sure we don't crash trying to call QueryInterface on it when grabbing the nsIBaseWindow interface. r=saari 2000-02-12 02:39:51 +00:00
saari%netscape.com
238d398b5e continuation of focus landing, PDT+ bugs in my list, look if you care, r=hyatt 2000-02-11 23:42:11 +00:00
vidur%netscape.com
e71513d24e Fix for bug 26694. Flush pending notifications before get frame information. r=nisheeth. 2000-02-11 23:08:57 +00:00
nisheeth%netscape.com
9780d0f51c r=vidur. Partial fix for PDT+ bug 26673. Sync up the content and frame models before returning information from certain getter methods of global window. 2000-02-11 07:14:41 +00:00
norris%netscape.com
5567200a75 Fix 18439 windows.status allows reading links
r=mstoltz
2000-02-11 04:18:39 +00:00
mjudge%netscape.com
af209960ee added new java property. added it to nsDOMPropEnums.h to allow genprops.pl to give correct method name 2000-02-11 01:04:56 +00:00
mjudge%netscape.com
933891bf36 fixes left out last night for range removal bug 2000-02-11 01:00:56 +00:00
hyatt%netscape.com
59c456d260 Fix for bug #25675. More focus memory framework being checked in for the
command dispatcher as well.
2000-02-11 00:59:32 +00:00
hyatt%netscape.com
38b667748a Fix for 20471. Basic focus memory framework being checked in as well. 2000-02-11 00:57:54 +00:00
mjudge%netscape.com
0854f001ce adding remove range for table selection and for completeness. 26460 r=cmanske 2000-02-10 09:17:02 +00:00
mjudge%netscape.com
3eabfb6192 clearing strange M flag on file. must ahve checked in a space instead of tab or something 2000-02-10 08:24:23 +00:00
mjudge%netscape.com
442f9d6103 adding one more prop for selection 2000-02-10 08:21:42 +00:00
tbogard%aol.net
b58c9c3513 Fixed a bug where we weren't actually paying attention to the starting position of the window specified through the features provided in the open call. r=hyatt 2000-02-10 05:03:05 +00:00
norris%netscape.com
2b4b436f5f Fix 25062 Reload vulnerability
25206 Reload vulnerability #2
Implement grant dialogs and persistence for capabilities.
most r=mstoltz, some code from morse w/ r=norris
2000-02-10 04:56:56 +00:00
mjudge%netscape.com
b32999a1de big checkin. fixing problems blocking Cmanske (also a reviewer). Checking in preliminary for gen content.(nothing damaged yet) lots of bug numbers not going to look them up, the tree just opened. 2000-02-10 04:35:51 +00:00
mcafee%netscape.com
59379f7afa Fixing solaris bustage. Tainting problem, need to include .h file instead of using class declaration. r=scc 2000-02-09 05:26:02 +00:00
tbogard%aol.net
a5b78a70df Second part of sizing fix for alerts. WinHasOptions should not evaluate when options is null. This fixes a crash bringing up new windows with no options. SizeToContent now uses the implementation found in the contentViewer. r=mscott 2000-02-08 22:45:45 +00:00
tbogard%aol.net
f3607ae646 Removing forward declare of nsIBrowserWindow as that interface is on it's way out. 2000-02-08 15:13:47 +00:00
tbogard%aol.net
840c8350e1 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
valeski%netscape.com
8c7e268b0a 10465, r=vidur. navigator js now uses the new HTTP service of user agent components. 2000-02-08 06:22:21 +00:00
joki%netscape.com
3480787577 Adding getPreventDefault method to events and fixing its propagation through content. r:hyatt 2000-02-08 02:05:57 +00:00
scc%netscape.com
73802d6f2e Pro5 update 2000-02-07 23:06:04 +00:00
brendan%mozilla.org
caf4d5038c Performance fix to cut down on gratuitous JS GCs (13350, r=shaver). 2000-02-04 09:50:25 +00:00
pp%ludusdesign.com
f318953848 Added generated file directories to .cvsignores, r=mozbot. 2000-02-03 22:17:22 +00:00
Jerry.Kirk%Nexwarecorp.com
e301e6ad43 Taking out hack I added some months ago to get this directory
to compile correctly under Neutrino gcc 2.8.1
2000-02-03 01:37:24 +00:00
vidur%netscape.com
8c1dc35024 Fix for bug 19185. document.clear(), which exists for JS compatibility anyway, now takes a JS context and uses it to find the URL of the calling context. r=pollmann 2000-02-03 00:25:53 +00:00
vidur%netscape.com
21986fbd19 Fix for bug 26236. Unescaping can change the length of the string. We now use the length of the unescaped string. Removed unnecessary null check. r=ftang 2000-02-03 00:11:16 +00:00
brade%netscape.com
49568eb54e fix paths for move to CW5 (bug #25779) 2000-02-02 15:27:53 +00:00
norris%netscape.com
c04c4d51f9 Fix bug #25864 watch() vulnerability
r=vidur,rogerl
2000-02-02 00:22:58 +00:00
jband%netscape.com
cb324c279e add improved support for dumping the JS stack from the native debugger or using the 'debugger' statement in JavaScript. Doc coming to the mozilla site soon. r=mccabe 2000-02-01 08:48:17 +00:00
tbogard%aol.net
edd58ed06c Changed SetProperty() on title to set the title directly on the docshell rather than trying to go to the browserWindow interface. docshell will do the right thing. 2000-01-30 09:18:31 +00:00
michael.lowe%bigfoot.com
f54bbdd480 Putting back a previous change that got clobbered later by someone else 2000-01-28 13:25:27 +00:00
hyatt%netscape.com
b697933700 Getting rid of createPopup on the DOM window. 2000-01-28 03:02:04 +00:00
warren%netscape.com
7f4e51af03 Using generic module. 2000-01-28 02:42:07 +00:00
vidur%netscape.com
b5224baf13 Fixed typo in JS protocol registration so that we now deal with mocha: URLs as well. r=pollmann 2000-01-27 04:04:40 +00:00
hyatt%netscape.com
2347cb1b47 Left out two files. 2000-01-27 00:12:00 +00:00
kmcclusk%netscape.com
eeeb109f4c 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
saari%netscape.com
8e132ddbbe part of previous checkin 2000-01-26 22:48:16 +00:00
saari%netscape.com
c2981cef58 fix for 14346, 21854, 24380 and other caret bugs. r= hyatt, brade for the mac menu stuff. 2000-01-26 22:41:43 +00:00
norris%netscape.com
7ec9655d07 Fix 23227 Document object vulnerability
r=mstoltz
2000-01-26 15:33:57 +00:00
dcone%netscape.com
e31204f271 support for regression testing. r=rods 2000-01-26 15:14:41 +00:00
jband%netscape.com
eef6de8432 Lots of xpconnect bug fixes...
- fix bug 12954 "should throw when setting non-settable props".

- fix bug 13418 "xpconnect needs to be threadsafe".
I think I filled in the cracks. Tests would be nice :)

- fix bug 22802 "[MLK] XPConnect Leaks".

- fix bug 24119 "[MLK] Reminder about cleaning up maps".

- fix bug 24453 "xpconnect needs default security manager".
I also changed the code in DOM and caps to just install a default secman and
not install a secman for each JSContext.

- fix bug 24687 "xpconect should avoid resolve performance suckage".
Added (modified) patch from shaver to create my JSObjects with the
global object as the temporary proto to avoid losing lookup.

- hack for bug 24688 "runtime errors in wrapped JS are not made obvious"
Added a debug only printf. We still need a JSErrorConsole service for this.

- fix bug 16130 "createInstanace and getService can create wrappers around wrappers"
Fixing this one really entailed changing the semantics of nsIXPConnect::wrapNative
and nsIXPConnect::wrapJS to use common code in xpcconvert that deals with existing
wrappers and DOM objects (with their own schemes for wrapping and unwrapping).
So, I changed the callers because the params changed slightly and some callers
were doing more work than necessary given the new semantics.

- Continued in the crusade to replace manaual refcounting with nsCOMPtrs whenever
touching old code.

- Added myself as first contributor to xpconnect files (vanity prevails!)

- Added new copyright header on some files that were missing it.

- Added some API comments.

- Converted nsXPCWrappedJS to implement nsIXPConnectWrappedJS via MI rather than
the old loser scheme of the nsIXPConnectWrappedJSMethods tearoff object.

- added DumpJSStack as globals to xpconnect and DOM dlls to be callable from
debuggers. I have ideas on how to improve and expand this support soon.

r=mccabe
2000-01-26 08:38:10 +00:00
hyatt%netscape.com
0dfb94bf0a 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
8507a58ec3 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
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
michael.lowe%bigfoot.com
6696fa133b Repeating, prioritised timer implementation for Windows and Gtk (bug 22979). author={Win32=michael.lowe@bigfoot.com, Gtk=alex@cendio.se}, r={kmcclusk,rods,sfraser,et al} a=brendan 2000-01-21 21:56:09 +00:00
vidur%netscape.com
29ac9e129a Fix for bug 24215. Misspelled constant. 2000-01-19 01:40:48 +00:00
vidur%netscape.com
41d1ed74ad Cleanup - dealing with people modifying the idl generator and not checking in the generated file or vice-versa. r=pollmann. 2000-01-18 23:41:27 +00:00
vidur%netscape.com
7aa3c33c9c Fix for bug 9378. document.layers now returns undefined, not null. r=pollmann 2000-01-18 23:35:47 +00:00
sfraser%netscape.com
fd5ce2c430 More of fix for 14026; call through to the controller for edit menu items, now that it does the right thing. r=saari 2000-01-18 21:07:54 +00:00
sfraser%netscape.com
d80cd3f7e3 Fix idlc code generation with nsCOMPtr. r=vidur. 2000-01-18 01:01:27 +00:00
morse%netscape.com
788b972e65 fix crash on e-mail startup, jar's suggested fix 2000-01-17 08:50:16 +00:00
danm%netscape.com
325b6a262a let webshell window know when a window has a size specified in JS. bug 15555. r:hyatt 2000-01-15 02:32:31 +00:00
vidur%netscape.com
61085e3a2a Fix for bug 22594. Implemented window.escape() and unescape(). R=ftang 2000-01-15 02:26:10 +00:00
vidur%netscape.com
e296114aae Fix for bug 23020. Relative URLs used in image.src and location.href should be resolved taking into account the base document URL of the calling context. R=pollmann 2000-01-15 02:02:27 +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
pollmann%netscape.com
9cdc409fde Bug 14419 (4 of 4): Make option text read/write (glue implementation) r=harishd 2000-01-15 01:50:18 +00:00
pollmann%netscape.com
ea78836d79 Bug 14419 (3 of 4): Make option text read/write (glue header) r=harishd 2000-01-15 01:49:39 +00:00
pollmann%netscape.com
dfef0be8c9 Bug 14419 (2 of 4): Make option text read/write (idl) r=harishd 2000-01-15 01:45:02 +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
danm%netscape.com
5d32515178 explicitly skip URL load if no URL param was specified in window.open. fixes bug 20757. similar to rev 1.200 (backed out in 1.201), though something went wrong with that one. not sure what. this one tests well. patch submitted by bissiri@eecs.umich.edu. r:me 2000-01-11 22:52:04 +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
hyatt%netscape.com
21a48fa26a adding behavior property to CSS. r=brendan 2000-01-11 03:40:41 +00:00
norris%netscape.com
ddb2282b6c Fix
858  [Feature] JavaScript auto-disable per-domain RFE
    13023 Users must be able to disable Java and JavaScript (for JS in mail)
    21923 Executing functions in "chrome:" protocol - #2.
    r=mstoltz

    (Checked in with red on Mac; Wan-Teh says his changes are localized so
     it shouldn't interfere with his fixing bustage.)
2000-01-08 16:51:54 +00:00
brendan%mozilla.org
cfe8cb3e89 (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
vidur%netscape.com
b845753fb6 Fix for bug 23074. Implemented image.complete. r=pollmann 2000-01-06 23:41:14 +00:00
norris%netscape.com
3133f8c77d Fix assertion failure at startup caused by failure to run genPropNames.pl.
r=mstoltz@netscape.com
2000-01-06 22:04:18 +00:00
alecf%netscape.com
cb1027f2f0 add new method to ensure that tree content is visible: go through all the presentation shells, and call EnsureRowIsVisible for each tree.
also expose a method to get the visible row for a tree - I needed it anyway, figured I might as well expose it from JS.
other half of fix for #12895
r=bryner
2000-01-06 07:54:43 +00:00
vidur%netscape.com
3cc928f744 Fix for bug 23066. Added getter/setter for image.lowsrc for compatibility - the DOM defines image.lowSrc (note the case difference). r=pollmann 2000-01-06 01:15:55 +00:00
norris%netscape.com
4f128298d2 Fix 22909 previousSibling vulnerability
r=mstoltz
2000-01-06 00:59:18 +00:00
norris%netscape.com
cb73c0030f Work on 18860 impossible to call applet's public methods from JavaScript 2000-01-06 00:58:16 +00:00
norris%netscape.com
20420e71d1 Fix error when getting property names only one character long.
r=vidur
2000-01-06 00:55:23 +00:00
vidur%netscape.com
8f980ae60c Temporary fix for bug 22795. The scope link should only be broken in the brutal sharing case. Brendan to provide a better fix later. r,a=brendan 2000-01-06 00:39:18 +00:00
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
norris%netscape.com
5b4b0169aa * Fix 12124 [DOGFOOD] Reading user's preferences
* Implement site-specific security policies (bug 858)
r=mstoltz
* Use Recycle rather than delete[] to clean up Purify logs
r=law
1999-11-16 05:07:31 +00:00
brendan%mozilla.org
caf7e19ede Fix stupid logic bug (13163, r=sfraser@netscape.com). 1999-11-16 01:15:05 +00:00
saari%netscape.com
1cfbe7d9a6 Landing focus changes. R: joki 1999-11-13 05:16:33 +00:00
brendan%mozilla.org
90c5c9c53e XULDOMJS_19991106_BRANCH landing (15146, r=vidur@netscape.com) 1999-11-12 06:08:14 +00:00
vidur%netscape.com
f322a94e4d Fix for bug 13144. Check that private of JSObject is an nsISupports before trying to convert. R=pollmann. 1999-11-12 02:17:12 +00:00
vidur%netscape.com
2684b62f9c Added error string for NS_ERROR_DOM_RETVAL_UNDEFINED since Nisheeth forgot to do it. R=pollmann. 1999-11-12 02:09:32 +00:00
vidur%netscape.com
97fc1836cd Added comment to remind people modifying nsDOMError.h to also add an error string. 1999-11-12 02:08:45 +00:00
dmose%mozilla.org
142ac52eaf updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00
dmose%mozilla.org
5312eacf8c updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:40:37 +00:00
joki%netscape.com
0aa1e7650e Fix for bug 17835. Free JS event listeners when the JS object they're registered on goes away. a:chofmann r:vidur 1999-11-05 23:37:40 +00:00
nisheeth%netscape.com
5283884a87 r=norris,warren,radha. a=chofmann. Fix for 1646. Javascript: urls return NS_ERROR_DOM_RETVAL_UNDEFINED when the javascript: url evaluates into an undefined value. This error is propagated back up to nsWebShell::DoLoadURL(). 1999-11-04 22:02:19 +00:00
joki%netscape.com
0ac3221281 Fixing dom event key set errors. bug 17887, a:chofmann 1999-11-03 20:53:13 +00:00
joki%netscape.com
b4883ed406 Reverting key set to previous version. Fixes 17887. a:chofmann r:brade. 1999-11-03 20:40:35 +00:00
joki%netscape.com
3e6360bc14 added files: mozilla/dom/src/events/nsJSKeyEvent.cpp 1999-11-03 07:12:13 +00:00
joki%netscape.com
1675be15e0 Changes to DOM events to accomodate the new breakdown of events into mouse and key events. This fixes a couple of bug, though the main one is 13406. Involves changes to multiple DOM generated file as well as fixing up usage of DOM event api usage in editor, rdf, and xul. r:vidur 1999-11-03 07:11:45 +00:00
warren%netscape.com
d3b9c9c3cc Structural changes for MakeAbsolute performance. bug#10736 r=valeski 1999-11-03 05:13:44 +00:00
cls%seawood.org
bee74e223b Removed unused NECKO ifdefs.
a=leaf
1999-11-02 23:34:03 +00:00
brendan%mozilla.org
8de8c07a8f Gross workaround for VC5 bug. 1999-10-31 03:04:02 +00:00
brendan%mozilla.org
f81d5969c6 (13163, r=alecf, scc, waterson, others; names available on request)
- Fix most of bug 13163 (see TODO for rest).  This entails adding a version-string argument to nsIScriptContext::EvaluateString and passing it around lots of places in content sinks. 

- Fix leaks and confusion about mSecurityManager and mNameSpaceManager in nsJSEnvironment.cpp.  These still need to move from nsJSContext to nsGlobalWindow or thereabouts, jband and vidur are looking at that. 

- Added comments and expanded tabs in nsJSEnvironment.cpp, esp. to EvaluateString.  Also changed various nsresult vars to be named rv.  Also restored brace/style conformity to nsJSProtocolHandler.cpp. 

- Factored CompileFunction from AddScriptEventListener to pave the way for brutal sharing of compiled JS event handlers via JS_CloneFunctionObject. 

- Lots of nsCOMPtr uses added.  I'm using one for mNameSpaceManager.  Hold mSecurityManager as a service explicitly, on the other hand (awaiting scc's fix to allow comptrs for services), and release in nsJSContext's dtor (fixing a leak).  These two managers should be moved to the window object -- TODO item below. 

- Hold JSRuntimeService along with JSRuntime for live of nsJSEnvironment, fix for shaver. 

- Fix window.setTimeout etc. so the filename and line number of the timeout expr is propagated.  This meant factoring nsJSUtils.cpp code. 

- Fix all content sinks to use the same, and up-to-date JavaScript version parsing (whether for script type or for old language attribute); also fix SplitMimeType clones to strip whitespace. 

- With waterson, fix bug in brutal-sharing version of XUL content sink: script src= should not evaluate the inline content of its tag.
1999-10-31 00:43:30 +00:00
dougt%netscape.com
ace72de20f adding license. 1999-10-29 01:10:00 +00:00
ftang%netscape.com
c725008fc0 fix bustage. 1999-10-28 22:38:58 +00:00
ftang%netscape.com
5af11fe3e9 remove nsIDOMTextRange.h nsIDOMTextRangeList.h. fix bug 12756. r=tague 1999-10-28 22:05:42 +00:00
vidur%netscape.com
8cd8f396d0 Added a version of window.close, which when alled from script that defers actual closure if it is invoked from the script context of the window itself. Fixes bug 15261. R=joki. 1999-10-28 14:12:56 +00:00
warren%netscape.com
f50d3df7c0 Added nsIChannel::GetOriginalURI so that we can get back to the original chrome file (bug#17144). r=rpotts,mscott 1999-10-26 09:16:24 +00:00
norris%netscape.com
16746df73e Fix 11963 Need security controls on javascript: urls
r=mstoltz@netscape.com
1999-10-25 22:23:25 +00:00
dp%netscape.com
c2b8308891 bug#16762 Removing delete on a nsISupports. Thanks to
<heikki@citec.fi> Plus changes to use DECL_ and IMPL_ macros and not
hand define mrefcnt. r=dp
1999-10-23 05:31:46 +00:00
braddr%puremagic.com
a48119b77a Change NS_COMFALSE to NS_ERROR_INVALID_ARG. Every caller of LookupName
tests explicitly for NS_OK currently.
r=sleestack
1999-10-22 08:03:15 +00:00
law%netscape.com
bc2cea9398 Fixes for bug #16789; permit OpenDialog to work on hidden window even if document load has not completed yet; r=norris@netscape.com, r=danm@netscape.com 1999-10-20 01:25:41 +00:00
norris%netscape.com
5c5ce76bfd Work on 1646 [DOGFOOD] javascript: URLs aren't working
r=mstoltz
1999-10-20 00:12:04 +00:00
danm%netscape.com
a448bf8e64 synching with nsWebShellWindow 1.219 (nsIModalWindowSupport removed). r:hyatt@netscape.com 1999-10-18 15:06:38 +00:00
norris%netscape.com
22eea127aa Fix 16166 setTimeout() security problem
r=mstoltz
1999-10-15 21:52:37 +00:00
pepper%netscape.com
f36cb40cc5 Added missing newline at end of file to make the HP compilers happy.
r=mgleeson@netscape.com
1999-10-14 23:28:17 +00:00
hyatt%netscape.com
b2a4325241 Landing re-architected command dispatcher. r=hangas(XUL/JS), saari(C++) 1999-10-14 10:58:25 +00:00
dougt%netscape.com
64aa8f7753 1) Now evaluting the script during channel creation rather than read() to
avoid a deadlock between the UI/JS thread and the FileTransport thread.

2) Isolating the proxy of the eval to a single interface

3) Change makefiles for windows and unix.

Brendan asked me to look at this.  I am not sure if there is a bug number.

reviewer=brendan@meer.net
1999-10-13 07:17:36 +00:00
sfraser%netscape.com
46114d99cf Part of dougt jsurl changes. Fixing the project to use the _debug prefix file when building debug. r=dougt 1999-10-13 07:16:12 +00:00
sfraser%netscape.com
25cec9ae57 First Checked In. 1999-10-13 07:14:12 +00:00
waterson%netscape.com
bdfcaec321 Bug 16105. (Bugsplat 366256.) Ensure that nsISupports::Release() calls dtor only once by 'stabilizing' refcnt to a non-zero value before invoking the dtor. See also news://news.mozilla.org/37FD0F3C.3078AE5C%40netscape.com. r=scc,fur 1999-10-12 03:05:10 +00:00
dveditz%netscape.com
ff01d5e8f4 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
warren%netscape.com
8c71c45537 Fixed AddRef/Release problems to eliminate negative refcounts in Bloaty. 1999-10-08 01:49:06 +00:00
vidur%netscape.com
a7de12ea66 Added window.scrollBy/scrollTo/scrollX/scrollY. Scopus bug 361046. R=troy 1999-10-06 22:07:42 +00:00
norris%netscape.com
93538eafc8 Fix another portion of 13192 Mozilla is "oversecured" and does not allow access to documents in the same domain
Reviewed by vidur.
1999-10-06 21:13:37 +00:00
vidur%netscape.com
0e75a67fe1 Added document.width/document.height to nsIDOMNSDocument. Bug 961. R: troy 1999-10-06 20:33:58 +00:00
warren%netscape.com
8603974025 Added AsyncOpen to nsIChannel for URL dispatching. Added ContentLength to InputStreamChannel. (r=rpotts,valeski) 1999-10-06 08:26:01 +00:00
beard%netscape.com
9eae33066d 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
beard%netscape.com
fd169cb193 changed from directly using "MSL DropInRuntime.Lib" to using "NSLibraryStartup.o" to enable GC leak detector. r=smfr 1999-10-03 20:13:50 +00:00
norris%netscape.com
d21c5596fd Fix the following bugs:
14443 "Same origin" security policy may be circumvented using docu
14820 Fixing up the relationship between nsCodeBasePrincipal and n
14919 Crash in JS MM code
Reviewed by mstoltz, approved by scc.
1999-10-02 03:41:37 +00:00
sfraser%netscape.com
50971ff0c1 Bug 14877 -- lib/xp removal; removed unneeded files. r sdagley, a chofmann. 1999-09-26 00:41:31 +00:00
kipp%netscape.com
5a484d9125 Removed NECKO ifdefs 1999-09-25 20:04:12 +00:00
mscott%netscape.com
c2cda1cb06 Bug #14813 --> we are leaking nsIURIs that went through SetNewDocument and GetPrincipal. I also took out a few
necko #ifdefs' while I was here.
r=vidur, a=leaf.
1999-09-24 21:06:01 +00:00
pinkerton%netscape.com
2d11e55f3c remove references to cmd/macfe in the access paths. 1999-09-24 05:56:50 +00:00
vidur%netscape.com
395670b5ed global object no longer has an unused constructor. 1999-09-23 23:52:09 +00:00
vidur%netscape.com
019876d613 Fixed setTimeout bustage with the introduction of nsIScriptContext::CallFunction 1999-09-23 23:51:38 +00:00
law%netscape.com
3880a61e9a Fixes for context menus; a=hyatt (I just pressed the keys he told me to :-) 1999-09-22 06:27:28 +00:00
joki%netscape.com
4016178c5d Adding support for event.clickCount, obsoleting old dblclick event. 1999-09-22 02:29:33 +00:00
saari%netscape.com
cb935f51c7 Changing broadcaster to use onbroadcast instead of oncommand. Adding the "braodcast" "commandupdate" and "input" events. Changed all xul observes nodes to use onbroadcast instead of onchange. 1999-09-21 23:02:35 +00:00
joki%netscape.com
7304187269 Adding old 4.x capture/release compatibility code, changing dom event VK_* names to DOM_VK_* 1999-09-21 14:18:52 +00:00
vidur%netscape.com
e0f91ac778 Corrected signature of History::Go() 1999-09-21 05:48:45 +00:00
vidur%netscape.com
5099c9e9a9 Corrected prototype for History::Go() 1999-09-21 05:12:46 +00:00
vidur%netscape.com
72600c0c5a Corrected signature of History::Go() 1999-09-21 05:11:55 +00:00
kipp%netscape.com
6669f27710 Eliminate a warning 1999-09-21 02:09:46 +00:00
cmanske%netscape.com
45ee8d45da Adding CollapseToStart and CollapseToEnd methods to selection 1999-09-21 01:27:59 +00:00
hyatt%netscape.com
b332efdf9e Chrome event stuff. 1999-09-21 01:05:01 +00:00
vidur%netscape.com
d0b8911644 Fixed Confirm() to get the nsIPrompt reference from the webshell container and not the webshell itself. Fixed leak in Prompt(). 1999-09-21 00:05:59 +00:00
akkana%netscape.com
119db8b30e Add ToString API to nsIDOMSelection 1999-09-20 21:05:01 +00:00
norris%netscape.com
c99b609910 Add ability to disable JS. Fix 13978 shopping at webvan.com crashes 1999-09-17 20:13:52 +00:00
waterson%netscape.com
bd4a3e6792 Bug 13970. Implement 'commandupdater=' attribute to hook up command udpater nodes to the XUL document's command dispatcher. Make API modifications to support command filtering. Some improvements to XUL document to factor out iteration code. 1999-09-17 04:01:46 +00:00
norris%netscape.com
ab7d233891 Remove obsolete jsurl.cpp and jsurl.h 1999-09-16 23:04:45 +00:00
norris%netscape.com
fa0f574ad3 removed files: mozilla/dom/src/jsurl/jsurl.cpp 1999-09-16 23:03:45 +00:00
pollmann%netscape.com
0e7916f242 Bug 12350: selected read/write 1999-09-16 20:13:41 +00:00
warren%netscape.com
c16371cf34 Changed signature of NewInputStreamChannel to pass load group. 1999-09-16 09:00:12 +00:00
norris%netscape.com
cea0d14277 Remove use of nsCOMPtr to fix Mac bustage. 1999-09-15 23:27:34 +00:00
norris%netscape.com
9acf604770 Add security support for javascript: uris. 1999-09-15 20:58:41 +00:00
waterson%netscape.com
1ec11e3732 Handle case where JS object is really _just_ a JS object, not an XPConnect-wrapped native. 1999-09-15 18:05:09 +00:00
norris%netscape.com
0865f1cdaa Create preferences for security checks.
Add new methods on nsIScriptSecurityManager for capabilities.
Fix 13739 MLK: nsScriptSecurityManager::CreateCodebasePrincipal
Fix 11666 Eliminate plvector (was: [infinite loop] bugs - plvector.c)
1999-09-15 04:05:43 +00:00
ramiro%netscape.com
e8ba593918 Cleanup the neckutil linking thing. 1999-09-15 02:15:11 +00:00
sfraser%netscape.com
158f1044d3 Remove old unused files. 1999-09-14 00:48:12 +00:00
colin%theblakes.com
0b912d4466 Add MOZ_TIMER_LIBS to EXTRA_DSO_LDOPTS 1999-09-12 12:43:19 +00:00
briano%netscape.com
58f4f0bdb7 General cleanup. 1999-09-11 02:35:09 +00:00
briano%netscape.com
1d66d27e7a General cleanup. 1999-09-11 00:59:11 +00:00
kipp%netscape.com
b450a10c7a Manually eliminate a warning for now until vidur fixes the tool 1999-09-10 18:56:17 +00:00
kipp%netscape.com
fc22fc06b6 Updated to use property object to find implementor of nsIPrompt...(bug 5418 sort of) 1999-09-10 18:55:06 +00:00
sfraser%netscape.com
87e4a9d3c8 Fix the autogeneration of nsIDOMSelection so that the header is in synch with the IDL 1999-09-10 00:53:04 +00:00
sfraser%netscape.com
7ea22097c2 Remove the base DLL 1999-09-10 00:52:24 +00:00