Commit Graph

98 Commits

Author SHA1 Message Date
Bobby Holley
eb2e873e6c 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
Ryan VanderMeulen
e168631670 Backed out 10 changesets (bug 889911, bug 889714) due to merge conflicts on a CLOSED TREE.
Backed out changeset 1a1a536121da (bug 889714)
Backed out changeset 2cd88ef9eea5 (bug 889714)
Backed out changeset 489723887eca (bug 889714)
Backed out changeset 2b38ce22cf97 (bug 889714)
Backed out changeset 87b0a59a5d51 (bug 889714)
Backed out changeset 13229bab2ba4 (bug 889714)
Backed out changeset 234bd6d1fbed (bug 889714)
Backed out changeset 4f5f62284917 (bug 889714)
Backed out changeset 18537c4436c7 (bug 889911)
Backed out changeset ca7060ab1588 (bug 889911)
2013-07-16 21:16:31 -04:00
Bobby Holley
c1403cacc4 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 18:04:49 -07:00
Ryan VanderMeulen
d03fb91d02 Merge m-c to inbound. 2013-07-12 15:51:48 -04:00
Panos Astithas
e9012c3b84 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
Jim Blandy
bc3bf7126b Bug 878958: Implement ChildDebuggerTransport, a debug protocol transport for communicating with content child processes via process message managers. r=dcamp
Transport classes (or prototypes?) should have a label that the requester telemetry stuff can cite, instead of that freaky check we have now.
2013-07-12 11:08:28 -07:00
Ryan VanderMeulen
784b4970b1 Merge m-c to fx-team. 2013-07-11 21:58:48 -04:00
Ryan VanderMeulen
7155e76d44 Backed out changeset 817ceeb741b4 (bug 888528) for mochitest-other orange. 2013-07-11 15:21:41 -04:00
Alexandre Poirot
1e1a4993e4 Bug 889356 - The redirects functionality appears to fail via pushing the app to the device. r=fabrice 2013-07-11 14:43:38 -04:00
Nick Fitzgerald
f7ca2063a8 Bug 892100 - Script actor's source loading error reporting broken; r=past 2013-07-11 10:56:23 -07:00
Ed Morley
16bf648135 Merge mozilla-central and fx-team 2013-07-11 10:59:07 +01:00
Panos Astithas
698b809ffe Rename Promise to promise to avoid collisions with the forthcoming DOM Promise implementation (bug 885318); r=jwalker 2013-07-11 10:12:20 +03:00
Ryan VanderMeulen
d806e1e244 Merge m-c to inbound. 2013-07-10 09:45:16 -04:00
Heather Arthur
ea9a6f1485 Bug 891171 - Remove actor id from StyleSheetActor event type name; r=dcamp 2013-07-09 17:34:14 -07:00
Jim Blandy
325ce1a84b NO BUG: JS Debugger: Fix variable name in reportError. r=gijs 2013-07-10 16:02:28 -07:00
Mihai Sucan
366007a69e Bug 812618 - Autocomplete at cursor location; r=robcee 2013-06-28 20:56:33 +03:00
Panos Astithas
2897446860 Bug 882538 - Add reload() and navigateTo() methods to BrowserTabActor; r=rcampbell 2013-06-28 10:53:00 +03:00
Panos Astithas
5694a6f1ae Bug 870128 - Pause on exceptions doesn't work after reload; r=rcampbell 2013-07-09 10:57:13 +03:00
Trevor Saunders
4fda35a773 bug 886526 - disallow MODULE_NAME and IS_COMPONENT for makefiles in libxul r=bsmedberg 2013-06-25 11:15:21 -04:00
Nick Fitzgerald
eebeb27495 Bug 889526 - Improve reportError so that it will add a stack trace if one is available; r=past 2013-07-03 14:10:52 -07:00
Dave Camp
3611785138 Bug 888528 - Add node deletion/insertion to the walker actor. r=jwalker
--HG--
extra : rebase_source : 8d5b9991371a7dcdceff2cd302e7bc76c8f90ea0
2013-06-17 06:52:53 -07:00
Alexandre Poirot
03d9153976 Bug 887809 - Webconsole actor doesn't unregister correctly consoleProgressListener on stopListeners. r=msucan 2013-07-01 09:47:09 -04:00
Mihai Sucan
514b9c384c Bug 886137 - Can't inspect objects in the webconsole, while debugging and inspecting; r=past 2013-06-28 19:16:18 +03:00
Anton Kovalyov
1706e0cec0 Bug 828038 - Change profile recording UI and behavior; r=dcamp 2013-06-27 17:31:52 -07:00
Mihnea Dobrescu-Balaur
ed37951190 Bug 889102 - Use a dynamic port in test_dbgglobal.js so that the xpcshell tests can be run concurrently. r=past 2013-07-09 09:09:16 -04:00
Victor Porof
68abdee420 Bug 886067 - Netmonitor displays request sizes as "0 KB" after opening Console, r=msucan 2013-06-26 23:35:39 +03:00
Heather Arthur
6f1595f89b Bug 731311 - Network monitor should allow to replay and edit requests; r=vporof 2013-06-26 12:09:59 +03:00
Victor Porof
d89482657a Backed out changeset 5414c83bb989 for having the wrong patch author, r=me 2013-06-26 12:06:07 +03:00
Victor Porof
f0d1376f2f Bug 731311 - Network monitor should allow to replay and edit requests; r=vporof 2013-06-26 09:00:49 +03:00
Mihai Sucan
b8dd40d720 Bug 885751 - dbg-server.jsm compartment is leaking 500,000-char JavaScript warning strings like a sieve; r=dcamp 2013-06-23 14:35:22 +03:00
Mihai Sucan
a8f991cdf2 Bug 883649 - Console freezes when accessing a DeadObject's property; r=past 2013-06-21 20:40:00 +03:00
Dave Camp
021e1a421d Bug 884431 - Consistently treat iframe documents as children in the inspector actor. r=paul
--HG--
extra : rebase_source : b364251c71393eed94a39ba5ace7225525bc5a00
2013-06-17 06:52:52 -07:00
Dave Camp
adccb547fb Bug 884396 - Add tests for NodeActor.setNodeValue. r=paul
--HG--
extra : rebase_source : 2e60220c3c3021862267e6300a5c54e7489aef57
2013-06-10 21:18:44 -07:00
Dave Camp
9ac0cdec46 Bug 884390 - Add attribute modification to the inspector actor. r=paul
--HG--
extra : rebase_source : ecd39da79ad5ad7d1bc365b135758970561341a0
2013-06-10 21:18:44 -07:00
Dave Camp
4118321418 Bug 884388 - Add inner/outerHTML requests to the walker actor. r=paul
--HG--
extra : rebase_source : 7fe93afb46ce07bf17c9bf503056d345506f17b6
2013-06-10 21:18:44 -07:00
Dave Camp
6a1c8cf0e7 Bug 877316 - Add pseudo-class lock functionality to the inspector actor. r=harth
--HG--
extra : rebase_source : a24d4026ebc893d64f25ac65e535e5da23adfbc3
2013-06-10 21:18:41 -07:00
Dave Camp
54db0275a3 Bug 883601 - Downgrade exceptions to warning when accessing rawNode on an inspector front. r=paul
--HG--
extra : rebase_source : bd170c4a9d32a6ffb4031e9c09658d2892dbb445
2013-06-10 21:18:43 -07:00
Dave Camp
8c158aea06 Bug 883600 - Add an isLocal method to the walker. r=paul
--HG--
extra : rebase_source : 62589f32bbf32569b000f5b1557788402cf979e7
2013-06-10 21:18:43 -07:00
Victor Porof
19edc00bbb Bug 883345 - Undefined values aren't properly displayed in the debugger's variables view, r=past 2013-06-21 17:33:57 +03:00
Nick Fitzgerald
4be3b2b473 Bug 757408 - Opening debugger hangs completely on large scripts; r=past 2013-06-20 10:43:30 -07:00
Brian O'Keefe
11bcc1cd9e Bug 875934 - Move LIBRARY_NAME to moz.build (batch #1); r=mshal
--HG--
extra : rebase_source : 385d3fd65475ffc18ee44ae088753649470e214b
2013-06-17 15:21:01 -04:00
Alexandre Poirot
52dc995210 Bug 732553 - NS_BASE_STREAM_CLOSED in dbg-transport.js. r=past 2013-06-19 20:57:35 -04:00
Dave Camp
d7a7f0ad5c Bug 883604 - Implement NodeFront.isDocumentElement. r=paul 2013-06-17 06:52:51 -07:00
Dave Camp
d738064908 Bug 883603 - Don't reply to getWalker request until DOM content is loaded. r=paul 2013-06-17 06:52:51 -07:00
Dave Camp
83c01076cf Bug 883602 - Import all parents when using frontForRawNode(). r=jwalker 2013-06-17 06:52:51 -07:00
Dave Camp
14c6c1419f Bug 883599 - Fix the inspector actor's nextSibling and previousSibling requests. r=paul 2013-06-10 21:18:18 -07:00
Dave Camp
7ab9abf825 Bug 881120 - Allow clients to specify nodes that shouldn't be released. r=jwalker 2013-06-11 20:27:23 -07:00
Dave Camp
d886ea39e6 Bug 878443 - Let the inspector actor expire actors for nodes that are no longer connected to the tree. r=jwalker
--HG--
extra : rebase_source : 0f6e871eebfd817b70d8229127b6cd285950ea86
2013-06-07 11:06:39 -07:00
Dave Camp
dce80b050a Bug 878614 - Handle subdocument loads/unloads in the inspector actor. r=jwalker
--HG--
extra : rebase_source : 08d33498922f3a8b46faa5b1b11c6d8d25de9f17
2013-06-07 11:02:32 -07:00
Dave Camp
53aacec867 Bug 878442 - Add tree change mutations to the inspector actor. r=jwalker
--HG--
extra : rebase_source : 54401ddc820a0636f2980b8051207c4fa9968113
2013-06-06 16:22:01 -07:00