Commit Graph

14 Commits

Author SHA1 Message Date
mjudge%netscape.com
2cfb602409 making string conversions explicit. scc 2000-04-26 01:13:55 +00:00
norris%netscape.com
4eb52aa84b Fix
32088 Circumventing Same Origin security policy using javascript: URLs
        32040 about: can't be link
Also remove deprecated method
r=mstoltz
2000-03-24 22:15:37 +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
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
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
akkana%netscape.com
c91c3d0b61 Remove selection methods from nsIDocument -- they were bogus anyway, real selection lives in the pres shell 1999-06-22 21:47:45 +00:00
vidur%netscape.com
fd093d0d82 Enabled asynchronous loading of SCRIPT SRC=, STYLE SRC= and LINK elements for style sheets. Changed nsIScriptContext to not be dependent on JavaScript. 1998-12-15 06:10:59 +00:00
joki%netscape.com
02fa10b9f2 Adding new js window methods/props, moving js string evaluation to UC strings. 1998-10-01 22:23:48 +00:00
rpotts%netscape.com
5392f533d7 Changes to allow building when STRICT is defined. 1998-08-29 06:30:49 +00:00
joki%netscape.com
c316d58438 Adding url and lineno to script evaluation 1998-08-12 23:37:50 +00:00
vidur%netscape.com
5dcf11251a Better JSConsole return values 1998-08-07 23:19:20 +00:00
vidur
c0e592da07 Separated scripting global object responsibilities from the WebWidget. Added better masking of JS-specific structures in generic interfaces. Creation of a scripting global object interface. 1998-06-23 18:43:49 +00:00
dario
688f20f36c fixing the js console 1998-04-14 19:04:25 +00:00
kipp
098bef52b4 moved to pub 1998-04-13 20:24:54 +00:00