Commit Graph
56 Commits
Author SHA1 Message Date
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
Jan Odvarko 570ba6860c Bug 1304328 - Stop using XUL in webconsole/jsterm.js; r=nchevobbe
MozReview-Commit-ID: EPLUaothwH5
2017-09-25 16:34:10 +02:00
Sebastian Hengst a9dd2e21f3 Backed out changeset e98b59ba190d (bug 1304328) for linting failure at devtools/client/webconsole/jsterm.js:1013: More than 1 blank line not allowed. r=backout 2017-09-27 11:28:39 +02:00
Jan Odvarko 7b76ad70da Bug 1304328 - Stop using XUL in webconsole/jsterm.js; r=nchevobbe
MozReview-Commit-ID: 9vWPvw8LYJu
2017-09-25 16:34:10 +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
Alexandre Poirot 946ab8adea 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.

PART3: Manual fixes
- Go manually fix: http://searchfox.org/mozilla-central/source/devtools/client/dom/dom-panel.js
  which has duplicated import of defer symbol (it already used to import it)
- execute eslint, see all the places where we import of 'promise' is no longer use it
  (there may be leftovers not covered by eslint that will be covered in bug 1387128)
  devtools/server/tests/mochitest/inspector-helpers.js needs to keep importing promise as it is a shared test script.
- fix devtools/client/performance/panel.js and devtools/client/webconsole/console-output.js
  which use loader.lazyRequireGetter(this, "promise") and miss the defer import
- fix devtools/server/worker.js to use 'worker.require(devtools/shared/defer")'

MozReview-Commit-ID: HIOB5Et87Wc
2017-08-08 15:19:56 +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
Nicolas Chevobbe 550c5dbe71 Bug 1382690 - Adapt extensions inspect() calls to the new frontend. r=bgrins
The inspect command in extension was directly calling jsterm.inspectObject and doing so bypassed
the code we implemented for the command on the new frontend (i.e. no more variable view).
This patch modifies the jsterm inspectObject function so it can do the expected behavior,
and also reverts some changes made in the original inspect command bug, so we only deal with
the new frontend code in jsterm.inspectObject.
This implied changing an extension test that was waiting for the variable view to boot-up.
The test was modified to match the tests we already have for the inspect command on the new
console frontend.

MozReview-Commit-ID: 8fZV20Mck8r
2017-07-20 14:56:46 +02:00
Nicolas Chevobbe 2e1627a607 Bug 1379570 - Adapt the inspect command to the new console frontend. r=bgrins
MozReview-Commit-ID: LsT12pOJhvV
2017-07-11 13:50:59 +02:00
Wes Kocher 4bc98bfd1b Backed out changeset c676af6947ac (bug 1379570) for devtools failures in browser_webconsole_check_stubs_console_api.js a=backout
MozReview-Commit-ID: GMaDw6nXEwJ
2017-07-17 14:12:35 -07:00
Nicolas Chevobbe d4a4ecd2ad Bug 1379570 - Adapt the inspect command to the new console frontend. r=bgrins
MozReview-Commit-ID: LsT12pOJhvV
2017-07-11 13:50:59 +02: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
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
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
Julian Descottes 32235897f2 Bug 1294038 - force selections to be read after webconsole completion;r=nchevobbe
MozReview-Commit-ID: 977wLMj3cSa
2017-02-06 13:59:41 +01:00
Florian Quèze 91f7a2ef3a Bug 1331599 - script-generated patch to replace removeEventListener calls with the once option when possible, r=jaws. 2017-01-25 07:01:52 +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
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
Gabriel Luong a61285b0f2 Bug 1322028 - Avoid destructuring requires where possible in the inspector. r=jdescottes 2016-12-17 12:44:56 +09:00
Tom Tromey 1976c3df85 Bug 1312041 - remove requireRawId rewriting in favor of Loader paths; r=jryans
MozReview-Commit-ID: 6OSszbKpp74
2016-10-25 21:30:18 -06:00
Wes Kocher 20d9f9713d Backed out 2 changesets (bug 1312041) for mass failures a=backout
Backed out changeset c4f42d7d5453 (bug 1312041)
Backed out changeset 9bfbc8480d43 (bug 1312041)
2016-11-01 10:30:45 -07:00
Tom Tromey d1b2d82846 Bug 1312041 - remove requireRawId rewriting in favor of Loader paths; r=jryans
MozReview-Commit-ID: 6OSszbKpp74
2016-10-25 21:30:18 -06:00
Gabriel Luong 4943d23a3b Bug 1307481 - Part 3: HTMLTooltip should receive the document that it should be attached to instead of the toolbox r=jdescottes 2016-10-08 09:49:07 -04:00
Wes Kocher 591a7b2fd1 Backed out 2 changesets (bug 1307481) for mass dt bustage a=backout
Backed out changeset 91c6a72e5d0d (bug 1307481)
Backed out changeset a9f9f5611272 (bug 1307481)
2016-10-07 11:54:38 -07:00
Gabriel Luong 52c4111f6c Bug 1307481 - Part 3: HTMLTooltip should receive the document that it should be attached to instead of the toolbox r=jdescottes 2016-10-07 13:33:52 -04:00
Brian Grinstead d7ab8a54dd Bug 1304178 - Use a different node to scroll in old and new frontends;r=linclark
MozReview-Commit-ID: CirqjyCei5n
2016-10-06 17:10:00 -07:00
Brian Grinstead b10a55c884 Bug 1304178 - Return a promise from dispatchMessageAdd to support jsterm.execute callback for tests;r=linclark
MozReview-Commit-ID: AeRsjFiyikv
2016-10-04 11:32:45 -07:00
Lin Clark 6d632efe28 Bug 1306751 - New console frontend: Emit new-message from componentDidMount. r=bgrins
MozReview-Commit-ID: 1JS6FcDU9qr
2016-10-02 15:16:50 -07:00
Brian Grinstead 8ea60d6962 Bug 1306124 - Consistently emit the last rendered message in dom for jsterm.execute and with new-messages event;r=linclark
MozReview-Commit-ID: 5100HMmdTr2
2016-09-28 14:28:58 -07:00
Lin Clark 516baa73fc Bug 1304003 - Part 1: Rewrite browser_bug_865871_variables_view_close_on_esc_key.js. r=bgrins
MozReview-Commit-ID: DHjTBSru0uu
2016-09-21 16:07:04 -07:00
Lin Clark 7eca89db43 Bug 1303787 - New console frontend: Fix missing icons/backgrounds. r=bgrins
MozReview-Commit-ID: 5CqORk9Qd84
2016-09-20 11:37:04 -07:00
Julian Descottes 9bd9cb2ea3 Bug 1295609 - Migrate devtools/client/webconsole to use l10n.js instead of Services.string;r=bgrins
MozReview-Commit-ID: 65AyxZ68GHt
2016-08-19 20:31:50 +02:00
Julian Descottes 1473b201d7 Bug 1296870 - Do not clear output of BrowserConsole when receiving console.clear();r=bgrins
MozReview-Commit-ID: 2quJg454BxU
2016-08-22 23:51:01 +02:00
Tom Tromey 44ebe29d9c Bug 1290227 - add replacement module for DOM_VK_ constants; r=bgrins
MozReview-Commit-ID: INmMxfP8ZuL
2016-08-08 15:41:37 -06:00
Lin Clark 38507b739b Bug 1290518 - Part 3: add tests for filters in store. r=bgrins 2016-08-01 15:39:03 -04:00
Brian Grinstead 4e42260d3e Bug 1288475 - Split webconsole utils.js into separate client and server parts;r=MattN,tromey
MozReview-Commit-ID: HlpiRvuMF1H
2016-08-05 10:44:38 -07:00
Lin Clark d2b1724c14 Bug 1285549 - New console frontend: display console commands in console output. r=me 2016-07-12 18:57:00 -04:00
Julian Descottes 5bc2788731 Bug 1266456 - part9: use HTMLTooltip for autocomplete-popup;r=bgrins
Modify the devtools autocomplete-popup to rely on a HTMLTooltip instance
instead of a XUL panel.

Other than the straightforward migration to HTML, the main difference with
the new implementation is that the richlistbox has now been replace with a
simple HTML list element. The former XUL widget used to be able to take the
focus from the input it was linked to.

This is no longer the case. Most autocomplete users were always keeping the
focus in the input, except for the inspector-search, which was moving the
focus back and forth between the input and the autocomplete's richlistbox.
Now the focus is always in the input. A practical example to illustrate how
this changes the UX: before when the user had the focus on the first element
of the list, pressing "DOWN" would keep the element selected but visually move
the focus in the input. Now the selection simply cycles to the next item.

Even though this introduces a difference in behaviour compared to the previous
implementation, it makes the inspector search UX consistent with the other
autocomplete widgets used in devtools.

Another difference is about the display for the inspector-search. The position
of the autocomplete popup used to be above the input. This is now impossible to
achieve because the search input is at the top of the toolbox and the HTML tooltip
can not exceed the limits of the toolbox.

For this #2 issue, either we manage to use XUL panel wrappers, in which case, the
autocomplete will be displayed as it used to. Or we can invert the order in which
items are inserted and explicitly ask for the autocomplete to be displayed below the
input. I prefered not to change this here in order to make the code change easier to
understand, but it should be addressed in a follow-up.

MozReview-Commit-ID: jH9aXm9Jvz
2016-07-07 16:32:42 +02:00
Patrick Brosset c820930b1a Bug 1284221 - Move the font panel to the last position in the sidebar; r=jdescottes
MozReview-Commit-ID: Kh64bTWxQkA
2016-07-04 15:21:58 +02:00
Florian Scholz 883f563bc5 Bug 1279195 - Update error doc URLs and add GA parameters; r=bgrins 2016-06-24 03:58:00 +02:00
J. Ryan Stinnett 44259f9611 Bug 1270596 - Fix devtools after ESLint 2.9.0 upgrade. r=tromey
MozReview-Commit-ID: 7LmcHCcIv1Q
2016-05-06 10:49:44 -05:00
James Long ece81a7a77 Bug 1265775 - replace Cu.reportError with console.error in devtools client code r=tromey 2016-05-06 11:29:10 -04:00
Nicolas Chevobbe 54a76c9296 Bug 1260283 - Implement new console output frontend behind a pref. r=linclark
MozReview-Commit-ID: 77qsML4CXlh
2016-04-29 13:18:00 -07:00
Lin Clark 38bcd526e5 Bug 1260283 - Implement new console output frontend behind a pref. r=bgrins
MozReview-Commit-ID: JvM0xrK7rks
2016-04-29 13:17:00 -07:00