Commit Graph
323 Commits
Author SHA1 Message Date
yulia 595fd05e97 Bug 1508655 - BoxModel highlighter move nodeHighlighter to highlighterFront; r=ochameau
Depends on D12319

Differential Revision: https://phabricator.services.mozilla.com/D12320
2018-11-23 10:50:21 +00:00
yulia 9003a64fc0 bug 1507146 - add await to all target.getFront calls in async callsites; r=ochameau
Depends on D11885

Differential Revision: https://phabricator.services.mozilla.com/D11886
2018-11-14 15:11:59 +00:00
Jason Laster a5f3cddb48 Bug 1507260 - Pretty Print fails with sourceMap error when Source Maps is off. r=lsmyth
Tags:

Bug #: 1507260

Differential Revision: https://phabricator.services.mozilla.com/D11928
2018-11-20 15:07:48 -05:00
Daisuke Akatsuka 5e85cd99bf Bug 1497449: Show basic information in about:devtools-toolbox. r=jdescottes,ladybenko
Depends on D11748

Differential Revision: https://phabricator.services.mozilla.com/D11749
2018-11-16 05:36:56 +00:00
Brian Hackett 967d76d33b Bug 1489651 - Always start a new recording when reloading or using the location bar, r=jlast. 2018-11-08 08:32:29 -10:00
Bogdan Tara 1d9b46aa1a Merge inbound to mozilla-central. a=merge 2018-11-08 20:48:31 +02:00
Jason Laster 4c90ea8f85 Bug 1505434 - The splitter has a couple of bugs in vertical mode. r=dwalsh
Tags:

Differential Revision: https://phabricator.services.mozilla.com/D11178
2018-11-08 09:53:58 -05:00
yulia 67ae68cbed Bug 1495388 - Simplify Inspector Front destruction; r=ochameau
Depends on D8992

Differential Revision: https://phabricator.services.mozilla.com/D9124
2018-11-07 14:35:42 +00:00
Jan Odvarko cfe87fe162 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
2018-11-05 10:52:27 +00:00
yulia 7bb7129828 Bug 1495388 - Fix test failures associated with async inspector initalization; r=ochameau
Depends on D8707

Differential Revision: https://phabricator.services.mozilla.com/D8992
2018-10-30 14:51:40 +00:00
yulia 1553a9ace6 Bug 1495388 - Make Inspector Front initialization async; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D8707
2018-10-30 14:47:19 +00:00
Margareta Eliza Balazs 59ee57e27a 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 16f6621023 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
2018-10-29 16:24:03 +00:00
Gabriel Luong f50c3a7af6 Bug 1500717 - Parallelize the toolbox loading the inspector's iframe and initializing the inspector. r=pbro 2018-10-22 12:20:58 -04:00
Gabriel Luong 7e12386985 Bug 1500689 - Only update the frame button checked state if it is visible. r=mtigley 2018-10-22 13:29:04 -04:00
Coroiu Cristina 352ceec0b2 Backed out 2 changesets (bug 1500717, bug 1500701) for browser-chrome failures at browser/test-oop-extensions/browser_ext_devtools_inspectedWindow.js on a CLOSED TREE
Backed out changeset 4fbd733460be (bug 1500701)
Backed out changeset 6cd064e0fbd9 (bug 1500717)
2018-10-22 20:19:52 +03:00
Gabriel Luong 437211611c Bug 1500717 - Parallelize the toolbox loading the inspector's iframe and initializing the inspector. r=pbro 2018-10-22 12:20:58 -04:00
Mark Banner 3d6aaad3f5 Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D8389
2018-10-19 12:55:39 +00:00
yulia f7a278fb9c Bug 1499686 - Remove _supportsFrameHighlight; r=ochameau
Depends on D8988

Differential Revision: https://phabricator.services.mozilla.com/D8989
2018-10-18 14:10:29 +00:00
yulia 40fff15d73 Bug 1499710 - Remove autohideOnDestroy trait; r=ochameau
Depends on D8987

Differential Revision: https://phabricator.services.mozilla.com/D8988
2018-10-18 14:10:59 +00:00
yulia b0a0d06bec Bug 1499683 - Remove Highlightable Trait; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D8987
2018-10-18 14:12:00 +00:00
Florens Verschelde 77d92f4fe4 Bug 1488012 - Update devtools frame picker button; r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D4820
2018-10-16 17:42:43 +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 77367c875a Bug 1425542 - Move inspectObjectActor away from jsterm; r=bgrins.
Differential Revision: https://phabricator.services.mozilla.com/D8519
2018-10-15 14:23:51 +00:00
Alexandre Poirot d993905c33 Bug 1485660 - Special test fixes. r=jdescottes
* browser_addons_debug_webextension_popup: It looks like frame-update events are now fired earlier.
I had to move the listener to an earlier step in order to make it work.
* helper_disable_cache + toolbox.js: this test wasn't correctly listening for reconfigure request's end.
  Not clear how this test was passing before without high rate of intermittent...
* test_webextension-addon-debugging-connect.html: We can no longer listen for frame-update *before* the target object is created.
  (because we now need a TabTarget object or the TargetFront and not just the DebuggerClient)
* Fix reload request in shadereditor which may still be pending after test ends.

MozReview-Commit-ID: 49qvWSCn6nq

Depends on D8066

Differential Revision: https://phabricator.services.mozilla.com/D7460
2018-10-15 08:36:15 +00:00
Alexandre Poirot 120935cab4 Bug 1485660 - Adapt TabClient API to protocol one. r=jdescottes
MozReview-Commit-ID: 1dC5opkgLcQ

Depends on D7459

Differential Revision: https://phabricator.services.mozilla.com/D8066
2018-10-15 08:36:12 +00:00
Alexandre Poirot a7efccd4b4 Bug 1485660 - Convert TabClient to a front. r=jdescottes
TabClient appears to be a client for any actor that inherits from browsing context target actor.
So let it be a front for that.

MozReview-Commit-ID: KmpClxJ53N7

Depends on D7457

Differential Revision: https://phabricator.services.mozilla.com/D7458
2018-10-15 08:36:07 +00:00
Brindusan Cristian dac48fe630 Backed out 8 changesets (bug 1485660) for damp failures on front.hasRequests. CLOSED TREE
Backed out changeset 7a2f29bbe2a8 (bug 1485660)
Backed out changeset 26e82fa62444 (bug 1485660)
Backed out changeset 9bb2f56f219d (bug 1485660)
Backed out changeset 40a3c2dd1b38 (bug 1485660)
Backed out changeset cfb160882db9 (bug 1485660)
Backed out changeset 3642f2d66777 (bug 1485660)
Backed out changeset 9026679753b2 (bug 1485660)
Backed out changeset dccca441b980 (bug 1485660)
2018-10-11 22:33:35 +03:00
Alexandre Poirot e4994a3621 Bug 1485660 - Special test fixes. r=jdescottes
* browser_addons_debug_webextension_popup: It looks like frame-update events are now fired earlier.
I had to move the listener to an earlier step in order to make it work.
* helper_disable_cache + toolbox.js: this test wasn't correctly listening for reconfigure request's end.
  Not clear how this test was passing before without high rate of intermittent...
* test_webextension-addon-debugging-connect.html: We can no longer listen for frame-update *before* the target object is created.
  (because we now need a TabTarget object or the TargetFront and not just the DebuggerClient)

MozReview-Commit-ID: 49qvWSCn6nq

Depends on D8066

Differential Revision: https://phabricator.services.mozilla.com/D7460
2018-10-11 15:46:32 +00:00
Alexandre Poirot eca444119b Bug 1485660 - Adapt TabClient API to protocol one. r=jdescottes
MozReview-Commit-ID: 1dC5opkgLcQ

Depends on D7459

Differential Revision: https://phabricator.services.mozilla.com/D8066
2018-10-11 15:46:30 +00:00
Alexandre Poirot 9f105c8a0b Bug 1485660 - Convert TabClient to a front. r=jdescottes
TabClient appears to be a client for any actor that inherits from browsing context target actor.
So let it be a front for that.

MozReview-Commit-ID: KmpClxJ53N7

Depends on D7457

Differential Revision: https://phabricator.services.mozilla.com/D7458
2018-10-11 15:46:26 +00:00
yulia 2eeeb734a4 Bug 1493131 - use custom memoization for the inspector; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D7703
2018-10-05 08:39:47 +00:00
Luca Greco bffb9b01cf Bug 1398734 - Fix devtools toolbox issues while removing extension sidebar panels. r=jdescottes
Depends on D5421

Differential Revision: https://phabricator.services.mozilla.com/D5422
2018-10-03 18:29:30 +00:00
Luca Greco 092677fdb7 Bug 1299001 - Ensure that the toolbox resets the preferences set when it is closed. r=ochameau
This patch fixes a regression which has been likely introduced in the refactoring
we did in Bug 1222047 on Firefox 63.

Differential Revision: https://phabricator.services.mozilla.com/D7523
2018-10-02 19:09:37 +00:00
Logan Smyth 3333cb81e3 Bug 1495029 - Add [email protected]'s mappings.wasm asset to prepare for upgrade. r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D7207
2018-09-28 19:41:21 +00:00
Alexandre Poirot 417430384a Bug 1494288 - Remove noTabReconfigureOnClose trait and client code to reconfigure on disconnect r=yulia
MozReview-Commit-ID: 4zy9ho4425q

Differential Revision: https://phabricator.services.mozilla.com/D6938
2018-09-28 07:39:44 +00:00
Michael Ratcliffe 81596860ae 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
2018-09-25 12:57:13 +00:00
Alexandre Poirot cce577ae01 Bug 1485676 - Rename TabTarget.makeRemote to TabTarget.attach. r=jdescottes
Summary:
Now that all the "remoting" of this method has been moved to TargetFactory.createTargetForTab,
we should rename this method to what it does now. It mostly call attach requests
of the target actor and its child console actor.
It also "connect" the webextension target actor, but I would like to eventually move that
outside of TabTarget.attach, like makeRemote.

Depends On D4078

Reviewers: yulia!

Tags: #secure-revision

Bug #: 1485676

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

MozReview-Commit-ID: KmFi1LIUBga
2018-09-24 09:52:57 -07: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
Gurzau Raul a532c08398 Backed out 9 changesets (bug 1485676) for failing at damp inspector/cold-open.js on a CLOSED TREE
Backed out changeset 4de2e71debfe (bug 1485676)
Backed out changeset e63025150c7a (bug 1485676)
Backed out changeset f9ef30ae3f7f (bug 1485676)
Backed out changeset a83636fab16a (bug 1485676)
Backed out changeset b1fd24929e09 (bug 1485676)
Backed out changeset acb27b915742 (bug 1485676)
Backed out changeset ba2157632772 (bug 1485676)
Backed out changeset d1d6b9bc2372 (bug 1485676)
Backed out changeset d7646ea8640b (bug 1485676)
2018-09-22 19:42:04 +03:00
Alexandre Poirot ef7fa3ed18 Bug 1485676 - Rename TabTarget.makeRemote to TabTarget.attach. r=jdescottes
Summary:
Now that all the "remoting" of this method has been moved to TargetFactory.createTargetForTab,
we should rename this method to what it does now. It mostly call attach requests
of the target actor and its child console actor.
It also "connect" the webextension target actor, but I would like to eventually move that
outside of TabTarget.attach, like makeRemote.

Depends On D4078

Reviewers: yulia!

Tags: #secure-revision

Bug #: 1485676

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

MozReview-Commit-ID: KmFi1LIUBga
2018-09-22 08:34:21 -07:00
arthur.iakab 12a839773f Backed out 9 changesets (bug 1485676)for perma failures in devtools/client/canvasdebugger/test/browser_canvas-actor-test-01.js CLOSED TREE
Backed out changeset 9f5ec2aa7109 (bug 1485676)
Backed out changeset 0d530c1316a4 (bug 1485676)
Backed out changeset 03278e6fe685 (bug 1485676)
Backed out changeset 275463260056 (bug 1485676)
Backed out changeset 4c5a956b33f7 (bug 1485676)
Backed out changeset d8fe80bb0e3c (bug 1485676)
Backed out changeset 56240996921f (bug 1485676)
Backed out changeset ec0a322f5cc9 (bug 1485676)
Backed out changeset f0f4f9407970 (bug 1485676)
2018-09-21 12:48:48 +03:00
Alexandre Poirot 7d9e6c4418 Bug 1485676 - Rename TabTarget.makeRemote to TabTarget.attach. r=jdescottes
Now that all the "remoting" of this method has been moved to TargetFactory.createTargetForTab,
we should rename this method to what it does now. It mostly call attach requests
of the target actor and its child console actor.
It also "connect" the webextension target actor, but I would like to eventually move that
outside of TabTarget.attach, like makeRemote.

Depends On D4078

Differential Revision: https://phabricator.services.mozilla.com/D6161
2018-09-21 08:08:11 +00:00
Mantaroh Yoshinaga f269d6778b Bug 1476549 - Part 4. Make the frame button to MenuButton. r=birtles
Differential Revision: https://phabricator.services.mozilla.com/D6353
2018-09-20 06:54:39 +00:00
Mantaroh Yoshinaga 63b669b7d9 Bug 1476549 - Part 1. Rename toolbox.onHightlightFrame to toolbox.onHighlightFrame. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D4630
2018-09-14 05:54:47 +00:00
Alexandre Poirot 8a85911346 Bug 1485671 - Expose and use TabClient.listFrames and switchToFrame. r=yulia
Depends On D6272

Differential Revision: https://phabricator.services.mozilla.com/D6273
2018-09-20 08:30:32 +00:00
Jan Odvarko c1b1ca671f Bug 1491749 - Stop using xul:keyset and xul:key in toolbox-window.xul; r=bgrins,flod
Differential Revision: https://phabricator.services.mozilla.com/D6015
2018-09-19 09:58:08 +00:00
Mike Conley de78fa5d84 Bug 1482402 - Dispatch DevTools toolbox visibilitychange event on the iframe document instead of the iframe window. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D5456
2018-09-07 15:19:47 -07:00
yulia 1c18ac0dd0 Bug 1447490 - replace GCLI toolbox buttons with highlighters and appropriate actors; r=ochameau
GCLI has been handling the state of our buttons as well as managing shared highlighters.
Since the gcli removal, we no longer share the rulers and measure with any other UI, so a location
for shared state is no longer needed.

Differential Revision: https://phabricator.services.mozilla.com/D3506
2018-09-03 14:54:04 +00:00
yulia fe26bd7cbc Bug 1485374 - Update inspector front to use target.getFront
Summary: Update toolbox to use target.getFront to instantiate inspector

Reviewers: ochameau

Tags: #secure-revision

Bug #: 1485374

Differential Revision: https://phabricator.services.mozilla.com/D4579
2018-08-29 18:15:14 +02:00