tbogard%aol.net
93c732fa6d
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
...
git-svn-id: svn://10.0.0.236/trunk@60161 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-08 22:45:45 +00:00
tbogard%aol.net
ecd7636ff3
Removing forward declare of nsIBrowserWindow as that interface is on it's way out.
...
git-svn-id: svn://10.0.0.236/trunk@60137 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-08 15:13:47 +00:00
tbogard%aol.net
c416db8338
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
...
git-svn-id: svn://10.0.0.236/trunk@60129 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-08 13:40:10 +00:00
valeski%netscape.com
ee08f8fed8
10465, r=vidur. navigator js now uses the new HTTP service of user agent components.
...
git-svn-id: svn://10.0.0.236/trunk@60093 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-08 06:22:21 +00:00
joki%netscape.com
bcf5da502c
Adding getPreventDefault method to events and fixing its propagation through content. r:hyatt
...
git-svn-id: svn://10.0.0.236/trunk@60037 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-08 02:05:57 +00:00
scc%netscape.com
dcee2e659d
Pro5 update
...
git-svn-id: svn://10.0.0.236/trunk@60002 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-07 23:06:04 +00:00
brendan%mozilla.org
983bf048da
Performance fix to cut down on gratuitous JS GCs (13350, r=shaver).
...
git-svn-id: svn://10.0.0.236/trunk@59765 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-04 09:50:25 +00:00
Jerry.Kirk%Nexwarecorp.com
79d75980ce
Taking out hack I added some months ago to get this directory
...
to compile correctly under Neutrino gcc 2.8.1
git-svn-id: svn://10.0.0.236/trunk@59601 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-03 01:37:24 +00:00
vidur%netscape.com
d55b639f5b
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
...
git-svn-id: svn://10.0.0.236/trunk@59576 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-03 00:25:53 +00:00
vidur%netscape.com
96827d8003
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
...
git-svn-id: svn://10.0.0.236/trunk@59575 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-03 00:11:16 +00:00
brade%netscape.com
eeab04ed71
fix paths for move to CW5 (bug #25779 )
...
git-svn-id: svn://10.0.0.236/trunk@59524 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 15:27:53 +00:00
norris%netscape.com
6fc5a6608b
Fix bug #25864 watch() vulnerability
...
r=vidur,rogerl
git-svn-id: svn://10.0.0.236/trunk@59445 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 00:22:58 +00:00
jband%netscape.com
f0476f0cfd
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
...
git-svn-id: svn://10.0.0.236/trunk@59387 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-01 08:48:17 +00:00
tbogard%aol.net
e860f79cd6
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.
...
git-svn-id: svn://10.0.0.236/trunk@59222 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-30 09:18:31 +00:00
michael.lowe%bigfoot.com
edc46c536d
Putting back a previous change that got clobbered later by someone else
...
git-svn-id: svn://10.0.0.236/trunk@59064 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-28 13:25:27 +00:00
hyatt%netscape.com
d7d3d3496c
Getting rid of createPopup on the DOM window.
...
git-svn-id: svn://10.0.0.236/trunk@59004 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-28 03:02:04 +00:00
warren%netscape.com
37ebe73b24
Using generic module.
...
git-svn-id: svn://10.0.0.236/trunk@59002 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-28 02:42:07 +00:00
vidur%netscape.com
c204a495ce
Fixed typo in JS protocol registration so that we now deal with mocha: URLs as well. r=pollmann
...
git-svn-id: svn://10.0.0.236/trunk@58883 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-27 04:04:40 +00:00
hyatt%netscape.com
68c8f48463
Left out two files.
...
git-svn-id: svn://10.0.0.236/trunk@58850 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-27 00:12:00 +00:00
kmcclusk%netscape.com
5f7ac3effb
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
git-svn-id: svn://10.0.0.236/trunk@58838 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-26 23:04:40 +00:00
saari%netscape.com
6899f63cca
part of previous checkin
...
git-svn-id: svn://10.0.0.236/trunk@58830 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-26 22:48:16 +00:00
saari%netscape.com
b1e2ee3879
fix for 14346, 21854, 24380 and other caret bugs. r= hyatt, brade for the mac menu stuff.
...
git-svn-id: svn://10.0.0.236/trunk@58827 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-26 22:41:43 +00:00
norris%netscape.com
0dd1063455
Fix 23227 Document object vulnerability
...
r=mstoltz
git-svn-id: svn://10.0.0.236/trunk@58789 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-26 15:33:57 +00:00
dcone%netscape.com
78a3fc3824
support for regression testing. r=rods
...
git-svn-id: svn://10.0.0.236/trunk@58785 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-26 15:14:41 +00:00
jband%netscape.com
7ac1267323
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
git-svn-id: svn://10.0.0.236/trunk@58762 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-26 08:38:10 +00:00
hyatt%netscape.com
d58696d355
Fixes for bugs: 18193, 13971, 23440, 18444, 21462, 21818, 22619, 23498, 24081, and 21972. r=just about everybody.
...
git-svn-id: svn://10.0.0.236/trunk@58568 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-25 06:35:27 +00:00
norris%netscape.com
e4653042f2
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
git-svn-id: svn://10.0.0.236/trunk@58429 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-23 04:23:14 +00:00
waterson%netscape.com
e7fe781360
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
...
git-svn-id: svn://10.0.0.236/trunk@58414 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-22 22:00:35 +00:00
michael.lowe%bigfoot.com
6856aa06f0
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
...
git-svn-id: svn://10.0.0.236/trunk@58358 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-21 21:56:09 +00:00
vidur%netscape.com
dd29a022b8
Fix for bug 24215. Misspelled constant.
...
git-svn-id: svn://10.0.0.236/trunk@58197 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-19 01:40:48 +00:00
vidur%netscape.com
45421d6c99
Cleanup - dealing with people modifying the idl generator and not checking in the generated file or vice-versa. r=pollmann.
...
git-svn-id: svn://10.0.0.236/trunk@58158 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-18 23:41:27 +00:00
vidur%netscape.com
4755c2cf84
Fix for bug 9378. document.layers now returns undefined, not null. r=pollmann
...
git-svn-id: svn://10.0.0.236/trunk@58156 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-18 23:35:47 +00:00
sfraser%netscape.com
6545f17cc6
More of fix for 14026; call through to the controller for edit menu items, now that it does the right thing. r=saari
...
git-svn-id: svn://10.0.0.236/trunk@58121 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-18 21:07:54 +00:00
sfraser%netscape.com
ad79113dc9
Fix idlc code generation with nsCOMPtr. r=vidur.
...
git-svn-id: svn://10.0.0.236/trunk@58059 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-18 01:01:27 +00:00
morse%netscape.com
a045eda783
fix crash on e-mail startup, jar's suggested fix
...
git-svn-id: svn://10.0.0.236/trunk@58003 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-17 08:50:16 +00:00
danm%netscape.com
b5f4f6fc77
let webshell window know when a window has a size specified in JS. bug 15555. r:hyatt
...
git-svn-id: svn://10.0.0.236/trunk@57893 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-15 02:32:31 +00:00
vidur%netscape.com
99dee8a876
Fix for bug 22594. Implemented window.escape() and unescape(). R=ftang
...
git-svn-id: svn://10.0.0.236/trunk@57891 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-15 02:26:10 +00:00
vidur%netscape.com
0a0f3496b6
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
...
git-svn-id: svn://10.0.0.236/trunk@57888 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-15 02:02:27 +00:00
tao%netscape.com
ecd98e520f
bug 23400: Need to expose api GetDocumentCharacterSet() to JS. r=vidur.
...
git-svn-id: svn://10.0.0.236/trunk@57887 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-15 02:01:05 +00:00
pollmann%netscape.com
125bacfd6e
Bug 14419 (4 of 4): Make option text read/write (glue implementation) r=harishd
...
git-svn-id: svn://10.0.0.236/trunk@57882 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-15 01:50:18 +00:00
pollmann%netscape.com
dcee6c63b0
Bug 14419 (3 of 4): Make option text read/write (glue header) r=harishd
...
git-svn-id: svn://10.0.0.236/trunk@57881 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-15 01:49:39 +00:00
pollmann%netscape.com
4683451aa5
Bug 14419 (2 of 4): Make option text read/write (idl) r=harishd
...
git-svn-id: svn://10.0.0.236/trunk@57876 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-15 01:45:02 +00:00
alecf%netscape.com
abb8b4f61a
expose the form controls in a XUL document in the "controls" DOM attribute
...
this will make prefs and wizards much faster
r=hyatt
git-svn-id: svn://10.0.0.236/trunk@57613 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-13 02:59:08 +00:00
danm%netscape.com
47a3ab06fe
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
...
git-svn-id: svn://10.0.0.236/trunk@57454 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-11 22:52:04 +00:00
pp%ludusdesign.com
b5787cf895
Converting usage of ::GetIID() to NS_GET_IID().
...
Bug #20232 , r=scc@netscape.com
git-svn-id: svn://10.0.0.236/trunk@57423 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-11 20:49:15 +00:00
hyatt%netscape.com
2c9879296b
adding behavior property to CSS. r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@57347 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-11 03:40:41 +00:00
norris%netscape.com
02d0724222
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.)
git-svn-id: svn://10.0.0.236/trunk@57214 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-08 16:51:54 +00:00
brendan%mozilla.org
bc0baef1a1
(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!)
git-svn-id: svn://10.0.0.236/trunk@57127 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-08 00:24:24 +00:00
vidur%netscape.com
c28ff08497
Fix for bug 23074. Implemented image.complete. r=pollmann
...
git-svn-id: svn://10.0.0.236/trunk@57036 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-06 23:41:14 +00:00
norris%netscape.com
beca515cbb
Fix assertion failure at startup caused by failure to run genPropNames.pl.
...
r=mstoltz@netscape.com
git-svn-id: svn://10.0.0.236/trunk@57009 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-06 22:04:18 +00:00