Commit Graph

6 Commits

Author SHA1 Message Date
mccabe%netscape.com
9e602a5bac Make the console service threadsafe. Lock when logging messages, copying out the message array, registering and unregistering listeners, etc. Also proxy each registered listener to ensure that it is called only on the thread that registers it; hopefully this will make it safe to use javascript-implemented listeners even when error messages are logged on other threads.
Also log some partial work towards making nsIConsoleMessage interfaces factory-instantiable.


git-svn-id: svn://10.0.0.236/trunk@65792 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 07:20:24 +00:00
mccabe%netscape.com
8a6fd6ef23 Fix solaris bustage -
Add (nsISupports *) cast to nsSupportsArray::RemoveElement call, to remove overloading ambiguity detected on Solaris


git-svn-id: svn://10.0.0.236/trunk@64703 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-31 06:29:34 +00:00
mccabe%netscape.com
67d914af33 Switch from nsIScriptErrorLogger approach - having the Console Service support multiple factory interfaces for different kinds of console methods - to having a separate script error class. Per discussion with jband.
Add a few #ifndef __nsidefineforthisfile__ guards to .h files.


git-svn-id: svn://10.0.0.236/trunk@64592 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-30 09:40:11 +00:00
mccabe%netscape.com
db6a811671 Not currently built!
Add nsScriptError, and make nsConsoleService implement nsIScriptErrorLogger for logging script errors.  I do it this way to leave open the possibility of e.g. an nsIXMLErrorLogger interface later on.


git-svn-id: svn://10.0.0.236/trunk@64522 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-29 23:47:28 +00:00
mccabe%netscape.com
8db2d22f8c NOT BUILT YET -
Make getMessageArray return an empty array (rather than null) when there are no mmessages, and change console.js to expect this (but check against null anyway.)


git-svn-id: svn://10.0.0.236/trunk@64302 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-28 03:21:45 +00:00
mccabe%netscape.com
b107f3ff5f Initial add of files to support a JavaScript console.
r=jband, r=ben

(though I've changed things slightly since they saw it.)


git-svn-id: svn://10.0.0.236/trunk@64105 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-25 04:23:31 +00:00