gecko/toolkit/devtools/server
Bobby Holley ea7a9f6f09 Bug 889911 - Switch xpcshell to SystemErrorReporter with a little bit of special magic. r=mrbkap
XPCShell currently overrides all the JSContexts whose creation it observes with
its own custom error reporter. This reporter does all sorts of funny things which
we try to clean up for the most part. But there are a few very intricate
considerations at play.

First, the old xpcshell error reporter does some mumbo jumbo with the
XPCCallContext stack to try to guess whether some other code might catch the
exception. This is total garbage on a number of fronts, particularly because
the XPCCallContext stack has no concept of saved frame chains, nested event
loops, sandbox boundaries, origin boundaries, or any of the myriad of
complicating factors that determine whether or not an exception will propagate.

So we get rid of it. But this causes some crazy debugger tests to fail, because
they rely on an exception from uriloader/exthandler/nsHandlerService.js getting
squelched, and can't handle anybody reporting errors to the console service at
the particular moment of contortionism when the exception is raised. So we need
to introduce an explicit mechanism to disable the error reporter here to keep
things running.

Second, we have to be very careful about tracking the return status of the
xpcshell binary. The old code would simply flag an error code if the error
handler was invoked, and we can mostly continue to do that. But there are some
complications. See the comments.

Finally, we don't anything analogous in XPCShellEnvironment, because I have
patches in bug 889714 to remove its state-dependence on the error reporter.
I'll switch it to SystemErrorReporter in that bug.
2013-07-16 20:38:44 -07:00
..
actors Merge m-c to fx-team. 2013-07-11 21:58:48 -04:00
tests Bug 889911 - Switch xpcshell to SystemErrorReporter with a little bit of special magic. r=mrbkap 2013-07-16 20:38:44 -07:00
dbg-server.jsm
main.js Fix step-in in chrome debugging by loading the promise library in the debugger server's compartment (Bug 834756); r=dtownsend,vporof 2013-07-12 22:13:21 +03:00
Makefile.in bug 886526 - disallow MODULE_NAME and IS_COMPONENT for makefiles in libxul r=bsmedberg 2013-06-25 11:15:21 -04:00
moz.build Bug 875934 - Move LIBRARY_NAME to moz.build (batch #1); r=mshal 2013-06-17 15:21:01 -04:00
nsIJSInspector.idl
nsJSInspector.cpp Bug 868130 - Include nsCxPusher.h everywhere we need it, and stop including it from nsContentUtils.h. r=gabor 2013-05-22 10:05:26 -06:00
nsJSInspector.h
protocol.js Bug 866306 - Add a library to make devtools protocol interaction a bit easier. r=jimb 2013-06-06 12:29:27 -07:00
transport.js Bug 878958: Implement ChildDebuggerTransport, a debug protocol transport for communicating with content child processes via process message managers. r=dcamp 2013-07-12 11:08:28 -07:00