Commit Graph
178 Commits
Author SHA1 Message Date
Alexandre Poirot b446e32dd9 Bug 1510690 - Do focus the content window from the actor when the toolbox closes. r=nchevobbe
No RDP request should be done when the toolbox closes as there no guarantee that
the request will complete. Instead, such cleanup should be done by the actors.

Differential Revision: https://phabricator.services.mozilla.com/D38309
2019-07-31 08:12:16 +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
Nicolas Chevobbe 781197d7d1 Bug 1569190 - Remove outputNode getter from webconsole.js .r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D39516
2019-07-26 16:39:18 +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 1637e4f2e4 Bug 1568528 - Remove HUDService's lastFinishedRequest. r=ochameau.
Looks like the property is never used, so we can probably
remove it.

Differential Revision: https://phabricator.services.mozilla.com/D39276
2019-07-25 07:02:12 +00:00
yulia 7eba825d59 Bug 1559819 - rename threadClient to threadFront; r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D32848
2019-07-11 09:45: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
Chris DeLuca 37154d14fc Bug 1543008 - Prevent event propagation in OpenLink webconsole function. r=nchevobbe
Before this change, ctrl/cmd clicking a url in an array in the web
console also opened the sidebar. Preventing event propagation stop the
click from getting to sidebar opening function.

Differential Revision: https://phabricator.services.mozilla.com/D28262
2019-05-27 06:24:11 +00:00
Jason Laster 167b0d54bc Bug 1539468 - Preview can initially take awhile to populate. r=loganfsmyth
Differential Revision: https://phabricator.services.mozilla.com/D30952
2019-05-15 14:46:09 +00:00
Brian Hackett 08eb9946a6 Bug 1538781 - Use the right thread for console evaluations when paused in a worker thread's frame, r=nchevobbe.
Differential Revision: https://phabricator.services.mozilla.com/D27625
2019-04-15 13:27:53 -10:00
David Walsh d5de1c9ead Bug 1500987 - Elevate the new debugger one directory. r=jlast 2019-04-09 13:16:00 -04:00
Noemi Erli b90b1b551f Backed out changeset ca42d5764b08 (bug 1500987) for failures in browser_dbg_worker-console-04.js 2019-04-09 19:04:30 +03:00
David Walsh 2113d7d3da Bug 1500987 - Elevate the new debugger one directory. r=jlast 2019-04-09 10:31:11 -04:00
Andreea Pavel 37877174ea Backed out changeset 21e7aa527584 (bug 1500987) for debugger, clipboard and dt failures on a CLOSED TREE 2019-04-08 23:15:05 +03:00
David Walsh 8d7dc8f078 Bug 1500987 - Elevate the new debugger one directory. r=jlast 2019-04-08 15:10:44 -04:00
Mellina Yonashiro b253301825 Bug 1532295 - Webconsole's onViewSourceInDebugger doesn't pass column number to debugger panel when opening a source. .
Pass on column from props.onViewSourceInDebugger (///devtools/client/shared/components/reps/reps.js:6844//) to
//devtools/client/webconsole/webconsole-wrapper.js:267// as **frame.column**

Differential Revision: https://phabricator.services.mozilla.com/D22372
2019-03-28 13:52:28 +00:00
Nicolas Chevobbe ca46adab83 Bug 1457109 - Open links in the next tab, in background if Ctrl/Cmd is pressed; r=yulia.
This patch passes the relevant options to the `openDocLink` function,
which means now links:
- will open right next to the current tab
- will open in background if Ctrl/Cmd is pressed.

A test case is added to ensures this works as expected.

Differential Revision: https://phabricator.services.mozilla.com/D22075
2019-03-05 14:10:19 +00:00
Nicolas Chevobbe 8a8d018dff Bug 1463128 - Expose setInputValue and getInputValue at hud level; r=Honza.
Now that the JsTerm is a React component, we shouldn't
let external consumers have to get the instance in order
to perform some actions on the console input.
We start with the most used actions, setInputValue and getInputValue,
and might extend that in the future.

Differential Revision: https://phabricator.services.mozilla.com/D20685
2019-02-27 10:09:35 +00:00
Nicolas Chevobbe 49e8185499 Bug 1463128 - Refactor WebConsole and BrowserConsole to ES6 classes; r=bgrins.
Doing this allows us to use native `extends` instead of
the custom one.

Differential Revision: https://phabricator.services.mozilla.com/D20679
2019-02-27 10:05:51 +00:00
Gurzau Raul 3ee8fd7ce9 Backed out 5 changesets (bug 1463128) for failing at webconsole/autocomplete.js on a CLOSED TREE.
Backed out changeset 31a85e2ed53e (bug 1463128)
Backed out changeset fcd93f64c934 (bug 1463128)
Backed out changeset ae460b3a30c2 (bug 1463128)
Backed out changeset 97a1eeb8db65 (bug 1463128)
Backed out changeset c504e9730eac (bug 1463128)
2019-02-27 00:19:15 +02:00
Nicolas Chevobbe 6ac4e9955c Bug 1463128 - Expose setInputValue and getInputValue at hud level; r=Honza.
Now that the JsTerm is a React component, we shouldn't
let external consumers have to get the instance in order
to perform some actions on the console input.
We start with the most used actions, setInputValue and getInputValue,
and might extend that in the future.

Differential Revision: https://phabricator.services.mozilla.com/D20685
2019-02-26 14:42:13 +00:00
Nicolas Chevobbe 997557b4cc Bug 1463128 - Refactor WebConsole and BrowserConsole to ES6 classes; r=bgrins.
Doing this allows us to use native `extends` instead of
the custom one.

Differential Revision: https://phabricator.services.mozilla.com/D20679
2019-02-26 14:45:00 +00: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
Alexandre Poirot e9c0994e1c Bug 1465635 - Remove Target.activeTab property. r=yulia
Depends on D15831

Differential Revision: https://phabricator.services.mozilla.com/D16874
2019-02-02 11:24:24 +00:00
Nicolas Chevobbe 1a96b9735f Bug 1494318 - Don't map expression bindings when debugger is not paused; r=bgrins.
Differential Revision: https://phabricator.services.mozilla.com/D18314
2019-02-01 15:19:47 +00:00
Bogdan Tara c0cfac2f78 Backed out 8 changesets (bug 1465635) for failures on browser_canvas-actor-test-10.js, browser_target_server_compartment.js CLOSED TREE
Backed out changeset e8e363f98525 (bug 1465635)
Backed out changeset 9ec017a91e78 (bug 1465635)
Backed out changeset 11413ebfbcaf (bug 1465635)
Backed out changeset 52728b761d5d (bug 1465635)
Backed out changeset 734646bf9829 (bug 1465635)
Backed out changeset d9ae7cd34c1a (bug 1465635)
Backed out changeset 00d325ab677a (bug 1465635)
Backed out changeset a9b181f32189 (bug 1465635)
2019-01-30 18:54:05 +02:00
Alexandre Poirot 47a8a0d0bd Bug 1465635 - Remove Target.activeTab property. r=yulia
Depends on D15831

Differential Revision: https://phabricator.services.mozilla.com/D16874
2019-01-30 13:28:25 +00:00
Nicolas Chevobbe e60ca3d586 Bug 1506118 - Use chromeUtilsWindow to start the parser worker; r=Honza.
As we were using the browserWindow to start the
parser worker, this was causing an exception
when evaluation from the browser toolbox.
Using chromUtilsWindow fixes the issue.

There is no tests yet as I'm not sure there's
an easy way to test things in the browser toolbox.

Differential Revision: https://phabricator.services.mozilla.com/D12101
2018-11-19 16:33:22 +00:00
Nicolas Chevobbe 009520fc35 Bug 1498300 - Add top-level await support to the Browser Console; r=bgrins.
This patch moves the parserService from the toolbox,
which isn't accessible in the case of the Browser Console,
to the console itself.
A lightweight test is added to ensure top-level await is
supported in the browser console.

Differential Revision: https://phabricator.services.mozilla.com/D8816
2018-10-16 13:57:32 +00:00
Nicolas Chevobbe 1ba7f2c7b4 Bug 1491354 - Extends top-level await mapping from debugger to toolbox; r=bgrins,jlast.
This patch makes the parser-worker available at the toolbox level.
This way, the console does not have to rely on the debugger being
open to map top-level await expression.
In order to make the worker works in the toolbox, some changes
are required (passing a window object, checking inToolbox differently).

We take this as an opportunity to *not* display the async iife result,
a promise, in the console. This is made by checking if the input was
mapped, and if so, ignoring the result we get from the server.

A couple tests are added to ensure the basic usage works as expected.

This patch should be considered as a v0 for top-level await evaluation
as there are things that are not perfect here. Since we rely on console.log
the result are treated differently from other evaluation results:
- the style is different
- the result gets added to the log cache (when restarting the console,
the results will still be displayed, but not the commands).
- the results can be filtered, although evaluation results should not
- `$_` after a top-level await evaluation returns the Promise created
by the async iife, not the result that was displayed in the console.

All those should be addressed in Bug 1410820.

Differential Revision: https://phabricator.services.mozilla.com/D6038
2018-09-24 08:17:30 +00:00
Jan Odvarko ed19be3b3c Bug 1488915 - Migrate toolbox-process-window.xul to HTML; r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D5255
2018-09-10 17:14:57 +00:00
Jan Odvarko 9e706ec7f0 Bug 1460843 - Console clean up: split hudservice.js; r=nchevobbe
MozReview-Commit-ID: 41ZUhbk1fBY
2018-07-02 17:08:02 +02:00
Nicolas Chevobbe 01e293c639 Bug 1451821 - Put console old-frontend code in webconsole/old; r=jdescottes.
MozReview-Commit-ID: 7jIu1nrS8zW
2018-04-06 08:02:58 +02:00
Paolo Amadini 1ae5760103 Bug 1434860 - Part 1 - Don't use menu-button toolbar buttons in the console. r=bgrins
What used to be the main action can now be achieved using the Shift modifier key.

MozReview-Commit-ID: AOwY0ABFlAz
2018-04-03 16:25:51 +01:00
Julian Descottes 0a049a8375 Bug 1447154 - Use AppConstants.jsm instead of devtools/shared/system to get constants;r=jryans,nchevobbe
devtools/shared/system is a complex module retrieving details device/platform
information. Modules that only need to get AppConstants should not pull down
such a complex dependency.

MozReview-Commit-ID: 2FmCO8nBSpP
2018-03-19 22:18:20 +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
yulia bd093feca1 Bug 1382605 - Fix 6 tests failures on devtools/client/shared due the EventEmitter refactoring r=nchevobbe
MozReview-Commit-ID: EaFYqaY2M79
2018-03-07 10:17:03 +01:00
Nicolas Chevobbe 703324bb3f Bug 1382606 - Switch webconsole to new event-emitter; r=Honza.
MozReview-Commit-ID: HBogPeOI7WM
2018-02-23 09:10:36 +01:00
Alexandre Poirot 36be948d0f Bug 1434374 - Replace usages of Cu.import in modules (where ChromeUtils isn't defined) r=jdescottes
MozReview-Commit-ID: 8kw2H4R2VIZ
2018-02-05 08:43:50 -08:00
Cameron McCormack f221bcdd54 Bug 1435666 - Part 3: Remove nsIDOMXPathResult. r=bz
MozReview-Commit-ID: 9j6dUlanNTi
2018-02-05 11:39:18 +08:00
Florian Quèze c5f15a4700 Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop. 2018-02-01 20:45:22 +01:00
Jan Odvarko 02e414a984 Bug 1005755 - Stop using Connector as a singleton; r=rickychien
MozReview-Commit-ID: tQKFiKDozA
2017-10-16 14:42:25 +02:00
Sebastian Hengst 654bd10728 Backed out changeset 819c504f437a (bug 1005755) 2017-10-16 15:05:25 +02:00
Jan Odvarko 19109e0277 Bug 1005755 - Stop using Connector as a singleton; r=rickychien
MozReview-Commit-ID: tQKFiKDozA
2017-10-16 14:42:25 +02:00
Sebastian Hengst 99d2c5f59f Backed out changeset 2bc7565e6890 (bug 1005755) 2017-10-16 13:34:15 +02:00
Jan Odvarko 18682a7b1a Bug 1005755 - Stop using Connector as a singleton; r=rickychien
MozReview-Commit-ID: KtBcN1JpEk6
2017-10-16 12:08:28 +02: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
Dan Epstein c958bdf812 Bug 1402394 CamelCase all React component files in \devtools\client\shared\components\. r=pbro
MozReview-Commit-ID: HH4mbqB6RTK
2017-09-27 01:12:13 -04: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