Commit Graph
49 Commits
Author SHA1 Message Date
Alexandre Poirot 383a8cddbe Bug 1566421 - Ensure that actions.updateRequest resolves only once the action is processed. r=nchevobbe
The code callng action.updateRequest, in FirefoxDataProvider, expects the updateRequest action
to be processed once the returned promise is resolved. Otherwise it may spawn
duplicated requestData requests.

Differential Revision: https://phabricator.services.mozilla.com/D39153
2019-07-29 09:18:14 +00:00
Nicolas Chevobbe cae8319c82 Bug 1567832 - Retrieve fission pref and use it in console classes. r=yulia.
We retrieve the preference in the hudservice, where
WebConsoles and BrowserConsoles are created from.
If the pref is set to true, we assign a different
title to the Browser Console window so it will be
easier to spot.
The preference is then passes to the BrowserConsole,
WebConsole, WebConsoleUI and finally WebConsoleConnectionProxy
instances.
Later, we'll check this pref to connect to different
targets and listen to new ones.

Depends on D39646

Differential Revision: https://phabricator.services.mozilla.com/D39647
2019-07-29 08:44:08 +00:00
Alexandre Poirot 725d84c1e0 Bug 1566421 - Make WebConsoleUI.destroy synchronous. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D38460
2019-07-25 06:43:52 +00:00
Nicolas Chevobbe d34a531e46 Bug 1568439 - Move webconsole-l10n to utils/l10n. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D39159
2019-07-24 11:11:34 +00:00
Panos Astithas f3ad8a7772 Bug 1233891 - Use DOM promises instead of deprecated sync promises in devtools/. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D37138
2019-07-09 17:26:32 +00:00
Victor Porof b7732ae890 Bug 1561435 - Format devtools/client/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35884
2019-07-05 11:24:38 +02:00
Nicolas Chevobbe 72483b4363 Bug 1541355 - Don't display DevTools internal frames in Netmonitor stacktrace. r=Honza.
Before sending back the stacktrace, we remove all the
devtools internal frames using removeFramesAboveDebuggerEval.
A test (that was failing without the fix) is added to ensure
this works as expected.
The test revealed some issues in webconsole-connection-proxy
(mostly trying to access webConsoleUI while closing the toolbox),
which we fix in the patch as well.

Differential Revision: https://phabricator.services.mozilla.com/D31249
2019-05-22 08:57:36 +00:00
Mihai Alexandru Michis dc99affe70 Backed out changeset 36ada63cb9fb (bug 1541355) for failing browser_webconsole_network_messages_stacktrace_console_initiated_request.js CLOSED TREE 2019-05-20 18:33:53 +03:00
Nicolas Chevobbe 332bc42130 Bug 1541355 - Don't display DevTools internal frames in Netmonitor stacktrace. r=Honza.
Before sending back the stacktrace, we remove all the
devtools internal frames using removeFramesAboveDebuggerEval.
A test (that was failing without the fix) is added to ensure
this works as expected.
The test revealed some issues in webconsole-connection-proxy
(mostly trying to access webConsoleUI while closing the toolbox),
which we fix in the patch as well.

Differential Revision: https://phabricator.services.mozilla.com/D31249
2019-05-20 12:33:06 +00:00
Brian Hackett 1ac9b8ac92 Bug 1530133 Part 2 - Allow clearing console messages by their logpoint ID, r=nchevobbe. 2019-02-23 16:19:17 -10:00
yulia 8a3d8fec1f Bug 1485664 - adjust webconsole-connection-proxy to listen to webconsole front events, and fix r=ochameau
tests; r=ochameau

this migrates the proxy to the new webconsole front events. This resulted in a number of
test failures once the migration was finished, and those were fixed

Differential Revision: https://phabricator.services.mozilla.com/D18834
2019-02-19 15:57:52 +00:00
Brian Hackett bb523f3582 Bug 1526832 Part 2 - Use onConsoleAPICall when sending log point messages to the client, r=lsmyth. 2019-02-10 14:52:20 -10:00
Brian Hackett 05573a312a Bug 1526562 - Specify location correctly in replaying log point messages, r=lsmyth. 2019-02-08 14:43:26 -10:00
Nicolas Chevobbe 15c4b1d487 Bug 1527834 - Rename webconsole-frame.js to webconsole-ui.js; r=bgrins.
We take this as an opportunity to migrate the
file to an ES6 class and remove unused code.

Differential Revision: https://phabricator.services.mozilla.com/D19781
2019-02-15 08:16:37 +00:00
Nicolas Chevobbe 8f4e7fdfd0 Bug 1526247 - Rename webconsole-output-wrapper; r=bgrins.
This file used to only manage the output, but
this is not true anymore, and the name could
be misleading.
We take this as an opportunity to cleanup
some property names and CSS classes.

Differential Revision: https://phabricator.services.mozilla.com/D19135
2019-02-11 06:42:28 +00:00
Brian Hackett 6e21e319a7 Bug 1513118 Part 3 - Devtools server/client support for virtual console logs, r=lsmyth. 2018-12-29 08:24:31 -10:00
yulia 927e0ac6a2 Bug 1518777 - ensure that netmonitor and console tests wait for initialization and open requests tofinish before shutting down; r=nchevobbe
Several of our tests relied on the timing of the shutdown of the webconsole. I updated one
test that fired off an extra rdp request so that it is waiting until it resolves before shutting down.
For the rest, I started tracking the async behavior of initialization of the web-console-proxy, and
waiting for initialization to finish before destroying.

Differential Revision: https://phabricator.services.mozilla.com/D16177
2019-01-24 11:47:39 +00:00
yulia 4ae4aff294 Bug 1519107 - use promise pattern for getCachedMessage rather than callbacks; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D16195
2019-01-21 13:47:03 +00:00
Alexandre Poirot 83de0caa25 Bug 1513565 - Get rid of all target.form usages. r=yulia,nchevobbe
Depends on D14278

Differential Revision: https://phabricator.services.mozilla.com/D14279
2018-12-18 23:35:57 +00:00
Alexandre Poirot cf703aefe9 Bug 1513565 - Always use Target's WebConsoleClient instead of trying to instantiate it manually. r=yulia,nchevobbe
This will help getting rid of another usage of Target.form.
And also helps instantiating only one WebConsole client.
Once WebConsole becomes a front, we can replace all the target.activeTab
to target.getFront("console").

Differential Revision: https://phabricator.services.mozilla.com/D14278
2018-12-18 23:35:55 +00:00
Nicolas Chevobbe ddc5e2de6d Bug 1492827 - Remove unused listeners and handlers from webconsole-connection-proxy; r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D7073
2018-09-27 11:46:26 +00:00
Alexandre Poirot ee08ebcd6e Bug 1466691 - Replace callback style in favor of promise for TabClient methods. r=jryans
MozReview-Commit-ID: 6Is4O8KQhgY
2018-06-05 01:50:40 -07:00
J. Ryan Stinnett c6fd8c950e Bug 1172897 - Rename TabActor to BrowsingContextTargetActor. r=ochameau
MozReview-Commit-ID: LPTEx2h4F1o
2018-05-25 18:20:28 -05:00
Brian Grinstead 75d3793526 Bug 1425552 - Move clearOutput and clearPrivateMessages from the jsterm and onto the WebConsoleFrame;r=nchevobbe
MozReview-Commit-ID: 9lJW7qt64DT
2018-06-02 16:44:08 -07: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
Jan Odvarko 5618abeaa4 Bug 1460841 - Console clean up: rename internal modules; r=nchevobbe
MozReview-Commit-ID: 7rDoXy8ROAe
2018-05-24 18:11:14 +02:00
Brian Grinstead d229e08fa3 Bug 1454012 - Part 2 - Remove NEW_CONSOLE_OUTPUT_ENABLED since it's now always true;r=nchevobbe
MozReview-Commit-ID: 2PaXZqDGMOi
2018-04-16 10:38:11 -07:00
Brian Grinstead 6d333a8aa0 Bug 1448936 - Remove unused server side logging code;r=jryans
MozReview-Commit-ID: 3X14cDdj0qp
2018-04-13 11:36:13 -07: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
Jan Odvarko 749d1d6d1f Bug 1223726 - Customize response body interception; r=ochameau
* Introduce pref for custom response body limit
* Introduce pref for saving request/response bodies

MozReview-Commit-ID: 7DrAU1did1a
2018-03-12 08:10:39 +01:00
Nicolas Chevobbe cabb63d8e5 Bug 1382581 - Adapt webconsole code to the EventEmitter change in devtools/client/framework; r=bgrins.
MozReview-Commit-ID: 4GELwA2Nf4q
2018-03-14 18:17:07 +01:00
J. Ryan Stinnett a57426cc8b Bug 1446064 - Clean up webconsole-connection-proxy.js. r=nchevobbe
MozReview-Commit-ID: LWRuJQJgkrm
2018-03-15 13:04:14 -05:00
Cosmin Sabou ac66216e42 Backed out 3 changesets (bug 1223726) for mochitest devtools failures on devtools/client/styleeditor/test/browser_styleeditor_fetch-from-netmonitor.js
Backed out changeset 1a09e6c3c0a3 (bug 1223726)
Backed out changeset 41da2897f549 (bug 1223726)
Backed out changeset fa0a1e88a238 (bug 1223726)
2018-03-12 14:51:37 +02:00
Jan Odvarko 07e4f2d1c4 Bug 1223726 - Customize response body interception; r=ochameau
* Introduce pref for custom response body limit
* Introduce pref for saving request/response bodies

MozReview-Commit-ID: 7DrAU1did1a
2018-03-12 08:10:39 +01:00
Jan Odvarko 2e7af478f2 Bug 1362036 - Implement http inspection in new console; r=nchevobbe
MozReview-Commit-ID: FhYePLM2T3O
2017-08-30 15:16:39 +02:00
Alexandre Poirot 076c0143fe Bug 1382968 - Only try to forward console messages from content processes to parent when browser console/toolbox are opened. r=jryans,tromey
MozReview-Commit-ID: 8cFUbF4msHx
2017-08-01 16:51:07 +02:00
Wes Kocher 85ba4e7ea1 Backed out 3 changesets (bug 1382968) for breaking browser_addons_debug_webextension.js a=backout
Backed out changeset e25b4bd21ac8 (bug 1382968)
Backed out changeset 5a2260bc98ca (bug 1382968)
Backed out changeset 869a9b46b5cc (bug 1382968)

MozReview-Commit-ID: DSKWAHxdXI
2017-08-08 09:17:56 -07:00
Alexandre Poirot d7402fa992 Bug 1382968 - Only try to forward console messages from content processes to parent when browser console/toolbox are opened. r=jryans,tromey
MozReview-Commit-ID: 8cFUbF4msHx
2017-08-01 16:51:07 +02:00
Brian Grinstead e9f8b638a0 Bug 1383022 - Log a message in the new console frontend when the Console API has been replaced;r=nchevobbe
MozReview-Commit-ID: 56xyY04YM4S
2017-08-04 08:32:27 -07:00
Jan Odvarko 65932bda75 Bug 1326937 - Provide HTML page when running new console frontend; r=bgrins
MozReview-Commit-ID: G2TzrRF0Vag
2017-06-09 09:42:34 -07:00
Sebastian Hengst 6aa896a12d Backed out changeset 227ff88b9848 (bug 1326937) for timing out in browser_ext_devtools_inspectedWindow_eval_bindings.js. r=backout on A CLOSED TREE 2017-07-17 20:48:25 +02:00
Brian Grinstead 2085208361 Bug 1326937 - Provide HTML page when running new console frontend; r=bgrins
MozReview-Commit-ID: 6Pxao2KmSb4
2017-06-09 09:42:34 -07:00
Brian Grinstead 206adbd95f Bug 1364047 - Pull WebConsoleUtils.l10n into its own module;r=Honza
MozReview-Commit-ID: LI5Hrs33CVS
2017-05-17 14:07:03 -07:00
Jan Odvarko 62abdcfe31 Bug 1307895 - Support LogMessage log type; r=nchevobbe
MozReview-Commit-ID: D3RGGNuOjU5
2017-05-01 16:34:06 +02:00
Brian Grinstead 83baffc882 Bug 1359597 - Set up new console with devtools-launchpad;r=Honza
MozReview-Commit-ID: FxuwGLYef5v
2017-04-26 08:10:04 -07:00
Ricky Chien 6783233089 Bug 1307892 - Add support for network event update message r=nchevobbe
MozReview-Commit-ID: 4lat3RYa4YN
2017-01-29 13:07:58 +08:00
Brian Grinstead d3c7b73f76 Bug 1259603 - Use ConsoleEvents for cached messages and observing messages when webconsole actor is running;r=ejpbruel
MozReview-Commit-ID: E3oG451qPe9
2016-11-30 10:32:48 -08:00
Brian Grinstead 2967ac5e15 Bug 1317423 - Remove unused declarations after move;r=jlast
MozReview-Commit-ID: 9hD6rAbGYP9
2016-11-16 15:38:24 -08:00
Brian Grinstead 15617d08e9 Bug 1317423 - Move WebConsoleConnectionProxy into its own module;r=jlast
MozReview-Commit-ID: EMEo0CqlOPM
2016-11-16 15:38:22 -08:00