Commit Graph
570 Commits
Author SHA1 Message Date
Patrick Brosset 1fa3ea5374 Bug 1601219 - Use the right PageStyleFront instance when querying computed styles from the color picker; r=rcaliman
It looks like we left out some places in the inspector when we made it fission-compatible.
The color-picker, in particular, needs access to the selected node's computed style for its
color contrast logic.
We used to access this on the top-level target PageStyleFront. We just need to change this so
it uses the one contextual to the selected node.

Differential Revision: https://phabricator.services.mozilla.com/D55962
2019-12-05 14:04:57 +00:00
Nicolas Chevobbe 1cca8ce300 Bug 1591874 - Move VariablesView files to devtools/client/storage. r=miker.
Since the storage inspector is the last consumer of the VariablesView,
it makes sense to move the component directly in the storage inspector
folder.
Since it can't have a controller, the bits where we were checking this
are removed.

Differential Revision: https://phabricator.services.mozilla.com/D54734
2019-12-04 07:30:26 +00:00
Nicolas Chevobbe bd758067ea Bug 1529917 - Remove VariablesViewController.jsm. r=miker.
It isn't used anywhere, so we can safely remove it.

Differential Revision: https://phabricator.services.mozilla.com/D54733
2019-12-04 07:30:08 +00:00
Brindusan Cristian 4975b42a9f Backed out 2 changesets (bug 1529917, bug 1591874) for ESlint failure on VariablesView.jsm. CLOSED TREE
Backed out changeset a7f97f586d04 (bug 1591874)
Backed out changeset acbd48303fb3 (bug 1529917)
2019-12-03 19:20:19 +02:00
Nicolas Chevobbe bc415e9a76 Bug 1591874 - Move VariablesView files to devtools/client/storage. r=miker.
Since the storage inspector is the last consumer of the VariablesView,
it makes sense to move the component directly in the storage inspector
folder.
Since it can't have a controller, the bits where we were checking this
are removed.

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

Depends on D54733
2019-12-03 16:12:33 +01:00
Nicolas Chevobbe c4f9bd5375 Bug 1529917 - Remove VariablesViewController.jsm. r=miker.
It isn't used anywhere, so we can safely remove it.

Differential Revision: https://phabricator.services.mozilla.com/D54733
2019-12-03 16:12:16 +01:00
Mihai Alexandru Michis 5cab368060 Backed out 2 changesets (bug 1529917, bug 1591874) for causing build bustages in VariablesView.jsm CLOSED TREE
Backed out changeset faeca320475a (bug 1591874)
Backed out changeset 9fbb57c24aa0 (bug 1529917)
2019-12-03 17:16:53 +02:00
Nicolas Chevobbe 05ed8dcb50 Bug 1529917 - Remove VariablesViewController.jsm. r=miker.
It isn't used anywhere, so we can safely remove it.

Differential Revision: https://phabricator.services.mozilla.com/D54733
2019-12-03 15:12:16 +00:00
Mihai Alexandru Michis a71823ff99 Backed out 2 changesets (bug 1529917, bug 1591874) for causing bustages in VariablesView.jsm CLOSED TREE
Backed out changeset 0b5282256e00 (bug 1591874)
Backed out changeset 5f8829083bfc (bug 1529917)
2019-12-03 15:16:14 +02:00
Nicolas Chevobbe d994d56f11 Bug 1529917 - Remove VariablesViewController.jsm. r=miker.
It isn't used anywhere, so we can safely remove it.

Differential Revision: https://phabricator.services.mozilla.com/D54733
2019-12-03 11:11:56 +00:00
Narcis Beleuzu cc560f1734 Backed out 2 changesets (bug 1529917, bug 1591874) for build bustages on storage/moz.build . CLOSED TREE
Backed out changeset 6dc649a6a711 (bug 1591874)
Backed out changeset 9301bdb66fb4 (bug 1529917)
2019-12-03 12:24:07 +02:00
Nicolas Chevobbe 676633b5b3 Bug 1529917 - Remove VariablesViewController.jsm. r=miker.
It isn't used anywhere, so we can safely remove it.

Differential Revision: https://phabricator.services.mozilla.com/D54733
2019-12-03 10:10:13 +00:00
Bianca Danforth f825d9f6e8 Bug 1573201 - Add limited write support for extension storage.local data in addon debugger r=miker,rpl
* Update the extensionStorage actor to enable some writing to extension storage.local through the Storage panel client.
* All values in the client are displayed as strings, so the actor must stringify them before sending them to the client and parse them when receiving changes from the client. For this reason, there is currently limited write support.
  * Item values that are JSONifiable (numbers, strings, booleans, object literals, arrays and null) can be edited from the Storage panel.
    * Object literals and arrays are only editable if their values are JSONifiable, with a maximum nested depth of 2 (e.g. an object with a nested object is editable, provided the nested object contains only primitive values). Object literals' keys must also be strings to be editable.
  * Non-JSONifiable values cannot be edited, and will be represented by "{}" in most cases in the panel, though some non-JSONifiable values (undefined, Date, and BigInt) will be displayed as more readable strings.
  * Some modifications are a little more complex, requiring an IndexedDB transaction. This will be handled in a separate patch.
    * Item names cannot be edited from the Storage panel.
    * New items cannot be added from the Storage panel.
  * Any item can be removed.
  * All items can be removed at once.
* In-line comments referencing Bugs 1542038 and 1542039 indicate places where the implementation may differ for local storage versus the other storage areas in the actor.
* The parseItemValue method used in the client was moved to a shared directory, so that the actor could parse string values from the client in its editItem method.

Differential Revision: https://phabricator.services.mozilla.com/D34416
2019-11-22 20:09:59 +00:00
Julian Descottes 2f90ec41e6 Bug 1590408 - Backed out changeset 84708a4f040d from Bug 1552146 r=miker
The positioning of the arrow was correct, but due to the way the arrow was rotated, the visual center of the arrow did not match the center of the arrow box
Backing out the JS change here, CSS patch later in the queue

Differential Revision: https://phabricator.services.mozilla.com/D52668
2019-11-12 15:45:57 +00:00
Julian Descottes 03cdcd7b0a Bug 1593921 - Use eslint-disable-next-line to disable complexity checks in DevTools r=pbro
Using next-line is less error prone for refactorings than wrapping methods with enable/disable blocks.

Differential Revision: https://phabricator.services.mozilla.com/D51782
2019-11-05 14:29:04 +00:00
Julian Descottes 7f97ed5284 Bug 1592517 - Migrate devtools DOMHelpers.jsm from JSM to plain JS module r=ochameau
Depends on D51054

Summary of the changes here:
- move DOMHelpers.jsm to dom-helpers.js
- remove all unused methods
- converted to a static helper to avoid instanciating DOMHelpers objects for no reason
- updated call sites accordingly

Differential Revision: https://phabricator.services.mozilla.com/D51065
2019-10-30 11:25:01 +00:00
Julian Descottes 4c82a6ee65 Bug 1592513 - Move DOMHelpers.jsm from devtools/client/shared/ to devtools/shared/ r=rcaliman
Since I started using this helper in devtools/server/ (Node actor), the file needs to move outside of devtools/client

Differential Revision: https://phabricator.services.mozilla.com/D51053
2019-10-30 11:05:04 +00:00
Nicolas Chevobbe f0ac5d9860 Bug 1591330 - Remove LongStringClient. r=jdescottes.
The LongStringClient is removed and we replace its
usage with LongStringFront instead.
This require a few variable/function renaming, as
well as updating the mocks we use in node tests.

Switch usage to LongStringFront instead.

Differential Revision: https://phabricator.services.mozilla.com/D50579
2019-10-28 16:22:06 +00:00
Nicolas Chevobbe ce25c3f455 Bug 1519103 - Remove Scratchpad panel. r=bgrins.
Differential Revision: https://phabricator.services.mozilla.com/D50583
2019-10-27 09:05:58 +00:00
Nicolas Chevobbe 95fe5fa94a Bug 1589346 - Fix navigation to debugger from console on prettified sources. r=loganfsmyth.
This revert the changes made in Bug 1587839, except the added test.
The safer fix to be uplifted is to only fix the original issue
in the SmartTrace component, where we remove any sourceId we might
have when creating the new mapped frame.

We also modify the browser_dbg-pretty-print-console test to ensure
clicking on a prettified location in the console does open the
debugger with the expected location.

Differential Revision: https://phabricator.services.mozilla.com/D50173
2019-10-25 12:16:52 +00:00
Daniel Varga 468535502e Backed out changeset fac6219649be (bug 1587839) on request by nchevobbe DONTBUILD 2019-10-25 14:56:44 +03:00
Nicolas Chevobbe d5e92c7863 Bug 1587839 - Fix navigation to debugger from console on prettified sources. r=loganfsmyth.
This revert the changes made in Bug 1587839, except the added test.
The safer fix to be uplifted is to only fix the original issue
in the SmartTrace component, where we remove any sourceId we might
have when creating the new mapped frame.

We also modify the browser_dbg-pretty-print-console test to ensure
clicking on a prettified location in the console does open the
debugger with the expected location.

Differential Revision: https://phabricator.services.mozilla.com/D50173
2019-10-25 06:21:18 +00:00
Gabriel Luong 48cdad480d Bug 1574506 - Migrate usage of gripNodeToFront to toolbox's new getNodeFrontFromNodeGrip function. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D49990
2019-10-23 04:38:13 +00:00
Dorel Luca 635737bb36 Backed out changeset bddcd12198e7 (bug 1574506) for Devtools failures in devtools/client/inspector/extensions/test/browser_inspector_extension_sidebar.js. CLOSED TREE 2019-10-23 00:31:21 +03:00
Gabriel Luong 0e218899cd Bug 1574506 - Migrate usage of gripNodeToFront to toolbox's new getNodeFrontFromNodeGrip function. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D49990
2019-10-22 18:53:20 +00:00
Nicolas Chevobbe e3359be848 Bug 1588999 - Rename ObjectClient to ObjectFront. r=ochameau.
The object-client.js file is now a proper protocol.js front,
but is still named after a client.
This is confusing, so we rename and move the file next to other
fronts, and update all consumers to the new terminology.

Differential Revision: https://phabricator.services.mozilla.com/D49878
2019-10-21 12:07:10 +00:00
jaril d0be8e4c8f Bug 1588997 - Convert ObjectClient to protocol.js front. r=nchevobbe.
- Converted the ObjectClient into an protocoljs Front
- Converted the SymbolIteratorClient into a protocoljs Front and moved it to devtools/shared/fronts
- Converted the PropertyIteratorClient into a protocoljs Front and moved it to devtools/shared/fronts
- Converted the EnvironmentClient into a protocoljs Front and moved it to devtools/shared/fronts
- Modified calls to `DebuggerClient.release()` so that it tries to call the ObjectFront's release method first, and falls back on `DebuggerClient.release()` if there's no object front
- Changed reps so that it instantiates only one ObjectClient per grip
- Changed tests so that they expect what the Front's request method resolves to where applicable (i.e. ObjectFront.allocationStack resolves to allocationStack, not a packet object with an allocationStack property)
- Changed callbacks provided to ObjectClient methods to be chained to the ObjectFront methods (e.g. ObjectClient.getScope(callback) changed to ObjectFront.getScope().callback())
- Changed tests to use async/await (test_framebindings-x.js, test_functiongrips-x.js, test_objectgrips-x.js)
- Changed tests to expect protocoljs to throw an error string instead of an error object (test_objectgrips-fn-apply-03.js, test_threadlifetime-02.js, test_pauselifetime-03.js)

Differential Revision: https://phabricator.services.mozilla.com/D48182
2019-10-17 16:06:25 +00:00
Bogdan Tara 799d210151 Backed out changeset 29bc3ebe8b4e (bug 1588997) for browser_ext_devtools_panels_elements_sidebar.js && browser_ext_find.js failures CLOSED TREE 2019-10-17 10:51:19 +03:00
jaril 7c26e8f76b Bug 1588997 - Convert ObjectClient to protocol.js front. r=nchevobbe.
- Converted the ObjectClient into an protocoljs Front
- Converted the SymbolIteratorClient into a protocoljs Front and moved it to devtools/shared/fronts
- Converted the PropertyIteratorClient into a protocoljs Front and moved it to devtools/shared/fronts
- Converted the EnvironmentClient into a protocoljs Front and moved it to devtools/shared/fronts
- Modified calls to `DebuggerClient.release()` so that it tries to call the ObjectFront's release method first, and falls back on `DebuggerClient.release()` if there's no object front
- Changed reps so that it instantiates only one ObjectClient per grip
- Changed tests so that they expect what the Front's request method resolves to where applicable (i.e. ObjectFront.allocationStack resolves to allocationStack, not a packet object with an allocationStack property)
- Changed callbacks provided to ObjectClient methods to be chained to the ObjectFront methods (e.g. ObjectClient.getScope(callback) changed to ObjectFront.getScope().callback())
- Changed tests to use async/await (test_framebindings-x.js, test_functiongrips-x.js, test_objectgrips-x.js)
- Changed tests to expect protocoljs to throw an error string instead of an error object (test_objectgrips-fn-apply-03.js, test_threadlifetime-02.js, test_pauselifetime-03.js)

Differential Revision: https://phabricator.services.mozilla.com/D48182
2019-10-16 17:09:35 +00:00
zhaogang 7f3291dad2 Bug 1578752 - Pass event listener column to debugger for more accurate pretty print. r=davidwalsh
Now the event listener tooltip url in the inspector will have an additional column part for generated file, which will be parsed as location.column to debugger, and the debugger pretty print can correctly create and use source map. It's the same bug as [[ https://bugzilla.mozilla.org/show_bug.cgi?id=1045237 | Bug 1045237]], [[ https://bugzilla.mozilla.org/show_bug.cgi?id=1134798 | Bug 1134798 ]], and [[ https://bugzilla.mozilla.org/show_bug.cgi?id=1175911 | Bug 1175911 ]]

Differential Revision: https://phabricator.services.mozilla.com/D48812
2019-10-16 23:03:15 +00:00
Nicolas Chevobbe f9ea075d15 Bug 1587839 - Pass the sourceId to sourcemap service subscribe callback. r=loganfsmyth.
The sourceId is then used in the various places where we call the sourcemap service.
A test is added in the console to make sure that we do navigate to the mapped
location in the debugger.

Differential Revision: https://phabricator.services.mozilla.com/D49103
2019-10-16 00:16:55 +00:00
Julian Descottes 0eeb6a7703 Bug 1583444 - Reuse DevToolsUtils.getTopWindow in HTMLTooltip r=yzen
Depends on D46958

The getTopWindow logic was duplicated between DevToolsUtils and HTMLTooltip.
This removes the duplication and adds a fixture to the accessibility panel to avoid loading the actual DevToolsUtils file in jest tests.

Differential Revision: https://phabricator.services.mozilla.com/D46959
2019-09-30 09:53:33 +00:00
Michael Ratcliffe 7811ef9747 Bug 1581339 - Inactive CSS: Tooltip wording updates r=flod,fluent-reviewers,pbro
Differential Revision: https://phabricator.services.mozilla.com/D47119
2019-09-26 12:53:28 +00:00
Daisuke Akatsuka 7d2aeaa9f0 Bug 1581008: Add inactive CSS message for properties that are impossible to override. r=pbro,fluent-reviewers,flod
Depends on D45624

Differential Revision: https://phabricator.services.mozilla.com/D45625
2019-09-26 01:53:40 +00:00
Cosmin Sabou dc4273e15c Backed out 2 changesets (bug 1581008) for mochitest failures on test_styles-matched.html. CLOSED TREE
Backed out changeset 1208c70dd3bd (bug 1581008)
Backed out changeset d69f8f5f9db4 (bug 1581008)
2019-09-25 11:51:11 +03:00
Daisuke Akatsuka 603dfbaf00 Bug 1581008: Add inactive CSS message for properties that are impossible to override. r=pbro,fluent-reviewers,flod
Depends on D45624

Differential Revision: https://phabricator.services.mozilla.com/D45625
2019-09-25 07:45:15 +00:00
Michael Ratcliffe 2afac0b5e0 Bug 1580631 - [Inactive CSS] Tooltip should hang off to right side in LTR mode r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D46284
2019-09-24 11:21:46 +00:00
Andreea Pavel d6c7e861b8 Backed out changeset b46946d6e446 (bug 1580631) dt failures at browser_html_tooltip_doorhanger-01.js on a CLOSED TREE 2019-09-20 17:41:19 +03:00
Michael Ratcliffe c41a4ac87a Bug 1580631 - [Inactive CSS] Tooltip should hang off to right side in LTR mode r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D46284
2019-09-20 10:34:29 +00:00
Michael Ratcliffe 35dd1dc712 Bug 1580936 - [Inactive CSS] Final visual polish, Part Two r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D46043
2019-09-19 15:16:11 +00:00
Michael Ratcliffe e106356ad1 Bug 1556201 - Inactive CSS: Clicking on the info icon should not close the tooltip r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D45678
2019-09-18 11:05:48 +00:00
Michael Ratcliffe 5c5ff75b10 Bug 1552146 - [Inactive CSS] Fine tune the tooltip's position in hidpi and non-hidpi modes r=pbro
Differential Revision: https://phabricator.services.mozilla.com/D44846
2019-09-12 10:14:34 +00:00
Julian Descottes 9bc158439b Bug 1578373 - Stop using window.top in devtools/client/shared/widgets/Graphs.js r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D45448
2019-09-12 19:57:44 +00:00
Micah Tigley cff77cea33 Bug 1363970 - Disable touch simulation when color picker is active. r=gl,rcaliman
This patch manually disables touch simulation in places where the color picker is enabled. Alternatively, doing this from InspectorActor's `pickColorFromPage` method requires that we get the associated RDM emulationActor for the tab, which turned out to be more complicated than I thought.

Getting and setting the picker state on the emulation factor retrieved via `getActorByID` does not match the emulationActor handling the touch events. So setting the picker state is indeed working it's just not setting it on the correct one. I'm unsure of how to go about this as the RDM emulationActor and the Inspector actor are entirely separate of each other.

So for now, we disable touch simulation in places where color picker is being enabled. Let me know what you think about this @pbro and @gl .

Differential Revision: https://phabricator.services.mozilla.com/D45593
2019-09-12 18:20:39 +00:00
Brad Werth d2a197b2f5 Bug 1567310 Part 3: Make all devtools callers of getBoxQuads include option to suppress whitespace frames. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D45120
2019-09-12 19:05:52 +00:00
Alexandre Poirot eda0503941 Bug 1578426 - Rename Inspector.target to Inspector.currentTarget. r=pbro
Rename this attribute to better significate that the target is
changing over time when the debugged target navigates to another process.

Differential Revision: https://phabricator.services.mozilla.com/D44632
2019-09-05 14:17:20 +00:00
Julian Descottes 4c37b5a51f Bug 1577409 - Move natural-sort helper to fix Storage panel in remote debugging r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D43922
2019-08-30 07:43:12 +00:00
Gabriel Luong 0d730dbaab Bug 1577282 - Part 3: Convert Spectrum to ES6 Class. r=Maliha
Depends on D43979

Differential Revision: https://phabricator.services.mozilla.com/D43980
2019-08-29 15:01:07 +00:00
Gabriel Luong 7d45f8f7f4 Bug 1577282 - Part 2: Move functions outside of the Spectrum prototype. r=Maliha
Depends on D43978

Differential Revision: https://phabricator.services.mozilla.com/D43979
2019-08-29 14:47:52 +00:00
Gabriel Luong a33b8d14ff Bug 1577282 - Part 1: Move the requires before the constants and format the markup. r=Maliha
Differential Revision: https://phabricator.services.mozilla.com/D43978
2019-08-29 14:40:52 +00:00