Commit graph

45 commits

Author SHA1 Message Date
Nicolas Chevobbe
1ee3ef7e09 Bug 1512289 - Remove webconsole reverse search pref; r=bgrins.
Differential Revision: https://phabricator.services.mozilla.com/D13913

--HG--
extra : moz-landing-system : lando
2018-12-11 13:01:30 +00:00
yulia
ef8f9622b4 Bug 1512086 - fix console highlighting and update test to fail if it doesnt; r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D13826

--HG--
extra : moz-landing-system : lando
2018-12-05 22:02:36 +00:00
Jason Laster
4cd46e49cc Revert "Backed out changeset 3124848b93c4 (bug 1511043) for build bustages on jump.svg. CLOSED TREE"
This reverts commit 8551aeffb93b4cc68bf47b798e659155bb897fea.
2018-11-30 19:06:35 -05:00
Brindusan Cristian
2dabe6cfa3 Backed out changeset 3124848b93c4 (bug 1511043) for build bustages on jump.svg. CLOSED TREE 2018-12-01 00:14:54 +02:00
Jason Laster
2f9f9f3fb0 Revert "Backed out changeset 891b3a495ff5 (bug 1511043) for devtools failures at browser/base/content/test/static/browser_all_files_referenced.js"
This reverts commit 30aaab3abc92e0bfa4d2e6e526d8c7263bbbd9b3.
2018-11-30 16:49:22 -05:00
Coroiu Cristina
e3eeb60e8b Backed out changeset 891b3a495ff5 (bug 1511043) for devtools failures at browser/base/content/test/static/browser_all_files_referenced.js 2018-11-30 20:18:43 +02:00
Jason Laster
4c62541fea Bug 1511043 - Synchronize the replay timeline and console. r=nchevobbe
Tags:

Bug #: 1511043

Differential Revision: https://phabricator.services.mozilla.com/D13414
2018-11-30 11:38:02 -05:00
yulia
8fec0e1f69 Bug 1508655 - BoxModel highlighter move nodeHighlighter to highlighterFront; r=ochameau
Depends on D12319

Differential Revision: https://phabricator.services.mozilla.com/D12320

--HG--
extra : moz-landing-system : lando
2018-11-23 10:50:21 +00:00
yulia
d86df65170 Bug 1508655 - BoxModel highlighter split domGrip methods to make them more closely related to the walker; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D12319

--HG--
extra : moz-landing-system : lando
2018-11-23 10:49:29 +00:00
Jason Laster
53c3608b3a Bug 1504222 - Notify the client when devtools goes from replaying to recording. r=dwalsh
Tags:

Bug #: 1504222

Differential Revision: https://phabricator.services.mozilla.com/D11593
2018-11-16 10:24:27 -05:00
Nicolas Chevobbe
6a3aba40af Bug 1505045 - Fix error in setTimeoutIfNeeded when store is not ready yet; r=Honza.
In some cases, the setTimeoutIfNeeded function can
be called before the store is initialized, which is
causing an exception when we try to dispatch the
messages.
With this patch, we check if the store is not ready,
and re-schedule a timeout so messages can be handled
properly when the store is ready.

Differential Revision: https://phabricator.services.mozilla.com/D11044

--HG--
extra : moz-landing-system : lando
2018-11-12 15:09:45 +00:00
Jan Odvarko
80afef1c94 Bug 1476097 - Use the Menu API's edit menu for all context menu textboxes within the toolbox; r=bgrins,flod
Differential Revision: https://phabricator.services.mozilla.com/D6494

--HG--
rename : devtools/client/webconsole/utils/context-menu.js => devtools/client/framework/toolbox-context-menu.js
extra : moz-landing-system : lando
2018-11-05 10:52:27 +00:00
Margareta Eliza Balazs
0fd9c747eb Backed out changeset 796f3bfbaa2d (bug 1476097) for perma dt failures in devtools/client/debugger/new/test/mochitest/browser_dbg-breakpoints-actions.js CLOSED TREE 2018-10-30 14:27:52 +02:00
Jan Odvarko
bf0e2d8cbc Bug 1476097 - Use the Menu API's edit menu for all context menu textboxes within the toolbox; r=bgrins,flod
Differential Revision: https://phabricator.services.mozilla.com/D6494

--HG--
rename : devtools/client/webconsole/utils/context-menu.js => devtools/client/framework/toolbox-context-menu.js
extra : moz-landing-system : lando
2018-10-29 16:24:03 +00:00
Mark Banner
ceaeb93550 Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D8389

--HG--
extra : moz-landing-system : lando
2018-10-19 12:55:39 +00:00
Nicolas Chevobbe
5a425e0c05 Bug 1499985 - Fix error in canRewind; r=miker.
hud.owner can be null in some condition, so we
need to guard the access to hud.owner.target.

Differential Revision: https://phabricator.services.mozilla.com/D9069

--HG--
extra : moz-landing-system : lando
2018-10-19 08:15:08 +00:00
Jason Laster
46254f84e4 Bug 1496468 - Add a console pause indicator. r=loganfsmyth
Differential Revision: https://phabricator.services.mozilla.com/D7741

--HG--
extra : moz-landing-system : lando
2018-10-04 20:14:53 +00:00
Anshul Malik
c9d9cf56bf Bug 1495300 - Add paused and jump badge to console api messages r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D7327

--HG--
extra : moz-landing-system : lando
2018-10-02 18:32:55 +00:00
Jason Laster
b0a0465f39 Bug 1491471 - Move the OI store to the console. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D5911

--HG--
rename : devtools/client/shared/components/reps/reps.js => devtools/client/shared/components/reps/reps-old.js
extra : moz-landing-system : lando
2018-09-27 20:09:51 +00:00
Michael Ratcliffe
4e3c6d2b5f Bug 1491879 - Fix telemetry support for multiple tabs / windows r=nchevobbe
- Various telemetry methods now need an object to be passed in in order to keep them seperate e.g. if the inspector is opened in tab 1 a timer is started. If an inspector is opened in tab 2 the same timer is restarted. Closing tab 2 would then erase the timing event invalidating the timer in tab 1.
- We no longer need to preface telemetry calls with category "devtools.main" because this is the only category we will be using.
- There are some changes to `devtools/client/debugger/new/dist/vendors.js` and `devtools/client/debugger/new/src/utils/telemetry.js` that need to be ported to the debugger at the same time as landing this.

Differential Revision: https://phabricator.services.mozilla.com/D6137

--HG--
extra : moz-landing-system : lando
2018-09-25 12:57:13 +00:00
Nicolas Chevobbe
b31b75d4af Bug 1024913 - Move jsterm auto-focus handling into App.js; r=bgrins.
The App component takes the whole document space, so we can move the
code that listen for every click in the console UI to decide if the
jsterm should be focused or not.
This feels more like the React way, and will also provide us better
access to the store and the props when we need them in this focus
handling (like this will be the case for hiding the reverse search UI).

Depends on D5150

Differential Revision: https://phabricator.services.mozilla.com/D5152

--HG--
extra : moz-landing-system : lando
2018-09-10 10:22:47 +00:00
Nicolas Chevobbe
72a5fb2664 Bug 1024913 - Add a preference to enable the reverse search UI; r=bgrins.
Retrieve this preference in the console to pass it as a prop to the root
App component.

Differential Revision: https://phabricator.services.mozilla.com/D5149

--HG--
extra : moz-landing-system : lando
2018-09-10 10:21:46 +00:00
Margareta Eliza Balazs
4133050728 Backed out 5 changesets (bug 1024913) for causing perma damp failures. CLOSED TREE
Backed out changeset 1c18e0422ffa (bug 1024913)
Backed out changeset c4e5a7ff8e53 (bug 1024913)
Backed out changeset 7f269add6e54 (bug 1024913)
Backed out changeset ccd6afc2a739 (bug 1024913)
Backed out changeset 1613377c1b43 (bug 1024913)
2018-09-10 10:25:32 +03:00
Nicolas Chevobbe
bed5de4c51 Bug 1024913 - Move jsterm auto-focus handling into App.js; r=bgrins.
The App component takes the whole document space, so we can move the
code that listen for every click in the console UI to decide if the
jsterm should be focused or not.
This feels more like the React way, and will also provide us better
access to the store and the props when we need them in this focus
handling (like this will be the case for hiding the reverse search UI).

Depends on D5150

Differential Revision: https://phabricator.services.mozilla.com/D5152

--HG--
extra : moz-landing-system : lando
2018-09-10 05:15:58 +00:00
Nicolas Chevobbe
4f4c30f9e0 Bug 1024913 - Add a preference to enable the reverse search UI; r=bgrins.
Retrieve this preference in the console to pass it as a prop to the root
App component.

Differential Revision: https://phabricator.services.mozilla.com/D5149

--HG--
extra : moz-landing-system : lando
2018-09-10 05:14:14 +00:00
Michael Ratcliffe
cbdc91569d Bug 1480638 - Inspect Element is not reported into panel enter/exit events r=nchevobbe
Send `inspect_dom` properties from appropriate places.

Differential Revision: https://phabricator.services.mozilla.com/D3511

--HG--
extra : moz-landing-system : lando
2018-08-20 06:11:31 +00:00
Brian Hackett
622151a7e5 Bug 1479058 Part 11 - Server/client web console changes for replaying and time warp support, r=nchevobbe.
--HG--
extra : rebase_source : 2634d4f036f510fc7c70a8917b6d8202aabbb597
2018-08-02 23:33:24 +00:00
Nicolas Chevobbe
fce95f5a2c Bug 1470922 - Enable CodeMirror JSTerm on Nightly except for people using accessible technology; r=bgrins.
MozReview-Commit-ID: 5wpd9o4w9H0

--HG--
extra : rebase_source : 7c4ca7af4514e33e49e841675c3bdfb6979cf97f
2018-07-24 10:48:01 +02:00
Coroiu Cristina
33f8e97d97 Backed out 3 changesets (bug 1470922) for devtools failures at devtools/client/debugger/test/mochitest/browser_dbg_split-console-keypress.js
Backed out changeset 57b9025b5573 (bug 1470922)
Backed out changeset c30835ae0523 (bug 1470922)
Backed out changeset bb2a99260093 (bug 1470922)

--HG--
extra : rebase_source : 301d242564ee91b43069b60a7dc99f7c66955fde
2018-07-27 19:31:43 +03:00
Michael Ratcliffe
fd9c2c8706 Bug 1474356 - Most other panel openings without panel_name r=nchevobbe
Changes:

Pretty much all files contain changes to the order of events and properties... these are to stop subtle issues with events not being logged because not all properties were sent and some events were sent in the wrong order.

-devtools/client/framework/test/browser_devtools_api.js
  - Renamed test-tool-1 and 2 because we need to include the panel names in Events.yaml and "-" is not allowed.
- devtools/client/framework/toolbox.js
  - Removed unneeded const REGEX_PANEL.
  - Generally shifted things around to ensure we send events from all codepaths.
- toolkit/components/telemetry/Events.yaml
  - Changed telemetry event `"devtools.main", "enter"` to include all built-in panel names including  "other."

MozReview-Commit-ID: 2G3Z9pzj1QC

--HG--
extra : rebase_source : 54920e6fe2116a3112fefe17715b5b22ad6f5d32
2018-07-16 14:50:00 +01:00
Nicolas Chevobbe
ed14a440a5 Bug 1470922 - Enable CodeMirror JSTerm on Nightly except for people using accessible technology; r=bgrins.
MozReview-Commit-ID: 5wpd9o4w9H0

--HG--
extra : rebase_source : 5e842e6ccb6a133efde047cc345286f5e0d69b76
2018-07-24 10:48:01 +02:00
Narcis Beleuzu
032970b913 Backed out changeset 55739a1e4de9 (bug 1474356) for mochitest bc failures on browser_ext_devtools_panel.js. CLOSED TREE 2018-07-26 14:06:18 +03:00
Michael Ratcliffe
c7935445d5 Bug 1474356 - Most other panel openings without panel_name r=nchevobbe
Changes:

Pretty much all files contain changes to the order of events and properties... these are to stop subtle issues with events not being logged because not all properties were sent and some events were sent in the wrong order.

-devtools/client/framework/test/browser_devtools_api.js
  - Renamed test-tool-1 and 2 because we need to include the panel names in Events.yaml and "-" is not allowed.
- devtools/client/framework/toolbox.js
  - Removed unneeded const REGEX_PANEL.
  - Generally shifted things around to ensure we send events from all codepaths.
- toolkit/components/telemetry/Events.yaml
  - Changed telemetry event `"devtools.main", "enter"` to include all built-in panel names including  "other."

MozReview-Commit-ID: 2G3Z9pzj1QC

--HG--
extra : rebase_source : bc691ae42b521e3a58c1a4aa9dbd455a3aa258a0
2018-07-16 14:50:00 +01:00
Nicolas Chevobbe
54ad45abad Bug 1463095 - Instrument inspection of filter changes in the Web Console with event telemetry; r=jdescottes.
This introduces an event-telemetry middleware that we'll
be able to re-use for other events.
A test is added to make sure we do log those events as intended.
The telemetry mock for mocha test is modified to include
recordEvent so the test still run.

MozReview-Commit-ID: 1SHnVIRGdDz

--HG--
extra : rebase_source : 7a7d6c7ff3fdbe1da6a16bc47017dbf5d90582db
2018-07-24 09:55:36 +02:00
Nicolas Chevobbe
0829b5c574 Bug 1478366 - Add a recordTelemetryEvent function to serviceContainer; r=miker.
This then can be used directly in the console, or passed to reps
and ObjectInspector so it can be called from there.

MozReview-Commit-ID: uQOiGuYbJK

--HG--
extra : rebase_source : a8a84b558dea69b7c2793b9e2d67a44a0809eb43
2018-07-25 13:54:27 +02:00
Brian Grinstead
f94ac37cc8 Bug 1456852 - Programatically create the edit menu in the browser console input;r=nchevobbe
This allows us to open the context menu directly from webconsole.html when it's
running as a top level window. Ultimately, I'd like to not have to use special
handling in the console - all top-level windows should get the edit menu working
automatically for HTML inputs - but this lets us prove it out as a first consumer.

MozReview-Commit-ID: BYisQDtXWe4

--HG--
extra : rebase_source : 8000147713000a30af48f1da17d50356a4cd4a04
2018-07-17 11:55:49 -07:00
Nicolas Chevobbe
326029dc22 Bug 1419081 - Cmd/Ctrl + click should put object in the sidebar; r=Honza.
In order to do that, we pass an onCmdCtrlClick to the ObjectInspector.
We also extract the dispatching of the SHOW_OBJECT_IN_SIDEBAR action to
its own function so it can be called directly with a grip.
browser_webconsole_object_in_sidebar is renamed and repurposed to test
this specific behavior, since there's already a test checking the context
menu way (browser_webconsole_context_menu_object_in_sidebar.js).

MozReview-Commit-ID: GCF1wFPWTH

--HG--
rename : devtools/client/webconsole/test/mochitest/browser_webconsole_object_in_sidebar.js => devtools/client/webconsole/test/mochitest/browser_webconsole_object_ctrl_click.js
extra : rebase_source : ad40ffb48695e3156a5730a5a41c1e8d9cb73b88
2018-04-19 10:54:36 +02:00
yulia
0ff331b89e Bug 1464461 - make dispatchMessagesAdd use batching; r=nchevobbe
MozReview-Commit-ID: 7sCFIfC2ovi

--HG--
extra : rebase_source : 2a29272d39c858301fa1adb7233ebcbfe4663b78
2018-06-28 12:00:55 +02:00
Cosmin Sabou
e092bc3111 Backed out 4 changesets (bug 1464461) for Talos damp failures on webconsole/objectexpand.js. CLOSED TREE
Backed out changeset 001370fe21e3 (bug 1464461)
Backed out changeset 014fa1322e94 (bug 1464461)
Backed out changeset 50f7f633bb7d (bug 1464461)
Backed out changeset 6c9488ed5ebd (bug 1464461)
2018-07-03 15:28:03 +03:00
yulia
fb775616de Bug 1464461 - make dispatchMessagesAdd use batching; r=nchevobbe
MozReview-Commit-ID: 7sCFIfC2ovi

--HG--
extra : rebase_source : b76d3eb3b523961346534a1da367d0c4d82e5b90
2018-06-28 12:00:55 +02:00
Michael Ratcliffe
4e428a3269 Bug 1463092 - Instrument inspection of 'Jump to Source' in the Web Console with event telemetry r=jdescottes
MozReview-Commit-ID: DF54uBCDX1n

--HG--
extra : rebase_source : e1466cc046a5cd5a211bbc39a050fc40df9b4522
2018-06-22 16:56:51 +01:00
Julian Descottes
640fe52298 Bug 1454696 - Run eslint --fix for prefer-const;r=yulia
MozReview-Commit-ID: F6xUXCgdRE4

--HG--
extra : rebase_source : 65de1b0aba412d9044b5196115f74276caa058f2
2018-06-01 12:36:09 +02:00
Jan Odvarko
0f7d120ed3 Bug 1462390 - Extract history from JSTerm component; r=nchevobbe
MozReview-Commit-ID: DTlW1h2ACoI

--HG--
extra : rebase_source : 90ecbeee7d198c779c8f19986722dcfd8970fad9
2018-05-31 12:41:29 +02:00
Nicolas Chevobbe
6a3954e6e8 Bug 983473 - Put a CodeMirror instance in JsTerm; r=bgrins.
This is only about adding an editor in the JsTerm and making
sure we can still execute input strings.
The styles should stay the same, except that now we don't have
to do the computation for the input height, since they're already
done in CodeMirror. In-line style, history navigation and
autocompletion will be handled in separate bugs.
The creation of the editor might be done outside of the JsTerm in
the future so we can re-use it to syntax highlight Evaluation input
in the output; but not in this bug since it would need to move
jsterm.execute as well.

MozReview-Commit-ID: 75TmF055mkp

--HG--
extra : rebase_source : ec7edb17ffb13c757ed51e03a1174399ea2bcbde
2018-05-21 10:38:47 +02:00
Jan Odvarko
d7570891ba Bug 1460841 - Console clean up: rename internal modules; r=nchevobbe
MozReview-Commit-ID: 7rDoXy8ROAe

--HG--
rename : devtools/client/webconsole/new-webconsole.js => devtools/client/webconsole/webconsole-frame.js
rename : devtools/client/webconsole/new-console-output-wrapper.js => devtools/client/webconsole/webconsole-output-wrapper.js
extra : rebase_source : e55bb6af8d6ca3079ab1e3f672ab28efe1b592eb
2018-05-24 18:11:14 +02:00
Renamed from devtools/client/webconsole/new-console-output-wrapper.js (Browse further)