Commit Graph
42 Commits
Author SHA1 Message Date
Nicolas Chevobbe 79147a9c34 Bug 1216632 - Make autocompletion work on $_ and $0; r=bgrins.
To make $0 autocompletion work, we need to pass the current
selectedNode actor from the frontend, so we can retrieve the
object reference later.
For $_, we need the webconsole actor reference to be able
to retrieve the last input result.
Since the list of parameters of JsPropertyProviders was
getting a bit long, we transform them in an object so it's
more legible on the consumer side.
Mochitests are added for both helpers to ensure this work
as expected.

Differential Revision: https://phabricator.services.mozilla.com/D11866
2018-11-15 09:49:14 +00:00
tanhengyeow 7375af7aac Bug 1496742 - Allow to display Referrer Policy for a given request. r=Honza
Display Referrer Policy for a given request.

Differential Revision: https://phabricator.services.mozilla.com/D9128
2018-11-05 16:44:17 +00:00
Mark Banner 3d6aaad3f5 Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D8389
2018-10-19 12:55:39 +00:00
Nicolas Chevobbe 6518d8653d Bug 1410820 - top-level await evaluation should be handled as regular evaluation; r=bgrins.
This patch turns the current top-level handling, which relies on
the console API to print the result of the await expression, into
something natively handled by the server.

First, we don't add a .then handler to the generated async iife by
the mapper. We also removes the case we added in the JsTerm to *not*
print the result for top-level await expression.

In order to make the server capable of handling generated async iife
caused by the mapper, we send to evaluateJsAsync the `mapped` object
that `mapExpression` returns. This way, the server can check if an
expression was originally a top-level await.

If it is the case, we get the promise from the async iife and wait for
it to settle. If it resolves, we simply return the result, as a grip,
to the client. If it rejects, we return a special packet indicating to
not print anything to the client. The error will be reported by the
engine as `uncaught exception: …`.

We add several tests and modify the existing one to make sure we handle
top level await correctly in different situation (resolving, rejecting,
when paused in the debugger, when using $_, …).

Differential Revision: https://phabricator.services.mozilla.com/D6903
2018-09-27 15:59:47 +00:00
Jan Odvarko a76c4ed5ff Bug 1487274 - Use nsIHttpChannel.isThirdPartyTrackingResource to identify trackers; r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D5018
2018-09-07 06:55:19 +00:00
Jan Odvarko 063630ce07 Bug 1333994 - The network tab should flag resources on the tracking protection list; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D3862
2018-08-23 07:36:08 +00:00
Narcis Beleuzu afc3a49289 Backed out changeset ab8b409edb0e (bug 1333994) for dt failures on browser_webconsole_check_stubs_network_event. CLOSED TREE 2018-08-22 21:09:55 +03:00
Jan Odvarko 0ece51c8f7 Bug 1333994 - The network tab should flag resources on the tracking protection list; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D3862
2018-08-22 17:03:30 +00:00
Jan Odvarko 7267450673 Bug 1470815 - Make sure the Security panel is visible for HTTP requests in the Console panel; r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D3904
2018-08-22 11:14:45 +00:00
Nicolas Chevobbe 0377bffd06 Bug 1479521 - Refactor JsTerm autocompletion behavior; r=Honza.
We used to rely on different things to both display
the autocompletion text and accept an autocompletion.
This patches introduces new helper functions in order
to make the code more easy to reason about.
We also rollback our decision to show the popup when
there is only 1 item in the autocompletion list in
order to be more consistent with what Chrome does.

Differential Revision: https://phabricator.services.mozilla.com/D2824
2018-08-13 10:07:15 +00:00
Julian Descottes 82711b9a8f Bug 1454696 - Run eslint --fix for prefer-const;r=yulia
MozReview-Commit-ID: F6xUXCgdRE4
2018-06-01 12:36:09 +02:00
David McCurry db5fa9ee74 Bug 859051 - Implement cache panel; r=Honza 2018-05-01 05:42:00 +03:00
Nicolas Chevobbe 0a4a416719 Bug 1449931 - Remove old-event-emitter usage from devtools/shared/webconsole; r=bgrins.
MozReview-Commit-ID: HkbUm0XkeJs
2018-03-29 16:06:24 +02:00
J. Ryan Stinnett 8d1c817851 Bug 1443081 - Apply spacing via eslint --fix for DevTools. r=jdescottes
MozReview-Commit-ID: 2RVNt140Zte
2018-03-12 13:44:41 -05:00
Alexandre Poirot 7b9e7e0b6c Bug 1432803 - Prevent using timeline actor to get DOMContentLoaded and load timings. r=Honza
MozReview-Commit-ID: Kkn36gDFTKN
2018-01-24 08:48:26 -08:00
Jan Odvarko 2414274d71 Bug 1416201 - HTTP request stack trace should be lazy loaded;r=rickychien
MozReview-Commit-ID: 5SWLLcNqORz
2017-11-23 13:35:04 +01:00
Nicolas Chevobbe fee723d060 Bug 1403895 - Remove devtools/shared/client/main.js; r=ochameau.
Remove the main file that we don't need anymore and modify all
the imports to target the specific file they now need.

MozReview-Commit-ID: 2uWjTnAMAU0
2017-09-29 15:24:14 +02:00
ZER0 d78f1c54ef Bug 1381542 - renamed "devtools/shared/event-emitter" in "devtools/shared/old-event-emitter"; r=ochameau
MozReview-Commit-ID: GkF8HcUg5u8
2017-08-11 03:47:30 +02:00
Wes Kocher aa1caed330 Backed out changeset 58f678547059 (bug 1381542) for conflicting with the incoming m-c merge a=backout
MozReview-Commit-ID: 1wKVHbOAUdc
2017-08-10 18:23:14 -07:00
ZER0 c91b128704 Bug 1381542 - renamed "devtools/shared/event-emitter" in "devtools/shared/old-event-emitter"; r=ochameau
MozReview-Commit-ID: GkF8HcUg5u8
2017-08-11 02:43:47 +02:00
Ricky Chien 35e53d8bc6 Bug 1373594 - Fix broken automatic HAR logs exported r=Honza
MozReview-Commit-ID: LEWZsBYk9vT
2017-06-20 17:58:09 +08:00
Luca Greco 8c05041220 Bug 1300590 - Implement support for $0 and inspect bindings in devtools.inspectedWindow.eval. r=aswan,ochameau
MozReview-Commit-ID: CHuc57tfgzo
2017-02-15 14:54:50 +01:00
Sebastian Hengst c6d9ef3e98 Backed out changeset 6bc38f188ef2 (bug 1330099) for devtools failures. r=backout 2017-01-11 23:21:56 +01:00
Tim Nguyen 548b6bdbef Bug 1330099 - Enable object-shorthand eslint rule. r=jryans
MozReview-Commit-ID: 3wA25rfznBv
2017-01-11 21:22:15 +00:00
Jarda Snajdr 57fe972ae3 Bug 1320110 - WebConsoleClient API calls should return promises r=ochameau
MozReview-Commit-ID: 1mmGGUgIwqA
2016-11-24 16:12:25 +01:00
Sebastian Hengst 2e047ceb32 Backed out changeset c816bcb8572d (bug 1320110) for mass devtools failures. r=backout on a CLOSED TREE 2016-11-24 19:23:28 +01:00
Jarda Snajdr 27971664c7 Bug 1320110 - WebConsoleClient API calls should return promises r=ochameau
MozReview-Commit-ID: 1mmGGUgIwqA
2016-11-24 16:12:25 +01:00
Tom Tromey c8e6faf303 Bug 1273941 - replace uses of promise.defer in devtools/shared; r=jryans
MozReview-Commit-ID: 2n3uJ5QKsKL
2016-06-09 09:03:47 -06:00
Jarda Snajdr 014725e771 Bug 1134073 - Part 1: Collect information about request cause and stacktrace in netmonitor backend r=ochameau
MozReview-Commit-ID: BdrqblFyC66
2016-06-01 01:03:00 +02:00
Tim Nguyen 5f2a4cc3ab Backed out 3 changesets (bug 1134073) for browser_net_statistics-01.js failures
Backed out a58743e540f5 (bug 1134073)
Backed out 616b2bbf8fd0 (bug 1134073)
Backed out 691b0e0a6ca1 (bug 1134073)

MozReview-Commit-ID: 3LwVxPXX8SZ
2016-06-04 19:01:29 +02:00
Jarda Snajdr 1195d4388b Bug 1134073 - Part 1: Collect information about request cause and stacktrace in netmonitor backend r=ochameau
MozReview-Commit-ID: CJBVpjvmWgh
2016-06-01 01:03:00 +02:00
Wes Kocher 3a5de9df0e Backed out 3 changesets (bug 1134073) because maybe it broke the clipboard tests
Backed out changeset a43d99734390 (bug 1134073)
Backed out changeset 572ebec612e8 (bug 1134073)
Backed out changeset f12a69ba9122 (bug 1134073)
2016-06-03 14:01:27 -07:00
Jarda Snajdr eafc849594 Bug 1134073 - Part 1: Collect information about request cause and stacktrace in netmonitor backend. r=ochameau 2016-06-03 16:26:35 +02:00
J. Ryan Stinnett 8aa03a5d4d Bug 1263258 - Require space before paren for anonymous functions. r=pbro
MozReview-Commit-ID: 2F0j45Vxn2I
2016-04-27 09:06:15 -05:00
Tom Tromey c0dd7eb1a4 Bug 1255799 - make devtools/client/webconsole eslint-clean; r=odvarko
MozReview-Commit-ID: AnaXFFHlNLM
2016-03-16 08:16:00 +01:00
Morgan Phillips efeaff9e9c Bug 1246215 - Console prevents let re-declaration even when first was an error; r=jryans,shu 2016-02-24 12:16:16 -06:00
Lin Clark 486652076f Bug 1241956 - Use standard license boilerplate in webconsole js files. r=bgrins 2016-01-25 11:19:58 -08:00
Alexandre Poirot 33bb7367a8 bug 1158264 - Flag requests coming from service workers. r=vporof 2016-01-14 05:53:00 -08:00
Brian Grinstead 0e4c66726b Bug 1215117 - Make console input field work inside a worker toolbox;r=ejpbruel 2015-10-26 09:13:11 -07:00
Brian Grinstead bcbc317a74 Bug 1025778 - Save value as global variable in console;r=jlongster 2015-10-23 14:04:29 -07:00
J. Ryan Stinnett 2dada8f365 Bug 912121 - Rewrite require / import to match source tree. rs=devtools
In a following patch, all DevTools moz.build files will use DevToolsModules to
install JS modules at a path that corresponds directly to their source tree
location.  Here we rewrite all require and import calls to match the new
location that these files are installed to.
2015-09-21 12:04:18 -05:00
J. Ryan Stinnett a3073e0420 Bug 912121 - Migrate major DevTools directories. rs=devtools
Move major DevTools files to new directories using the following steps:

hg mv browser/devtools devtools/client
hg mv toolkit/devtools/server devtools/server
hg mv toolkit/devtools devtools/shared

No other changes are made.
2015-09-21 12:02:24 -05:00