Commit Graph
35 Commits
Author SHA1 Message Date
Julian Descottes b3199fda2b Bug 1914657 - [devtools] Move the network overrides to a shared toolbox reducer r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D219235
2024-08-23 17:19:58 +00:00
Dave Townsend 2af4d349f3 Bug 1864896: Autofix unused function arguments (devtools). r=profiler-reviewers,devtools-reviewers,nchevobbe,julienw
Differential Revision: https://phabricator.services.mozilla.com/D202959
2024-03-05 14:21:15 +00:00
Nicolas Chevobbe 948380c4d8 Bug 1863398 - [devtools] Cleanup Toolbox store DOM mutation breakpoints on target destroy. r=devtools-reviewers,ochameau.
DOM mutation breakpoints are set on specific node fronts,
and we would keep retrieving node fronts from now discarded
targets after the page navigated.

Differential Revision: https://phabricator.services.mozilla.com/D193087
2023-11-14 15:58:07 +00:00
Mark Banner 91fde42f7b Bug 1826062 - Automatic fixes for Prettier 2.0.5 upgrade. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,owlish
Differential Revision: https://phabricator.services.mozilla.com/D177025
2023-05-20 12:26:49 +00:00
Alexandre Poirot 9beeb07755 Bug 1792847 - [devtools] Use absolute URLs to import modules in devtools/client/framework. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D158373
2022-09-30 15:17:36 +00:00
Mark Banner 3387a89bc7 Bug 1786197 - Turn on ESLint rule for prefer-boolean-length-check for devtools. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D155167
2022-08-26 13:39:34 +00:00
Alexandre Poirot e9d2d13e2b Bug 1619296 - [devtools] Make the TargetCommand populate its own redux store. r=nchevobbe
This allows to pull out target management code out from toolbox back to TargetCommand.
And then allows to more easily share this store in the context of the browser console,
where there is no toolbox.

This is also an interesting example on how commands may populate redux store directly
so that we avoid having each panel translate commands's event into actions.

An alternative here, would be to introduce some generic layer between commands and redux.
Which would be the glue between a command and populating a store.

Differential Revision: https://phabricator.services.mozilla.com/D151493
2022-07-18 14:54:43 +00:00
Nicolas Chevobbe 94f6b2ed49 Bug 1711463 - [devtools] Update EvaluationContextSelector items on DOCUMENT_EVENT resources. r=jdescottes.
This patch adds a `refreshTargets` action that is called from the toolbox when
a dom-interactive DOCUMENT_EVENT is received.
This action will only update a new state property, `lastTargetRefresh`, with the
current timestamp, so the `EvaluationContextSelector` component will re-render;
as the target information are directly retrieved from the target fronts, any
changes in the title/url will be shown in the component.

Differential Revision: https://phabricator.services.mozilla.com/D115205
2021-05-19 16:58:07 +00:00
Csoregi Natalia 6d8bdbd3f5 Backed out 5 changesets (bug 1711463, bug 1691577, bug 1691576, bug 1704458) for failures on browser_target_list_frames.js. CLOSED TREE
Backed out changeset 5f42d01c0ec3 (bug 1711463)
Backed out changeset c1954aab8ab2 (bug 1704458)
Backed out changeset b7181701f11c (bug 1704458)
Backed out changeset 8bb93508d939 (bug 1691577)
Backed out changeset d4be8b7f7783 (bug 1691576)
2021-05-18 18:52:49 +03:00
Nicolas Chevobbe 95f294528f Bug 1711463 - [devtools] Update EvaluationContextSelector items on DOCUMENT_EVENT resources. r=jdescottes.
This patch adds a `refreshTargets` action that is called from the toolbox when
a dom-interactive DOCUMENT_EVENT is received.
This action will only update a new state property, `lastTargetRefresh`, with the
current timestamp, so the `EvaluationContextSelector` component will re-render;
as the target information are directly retrieved from the target fronts, any
changes in the title/url will be shown in the component.

Differential Revision: https://phabricator.services.mozilla.com/D115205
2021-05-18 14:16:34 +00:00
Julian Descottes 0bb73716b8 Bug 1703300 - [devtools] Remove guard against undefined walker in registerWalkerListeners r=nchevobbe
Depends on D111093

Differential Revision: https://phabricator.services.mozilla.com/D111095
2021-04-07 13:42:34 +00:00
Nicolas Chevobbe b19647beba Bug 1702744 - [devtools] Set browsingContext flags from parent process. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D110515
2021-04-07 07:01:08 +00:00
Ricky Stewart 31b8ca9716 Bug 1654103: Standardize on Black for Python code in mozilla-central.
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-26 18:34:53 +00:00
Bogdan Tara 612312a64c Backed out 10 changesets (bug 1654103, bug 1672023, bug 1518999) for PanZoomControllerTest.touchEventForResult gv-junit failures CLOSED TREE
Backed out changeset ff3fb0b4a512 (bug 1672023)
Backed out changeset e7834b600201 (bug 1654103)
Backed out changeset 807893ca8069 (bug 1518999)
Backed out changeset 13e6b92440e9 (bug 1518999)
Backed out changeset 8b2ac5a6c98a (bug 1518999)
Backed out changeset 575748295752 (bug 1518999)
Backed out changeset 65f07ce7b39b (bug 1518999)
Backed out changeset 4bb80556158d (bug 1518999)
Backed out changeset 8ac8461d7bd7 (bug 1518999)
Backed out changeset e8ba13ee17f5 (bug 1518999)
2020-10-24 03:36:18 +03:00
Ricky Stewart 065d2eb893 Bug 1654103: Standardize on Black for Python code in mozilla-central. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-23 20:40:42 +00:00
Dorel Luca 95b44c982f Backed out changeset 7558c8821a07 (bug 1654103) for multiple failures. CLOSED TREE 2020-10-22 03:51:06 +03:00
Ricky Stewart 43baed3c18 Bug 1654103: Standardize on Black for Python code in mozilla-central. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-21 21:27:27 +00:00
Ben Delevingne 2aea6ca83e Bug 1582699 - [devtools] Update thunk actions to take an object as an argument. r=nchevobbe
In short, thunk actions are changing from a signature with 2 parameters (dispatch and getState): `(dispatch, getState)`, to an object that contains those properties: `({ dispatch, getState })`.
This is done so we can merge thunk and thunk-with-options

Differential Revision: https://phabricator.services.mozilla.com/D92888
2020-10-13 07:48:12 +00:00
Anwesha 155d595023 Bug 1622734 - Replaced nodeFront.parent() with nodeFront.walkerFront r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D81877
2020-07-02 13:01:19 +00:00
Nicolas Chevobbe cb77b9b894 Bug 1635437 - Directly store targetFronts in toolbox redux store. r=ochameau.
We add `targetType` and `isTopLevel` properties on the target front, which
are set from the targetList and are used in the EvaluationContextSelector.

As a result we are able to directly call targetFront.targetType in a few
places instead of calling `getTargetType` again.

Differential Revision: https://phabricator.services.mozilla.com/D73890
2020-05-11 10:51:52 +00:00
Nicolas Chevobbe e25be96893 Bug 1631725 - Use TargetList TYPES instead of custom ones for targets in Toolbox redux store. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D71729
2020-04-23 15:00:18 +00:00
Nicolas Chevobbe e53d7f1ea1 Bug 1624873 - Show frame targets in context selector. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D68762
2020-04-14 12:18:33 +00:00
Nicolas Chevobbe 9e7c66bc82 Bug 1616301 - Rename clearTarget into unregisterTarget. r=jlast.
This is more consistent with the registerTarget action we
have

Differential Revision: https://phabricator.services.mozilla.com/D68761
2020-04-01 14:34:42 +00:00
Nicolas Chevobbe 1affada4c5 Bug 1616301 - Handle targets in toolbox store instead of threads. r=jlast.
Differential Revision: https://phabricator.services.mozilla.com/D68760
2020-04-01 14:33:58 +00:00
Nicolas Chevobbe d6ab97ef89 Bug 1623910 - Make toolbox selectThread more explicit. r=jlast.
This patch adds a few JSDoc comments, renames some variables,
and changes the structure of the stored thread (`actor` becomes
`actorID`), in order to make it more clear what we're dealing
with and avoid confusion.

Differential Revision: https://phabricator.services.mozilla.com/D67627
2020-03-23 20:08:35 +00:00
Nicolas Chevobbe 8648a90536 Bug 1620288 - Rename Pool#parent to getParent. r=ochameau.
This makes it more obvious that it's a function, and not
a property.

Differential Revision: https://phabricator.services.mozilla.com/D66603
2020-03-16 17:34:32 +00:00
Nicolas Chevobbe 4f43f7f015 Bug 1620967 - Clean up EvaluationContextSelector. r=jlast.
Store and expose thread types in constants, and use those.
Only loop once through the threads.

Differential Revision: https://phabricator.services.mozilla.com/D65966
2020-03-10 15:16:17 +00:00
Jason Laster 50b84bfb56 Bug 1605154 - Implement JS execution context selector UI. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D59027
2020-02-13 15:00:06 +00:00
Julian Descottes 150349d1c5 Bug 1596686 - Use absolute paths for require calls r=gl
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D58243
2019-12-27 12:23:47 +00:00
Razvan Maries 0f5ce38e4c Backed out changeset 14698fa06ab8 (bug 1596686) for causing perma fails on browser_json_refresh.js. 2019-12-27 14:01:24 +02:00
Julian Descottes 3fa1b45876 Bug 1596686 - Use absolute paths for require calls r=gl
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D58243
2019-12-27 09:09:51 +00:00
Nicolas Chevobbe 2baeab543d Bug 1582697 - Don't add the task middleware by default in create-store. r=davidwalsh.
The disableTask options is renamed to enableTaskMiddleware,
which defaults to false.

This caused failure in the dom mutation breakpoint test, because
we weren't waiting until the call to the server to remove the
breakpoints were done.
It wasn't an issue before because this was handle by the task
middleware, which catch rejections.
We fix this by only dispatching the action when the breakpoints are
indeed removed. We also tweak to waitForAllElements helper to be
able to wait for a specific count of element (it used to resolve
when there was at least the specified count, which is not ideal
when trying to assert removal of an element).

Differential Revision: https://phabricator.services.mozilla.com/D47584
2019-09-30 15:57:46 +00:00
Gabriel Luong 8bbec40020 Bug 1568157 - Part 4: Replace toolbox.walker with the contextual WalkerFront. r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D40317
2019-08-28 11:54:42 +00:00
David Walsh 2e1b24d913 Bug 1569216 - Implement DOM Mutation Breakpoints UI for the debugger r=loganfsmyth
Differential Revision: https://phabricator.services.mozilla.com/D39517
2019-08-13 02:35:50 +00:00
Logan Smyth ea893bf80a Bug 1550031 - Part 4: Manage DOM Mutation breakpoints in the toolbox. r=jlast,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D39898
2019-08-09 01:28:21 +00:00