Commit Graph
37 Commits
Author SHA1 Message Date
Julian Descottes 289d1eb14c Bug 1590050 - Preserve markup view selection in iframes after reload r=rcaliman,gl
Depends on D49940

To support this feature we perform two main changes
- the node actor exposes a getAllSelectors method, and the inspector now stores all selectors rather than just one
- the node actor exposes a waitForFrameLoad method, and the walkerFront findNodeFront helper uses it to make sure frames are loaded before querying a selector

Also added a test

Differential Revision: https://phabricator.services.mozilla.com/D49941
2019-10-28 07:55:14 +00:00
yulia a22cc8012c Bug 1574401 - remove nodeFront's connectToFrame r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D45368
2019-10-02 09:49:02 +00:00
Gabriel Luong 20052248e9 Bug 1568157 - Part 3: Replace toolbox.highlighter with the contextual HighlighterFront. r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D40316
2019-08-27 19:13:45 +00:00
yulia c082c60517 Bug 1575490 - move inspector browser toolbox pref from the server to the client; r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D42817
2019-08-21 10:49:21 +00:00
Gabriel Luong e5c013e044 Bug 1572460 - Refactor selection out of the InspectorFront. r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D41314
2019-08-14 05:07:38 +00:00
Gabriel Luong d0d27b984e Bug 1569023 - Expose a helper on protocol's Front class to help retrieve the parent front. r=ochameau,yulia
Differential Revision: https://phabricator.services.mozilla.com/D39610
2019-08-14 04:51:20 +00:00
yulia 1eb63569c7 Bug 1560200 - Implement very basic markup view support traversing remote frames via resource api. r=ochameau,rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D39525
2019-08-13 11:54:06 +00:00
Julian Descottes c632e13c61 Bug 1572390 - Split main.js in debugger-server and debugger-server-connection r=yulia,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D41009
2019-08-08 12:44:13 +00:00
Victor Porof 435f7b056d Bug 1561435 - Format remaining devtools/, a=automatic-formatting, CLOSED TREE
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35894
2019-07-05 11:29:32 +02:00
Gabriel Luong 904f583885 Bug 1550030 - Part 1: Implement the DOM mutation breakpoint context menu items in the markup view. r=loganfsmyth,jdescottes
This implements the context menu items for the DOM mutation breakpoint.
In addition, there were some server changes to:
- Update the mutationBreakpoints form for the NodeActor
- Expose the mutationBreakpoints form
- Moved the setMutationBreakpoints method from the Node spec to Walker spec
since the Node spec only consisted of getter methods. It made more sense
that the setter went into the Walker spec to be more consistent with how
the Walker and Node spec have been arranged.

Unit tests will be followed up in Part 2 immediately.

Differential Revision: https://phabricator.services.mozilla.com/D36074
2019-06-26 15:16:22 -04:00
Ian Moody 228ec24d3b Bug 1539265 - Don't represent ::marker pseudo-elements with the internal _moz_generated_content_marker tagName in the markup view. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D25108
2019-04-02 07:45:55 +00:00
Ian Moody 43a3bc171c Bug 1539265 - Add isMarkerPseudoElement function to layout/utils.js. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D25105
2019-04-02 07:45:38 +00:00
arthur.iakab 215148fa05 Backed out 11 changesets (bug 1539265) for causing debugger failures CLOSED TREE
Backed out changeset 8206b880f9ec (bug 1539265)
Backed out changeset be9f5f73bdfe (bug 1539265)
Backed out changeset f78146b8aa17 (bug 1539265)
Backed out changeset 18fa7e971a0d (bug 1539265)
Backed out changeset 6eaf5bdd945c (bug 1539265)
Backed out changeset 3add7d4d4853 (bug 1539265)
Backed out changeset 8015aeb5279d (bug 1539265)
Backed out changeset 19c8e404ac5f (bug 1539265)
Backed out changeset 637a9d6af0f3 (bug 1539265)
Backed out changeset 72bbb4b28932 (bug 1539265)
Backed out changeset 931e98129878 (bug 1539265)
2019-04-02 02:44:43 +03:00
Ian Moody d38e8fb20a Bug 1539265 - Don't represent ::marker pseudo-elements with the internal _moz_generated_content_marker tagName in the markup view. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D25108
2019-04-01 21:45:49 +00:00
Ian Moody ad58f26914 Bug 1539265 - Add isMarkerPseudoElement function to layout/utils.js. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D25105
2019-04-01 21:45:33 +00:00
Alexandre Poirot ada6cda619 Bug 1515862 - Remove detail feature from protocol.js. r=jdescottes
This feature is only used by node and domrulestyle actors and that, only for actor ID.
Instead of this, support this "pass only actor ID rather than full form" feature
in a more dedicated way.

We might followup on that to clarify/simplify doing this: passing only the actor ID
rather than its full form.

Depends on D17613

Differential Revision: https://phabricator.services.mozilla.com/D17614
2019-01-28 18:42:46 +00:00
Alexandre Poirot 9c8fe6f7ad Bug 1515862 - Remove unecessary usages of actorid checks in actor and front's form method. r=jdescottes
Remove all actorid checks in actors and fronts as we never pass a defined `detail` argument in them.
Only domstylerule and node are using detail and that, always with detail="actorid".
Also remove ctx and detail in Front constructor as that's not used by these two actors.

Depends on D17612

Differential Revision: https://phabricator.services.mozilla.com/D17613
2019-01-28 18:42:39 +00:00
Patrick Brosset e91c7dfa97 Bug 1521776 - Add new scrollable markup badges; r=gl
Detect when nodes are scrollable on the actor side, and use this
information to display new [scrollable] markup-badges in the inspector.
Also track this dynimically so badges are added/removed when necessary.
Hide this behind a pref for now, until this gets tested by users and
validated.

Differential Revision: https://phabricator.services.mozilla.com/D17246
2019-01-23 14:07:47 +00:00
Alexandre Poirot 1493f975e8 Bug 1515116 - Remove all useless constructor methods on Fronts. r=jdescottes
Depends on D14914

Differential Revision: https://phabricator.services.mozilla.com/D14915
2019-01-03 10:09:42 +00:00
Alexandre Poirot e5d8b0ff84 Bug 1515116 - Remove all useless destroy methods on Fronts. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D14914
2019-01-03 10:09:40 +00:00
Alexandre Poirot 62db72cbb3 Bug 1510949 - Make protocol.js support es6 classes for fronts. r=yulia
MozReview-Commit-ID: JegR2JsyNrI

Differential Revision: https://phabricator.services.mozilla.com/D13780
2018-12-11 16:32:41 +00: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
Julian Descottes 888af123e8 Bug 1443923 - part1: Return script location for shadow host in NodeActor form;r=bgrins
MozReview-Commit-ID: CLmOqqAa123
2018-07-05 09:47:56 +02:00
Belén Albeza eec05e72ba Bug 1473901 - show shadow root mode. r=bgrins
MozReview-Commit-ID: Axt9W0uX4FB
2018-07-11 14:53:51 +02:00
Julian Descottes 9e691865a0 Bug 1465873 - part6: Allow selection and breadcrumbs to walk from shadowRoot to host element;r=bgrins
By returning the shadow root as the parentNode of some elements, the breadcrumbs could no longer
display the chain of elements correctly, because shadowRoot.parentNode is null.

This changeset:
- returns the host actor ID as part of the shadowRoot form
- adds a parentOrHost convenience method on the node form
- uses said method in selection and breadcrumbs when walking up the ancestor chain

I don't think we should unconditionally return the host element as the parentNode of the
shadow root, because that is too disconnected from the reality.

MozReview-Commit-ID: JLeDb4VuT1q
2018-06-28 13:11:08 +02:00
Julian Descottes 82711b9a8f Bug 1454696 - Run eslint --fix for prefer-const;r=yulia
MozReview-Commit-ID: F6xUXCgdRE4
2018-06-01 12:36:09 +02:00
Boris Zbarsky 8a166e6246 Bug 1455676 part 17. Stop using nsIDOMNode in devtools/. r=jdescottes 2018-05-29 22:58:50 -04:00
Patrick Brosset 69083c6a14 Bug 1460223 - Handle computedStyle.display failures for non-elements; r=gl
MozReview-Commit-ID: 9raK8Tkl4GI
2018-05-15 10:20:03 +02:00
Alexandre Poirot 2ed4e3ab48 Bug 1453385 - Remove NodeActor custom form attributes. r=Honza
This feature introduced in bug 1036949 is not longer used as it was designed for XUL add-ons.
The setFormProperty method was prevently Node's form from getting correctly
serialized between processes.

MozReview-Commit-ID: AiNnHSkwsEM
2018-04-11 08:54:27 -07:00
Julian Descottes 9d4b9615ea Bug 1053898 - Update NodeActor with new properties to detect slotted nodes in markup-view;r=bgrins
Instead of filtering light DOM nodes in the actor, return enough information
for the markup-view to filter out the nodes itself. The nodes will be displayed
in a later changeset when the markup view can accommodate several containers
for a single nodeFront.

MozReview-Commit-ID: LFKYU24BLZB
2018-03-06 18:31:46 +01:00
Julian Descottes 71c313579d Bug 1053898 - Update markup view to display shadow roots as #shadow-root;r=bgrins
MozReview-Commit-ID: 36Zr2P6j6W6
2018-03-05 16:41:43 +01:00
J. Ryan Stinnett 8d1c817851 Bug 1443081 - Apply spacing via eslint --fix for DevTools. r=jdescottes
MozReview-Commit-ID: 2RVNt140Zte
2018-03-12 13:44:41 -05:00
Gabriel Luong 391b22aa00 Bug 1431900 - Add a display node to indicate the display value of an element in the markup view. r=pbro 2018-02-06 23:50:56 -05:00
Dorel Luca 312fe57be7 Backed out changeset ed63734c2be4 (bug 1431900) for Browser-Chrome failures on browser/base/content/test/static/browser_misused_characters_in_strings.js 2018-02-07 11:40:18 +02:00
Gabriel Luong 41fc3aff17 Bug 1431900 - Add a display node to indicate the display value of an element in the markup view. r=pbro 2018-02-06 23:50:56 -05:00
Alexandre Poirot 7e1be13a0a Bug 1399589 - Move domnodelist, disconnectedNode and disconnectedNodeArray to node spec and front. r=jdescottes
MozReview-Commit-ID: B5l1X4pc2Kf
2017-10-03 17:19:56 +02:00
Alexandre Poirot 48d30de94b Bug 1399589 - Move NodeFront to its own module. r=jdescottes
MozReview-Commit-ID: EVeaFmqAmKL
2017-10-02 17:14:38 +02:00