Commit Graph
151 Commits
Author SHA1 Message Date
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
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
Alexandre Poirot 3d76320218 Bug 1387123 - Replace all usages of require(promise).defer by require(devtools/shared/defer).defer. r=tromey
In prevision of Promise.jsm removal, use defer helper module instead of Promise.jsm
as that's the only one feature that DOM Promise don't support.

PART2: Substitutes promise.defer usages with defer
$ sed -i 's/promise.defer/defer/gI' $(egrep -lir "promise.defer\(\)" devtools)
  Reset modification to the following files as they are using deprecated syncable promises as we don't want to touch them.
  http://searchfox.org/mozilla-central/search?q=deprecated-sync-thenables&case=true&regexp=false&path=
$ git checkout devtools/client/debugger/test/mochitest/
$ git checkout devtools/shared/client/main.js
$ git checkout devtools/client/debugger/
$ git checkout devtools/server/main.js

MozReview-Commit-ID: DGN5ae68wtn
2017-08-08 15:24:04 +02:00
Alexandre Poirot 1f1a801a56 Bug 1387123 - Replace all usages of require(promise).defer by require(devtools/shared/defer).defer. r=tromey
In prevision of Promise.jsm removal, use defer helper module instead of Promise.jsm
as that's the only one feature that DOM Promise don't support.

PART1: Import devtools/shared/defer
$ sed -i '/require("promise")/a const defer = require("devtools/shared/defer");' $(egrep -lir "promise.defer\(\)" $(egrep -rl "require\(\"promise\"\)" devtools))
But ignore debugger as it still uses sync promises and would better be handled manually
$ git checkout devtools/client/debugger/
MozReview-Commit-ID: 7FvhNxULB2x
2017-08-08 15:33:56 +02: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
Andrea Marchesini 3b9c7b278d Bug 1363307 - Console.timeEnd(label) should warn if 'label' in an unknwon timer, r=bgrins 2017-05-11 14:36:12 -07:00
Andrea Marchesini b4124f6839 Bug 1363288 - Console.time() prints a warning if used twice with the same label, r=bgrins 2017-05-11 14:36:09 -07:00
Ricky Chien 8e1c828432 Bug 1344160 - Refactor netmonitor-controller.js r=Honza
MozReview-Commit-ID: JPUB83Qsmav
2017-04-29 23:20:24 +08:00
Tom Tromey c4042ba67b Bug 1359144 - use client-side source map service in console; r=jryans
MozReview-Commit-ID: Jn9fr1EoPg9
2017-04-28 10:12:57 -06:00
Florian Queze 451928e614 Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws. 2017-04-14 21:51:39 +02:00
Sebastian Hengst f75839c723 Backed out changeset 55f3df15eaa6 (bug 1356569) 2017-04-14 23:39:17 +02:00
Florian Queze 61aabdf237 Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws. 2017-04-14 21:51:39 +02:00
Alessio Placitelli d7a33d4843 Bug 1341996 - Prevent using empty keys in DEVTOOLS_JAVASCRIPT_ERROR_DISPLAYED. r=bgrins
MozReview-Commit-ID: 42ESILTpnAT
2017-04-12 17:33:36 +02:00
Ricky Chien 4c1c62da60 Bug 1352699 - Make netmonitor run on devtools-launchpad r=Honza
MozReview-Commit-ID: 4khCXm2lfzG
2017-04-01 23:01:06 +08:00
Carsten "Tomcat" Book c4ba8ded0f Backed out changeset afbfe3a5cdb6 (bug 1352699) 2017-04-07 10:48:08 +02:00
Ricky Chien cc080ff798 Bug 1352699 - Make netmonitor run on devtools-launchpad r=Honza
MozReview-Commit-ID: 4khCXm2lfzG
2017-04-01 23:01:06 +08:00
Sebastian Hengst 25599432c0 Backed out changeset a3ef74b43978 (bug 1352699) 2017-04-06 20:15:15 +02:00
Ricky Chien 7a9480e16a Bug 1352699 - Make netmonitor run on devtools-launchpad r=Honza
MozReview-Commit-ID: 4khCXm2lfzG
2017-04-01 23:01:06 +08:00
J. Ryan Stinnett b1e4f726f1 Bug 1349360 - Mark experimental SourceMapService as deprecated. r=ochameau
The existing `SourceMapService` uses server-side source maps, which we are
replacing with client-side source maps.  It will be removed later in bug
1349354, but for now mark it as deprecated so we don't use it with any other
tools.

MozReview-Commit-ID: ABmWGC5asZd
2017-03-21 16:44:09 -05:00
Tim Nguyen 3c6aca80ee Bug 1341037 - Fix broken Browser Console. r=nchevobbe
MozReview-Commit-ID: 5gIYVBNCILb
2017-02-23 16:03:14 +01:00
Tim Nguyen 2016411dd2 Bug 1341037 - Use Toolbox react instance in webconsole. r=ochameau
MozReview-Commit-ID: 4ARtkoqWUQP
2017-02-21 20:47:25 +00:00
Florian Quèze c32c931bc9 Bug 1334831 - script-generated patch to use .remove() instead of .parentNode.removeChild, r=jaws. 2017-01-30 08:10:22 +01:00
Florian Quèze 63de711857 Bug 1331081 - script generated patch to omit addEventListener/removeEventListener's third parameter when it's false, r=jaws. 2017-01-17 11:50:25 +01:00
Florian Quèze 361ec85a2e Bug 1329182 - remove trailing newURI null parameters in devtools/, r=jaws. 2017-01-09 20:27:26 +01:00
Gabriel Luong a61285b0f2 Bug 1322028 - Avoid destructuring requires where possible in the inspector. r=jdescottes 2016-12-17 12:44:56 +09:00