Commit Graph

40 Commits

Author SHA1 Message Date
av%netscape.com
aac4b2fb97 Fixing null-pointer access causing variuos crashes, bug #30372, r=jst 2000-03-23 21:42:23 +00:00
norris%netscape.com
b4309b139a Fix
28387 nBookmarking javascript: URLs is dangerous
32343 Components object appears to be accessible via javascript: u
31707 Crash when logging into hotoffice.com
r=mstoltz
2000-03-21 23:16:55 +00:00
norris%netscape.com
9b2edd3c59 Remove mURL from nsWebShell, and GetURL from nsIWebShell.
r=travis
2000-03-11 02:57:39 +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
norris%netscape.com
c04c4d51f9 Fix bug #25864 watch() vulnerability
r=vidur,rogerl
2000-02-02 00:22:58 +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
norris%netscape.com
7ec9655d07 Fix 23227 Document object vulnerability
r=mstoltz
2000-01-26 15:33:57 +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
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
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
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
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
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
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
dougt%netscape.com
c031e1c389 Fix for 18078. R=mstoltz,warren 1999-11-30 00:14:55 +00:00
warren%netscape.com
59ef7fadbf Removed the nsICapabilities interface in favor of nsIInterfaceRequestor. 1999-11-18 07:36:41 +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
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
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
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
warren%netscape.com
d3b9c9c3cc Structural changes for MakeAbsolute performance. bug#10736 r=valeski 1999-11-03 05:13:44 +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
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
norris%netscape.com
5c5ce76bfd Work on 1646 [DOGFOOD] javascript: URLs aren't working
r=mstoltz
1999-10-20 00:12:04 +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
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
norris%netscape.com
c99b609910 Add ability to disable JS. Fix 13978 shopping at webvan.com crashes 1999-09-17 20:13:52 +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
warren%netscape.com
40ed9d6ad2 Removed NS_BASE_STREAM_EOF in favor of returning a count of 0 from Read to indicate EOF. Renamed GetLength to Available. Fixed a number of places where AppendElement's broken error code wasn't checked. 1999-09-09 22:05:05 +00:00
brendan%mozilla.org
345de56bbf Use NS_GET_IID instead of longer nsCOMTypeInfo template call. 1999-09-06 23:01:40 +00:00
brendan%mozilla.org
139654cb38 Don't ignore Eval error under GetLength; do control error from EvaluateString (and reuse rv!). 1999-08-27 10:17:03 +00:00
rpotts%netscape.com
0085d83ab0 M9 BRANCH landing... 1999-08-26 22:45:55 +00:00
vidur%netscape.com
43c7cb9748 Changed method signature of EvaluateScript to return nsresult. Added nsJSThreadContextStack pushing and popping around script evaluation. 1999-08-19 20:36:31 +00:00
warren%netscape.com
d944d70a84 Fix for bug 7682: StringBundle can't load URLs from imap thread. 1999-08-13 00:43:48 +00:00
gagan%netscape.com
e37d05ffaa Necko only changes for the setting relative path. 1999-07-22 21:17:11 +00:00
warren%netscape.com
4ef7533a6e Added start of javascript: protocol handler for necko. 1999-07-12 23:46:40 +00:00