Commit Graph

455 Commits

Author SHA1 Message Date
Bobby Holley
26926302d8 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
5333a265b8 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
b6f705b27a 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
Mike Hommey
e9ee5bb8ee Bug 892904 - Remove useless includes of config.mk. r=gps 2013-07-15 18:48:40 +09:00
Ryan VanderMeulen
21a858bf52 Merge m-c to inbound. 2013-07-12 15:51:48 -04:00
Panos Astithas
036c713213 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
bbb754faad 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
248bfd7c21 Merge m-c to fx-team. 2013-07-11 21:58:48 -04:00
Ryan VanderMeulen
76fbd39046 Backed out changeset 817ceeb741b4 (bug 888528) for mochitest-other orange. 2013-07-11 15:21:41 -04:00
Alexandre Poirot
6277b1fd7a Bug 889356 - Add test for app redirects manifest feature. r=fabrice 2013-07-11 14:43:53 -04:00
Alexandre Poirot
7e0ad111aa 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
b9cb14f914 Bug 892100 - Script actor's source loading error reporting broken; r=past 2013-07-11 10:56:23 -07:00
Ed Morley
f505595e27 Merge mozilla-central and fx-team 2013-07-11 10:59:07 +01:00
Panos Astithas
eedfc10df3 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
ec6b3d53b5 Merge m-c to inbound. 2013-07-10 09:45:16 -04:00
Heather Arthur
a4ef8236b0 Bug 891171 - Remove actor id from StyleSheetActor event type name; r=dcamp 2013-07-09 17:34:14 -07:00
Jim Blandy
47c894604b NO BUG: JS Debugger: Fix variable name in reportError. r=gijs 2013-07-10 16:02:28 -07:00
Mihai Sucan
de521374f1 Bug 812618 - Autocomplete at cursor location; r=robcee 2013-06-28 20:56:33 +03:00
Panos Astithas
d69a79ac07 Bug 882538 - Add reload() and navigateTo() methods to BrowserTabActor; r=rcampbell 2013-06-28 10:53:00 +03:00
Panos Astithas
6d54d55c04 Bug 870128 - Pause on exceptions doesn't work after reload; r=rcampbell 2013-07-09 10:57:13 +03:00
Trevor Saunders
ace23958ea bug 886526 - disallow MODULE_NAME and IS_COMPONENT for makefiles in libxul r=bsmedberg 2013-06-25 11:15:21 -04:00
Nick Fitzgerald
f75c5b7822 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
9452f64b5a 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
Ryan VanderMeulen
0604484391 Merge fx-team to inbound. 2013-07-02 09:14:48 -04:00
Brandon Benvie
61cf375a12 Bug 888399 - Fix missing parenthesis in DebuggerClient.Argument.prototype.getArgument. r=dcamp 2013-06-28 11:25:57 -07:00
Mihai Sucan
26a020226a 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
f181dfc10e Bug 828038 - Change profile recording UI and behavior; r=dcamp 2013-06-27 17:31:52 -07:00
Alexandre Poirot
2d6a072fef Bug 887809 - Webconsole actor doesn't unregister correctly consoleProgressListener on stopListeners. r=msucan 2013-07-01 09:47:09 -04:00
Mihnea Dobrescu-Balaur
74f5cef19c 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
e445d2b6ed Bug 886067 - Netmonitor displays request sizes as "0 KB" after opening Console, r=msucan 2013-06-26 23:35:39 +03:00
Heather Arthur
0b1e305abe Bug 731311 - Network monitor should allow to replay and edit requests; r=vporof 2013-06-26 12:09:59 +03:00
Victor Porof
033717a71a Backed out changeset 5414c83bb989 for having the wrong patch author, r=me 2013-06-26 12:06:07 +03:00
Victor Porof
9f04904bde Bug 731311 - Network monitor should allow to replay and edit requests; r=vporof 2013-06-26 09:00:49 +03:00
Mihai Sucan
41e61be582 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
Rob Campbell
902de0f7fb Bug 692829 - Display cached messages from iframes; r=msucan 2013-06-14 11:19:26 -04:00
Nick Fitzgerald
76e78c45d3 Bug 885597 - absolute urls not working with sourcesContent and source maps in file:// urls; r=dcamp 2013-06-23 09:44:29 -07:00
Victor Porof
4ee9d109a8 Merge fx-team to m-c 2013-06-23 19:00:17 +03:00
Mihai Sucan
082e84f0d9 Bug 883649 - Console freezes when accessing a DeadObject's property; r=past 2013-06-21 20:40:00 +03:00
Dave Camp
ffe862febb 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
c3cb821d78 Bug 884396 - Add tests for NodeActor.setNodeValue. r=paul
--HG--
extra : rebase_source : 2e60220c3c3021862267e6300a5c54e7489aef57
2013-06-10 21:18:44 -07:00
Dave Camp
e925ee1a5c 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
c330abb860 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
35509cd8d1 Bug 883908 - Fix padding in Console.jsm's trace method. r=jwalker
--HG--
extra : rebase_source : b98c20106329084d5361dc336a58e98287f27445
2013-06-17 06:52:54 -07:00
Dave Camp
5c8b0c76e6 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
a522abf020 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
ecac128177 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
7a12484988 Bug 883345 - Undefined values aren't properly displayed in the debugger's variables view, r=past 2013-06-21 17:33:57 +03:00
Ryan VanderMeulen
3b1055e7d1 Merge inbound and m-c. 2013-06-20 19:22:19 -04:00
Nick Fitzgerald
da2bce2e44 Bug 757408 - Opening debugger hangs completely on large scripts; r=past 2013-06-20 10:43:30 -07:00
Brian O'Keefe
ed17339221 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