Commit Graph
60 Commits
Author SHA1 Message Date
Mark Banner 0666077666 Bug 1826062 - Automatic fixes for upgrading Prettier to 2.8.8. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,calu
Differential Revision: https://phabricator.services.mozilla.com/D177027
2023-05-20 12:26:53 +00:00
Alexandre Poirot caaf5fa378 Bug 1792847 - [devtools] Use absolute URLs to import modules in devtools/client/inspector. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D158375
2022-09-30 15:17:37 +00:00
Sebastian Zartner 3cedc659d1 Bug 1357890 - Improved UX for switching between input boxes in box model view. r=jdescottes
Tabbing through the input boxes now moves the focus one level down when all inputs of a level had focus, starting from the outermost top. This is either `margin-top` for unpositioned elements or `top` for positioned elements. Once the innermost inputs all had focus, the focus jumps back to the outermost top one.

With this change the `getAriaActiveDescendant()` and `setAriaActiveDescendant()` methods were renamed to `getActiveDescendant()` and `setActiveDescendant()` because their functionality doesn't currently rely on ARIA attributes. See the notes at https://bugzilla.mozilla.org/show_bug.cgi?id=1343167#c4.

Differential Revision: https://phabricator.services.mozilla.com/D68902
2021-04-15 08:59:37 +00:00
Razvan Caliman 164b1bc5ec Bug 1623906 - [devtools] Dispatch thunks from Box Model panel React components to show/hide the Box Model Highlighter r=gl
Depends on D79556

This patch is using the approach introduced in D79556 to dispatch thunks (functions) to the Redux store to show/hide the box model highlighter from individual React components instead of passing down the methods through deeply nested trees of components that don't use them.

The Redux `dispatch()` method is passed down via the component tree instead. This enables further usage of dispatching thunks for other scenarios avoiding prop drilling.
The `showBoxModelHighlighterForNode`, `hideBoxModelHighlighter` and `showBoxModelHighlighter` props and methods are removed in favor of the corresponding thunks.

Differential Revision: https://phabricator.services.mozilla.com/D95033
2020-10-29 14:35:53 +00:00
Butkovits Atila a7dc0693bb Backed out 5 changesets (bug 1623906) for node failures. CLOSED TREE
Backed out changeset 92d23f0ea155 (bug 1623906)
Backed out changeset 2af3b0ee91ac (bug 1623906)
Backed out changeset bc7e021e8d98 (bug 1623906)
Backed out changeset 362bad2b7311 (bug 1623906)
Backed out changeset 78d0de3437ab (bug 1623906)
2020-10-29 16:32:29 +02:00
Razvan Caliman 9b3826971e Bug 1623906 - [devtools] Dispatch thunks from Box Model panel React components to show/hide the Box Model Highlighter r=gl
Depends on D79556

This patch is using the approach introduced in D79556 to dispatch thunks (functions) to the Redux store to show/hide the box model highlighter from individual React components instead of passing down the methods through deeply nested trees of components that don't use them.

The Redux `dispatch()` method is passed down via the component tree instead. This enables further usage of dispatching thunks for other scenarios avoiding prop drilling.
The `showBoxModelHighlighterForNode`, `hideBoxModelHighlighter` and `showBoxModelHighlighter` props and methods are removed in favor of the corresponding thunks.

Differential Revision: https://phabricator.services.mozilla.com/D95033
2020-10-29 14:04:42 +00:00
Marco Zehe 6d37da7553 Bug 1644343 Part 3 - Make the box model understandable to screen reader users, r=yzen,flod
This patch adds IDs to all the box divs so they can be referenced by ARIA attributes. The actual legend spans also act as region landmarks with an associated level so the nesting is relayed.

In addition, each of those boxes gets the buttons for its dimensions rendered in-place so for assistive technologies, this all follows a logical flow. aria-owns changes the accessibility tree so the nesting and associated properties are grouped together.

The actual buttons also receive a localizable aria-label that is a combination of the button text and title, so screen reader users not only hear "0 button" without knowing immediately what that button actually belongs to. Title is secondary information.

Differential Revision: https://phabricator.services.mozilla.com/D78953
2020-06-12 12:08:09 +00:00
Jason Laster 3694ec93d0 Bug 1622996 - Refactor devtools codebase to use optional chaining (automated changes). r=jdescottes
Depends on D67084

Differential Revision: https://phabricator.services.mozilla.com/D67537
2020-03-19 21:13:38 +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
Victor Porof b7732ae890 Bug 1561435 - Format devtools/client/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35884
2019-07-05 11:24:38 +02:00
Micah Tigley e131be7ad1 Bug 1493677 - Link box-model values to their source CSS rules. r=gl
This patch allows hovering over box-model values and scrolling to their source CSS rule while pressing down the shift-key,

Differential Revision: https://phabricator.services.mozilla.com/D18772
2019-02-25 15:14:12 +00:00
Julian Descottes deb498a8cc Bug 1500936 - Run eslint --fix on devtools/client/inspector for comma-dangle;r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D9409
2018-10-23 07:08:24 +00:00
Michael Ratcliffe 2c4135ce48 Bug 1493937 - Highlighting the various margin/border/padding/content regions from the box-model does not work anymore r=pbro
Differential Revision: https://phabricator.services.mozilla.com/D8020
2018-10-09 07:41:35 +00:00
Gabriel Luong 31269cb159 Bug 1494162 - Part 44: Use refs instead of findDOMNode. r=pbro 2018-10-02 12:22:32 -04:00
Gabriel Luong 816770304a Bug 1485115 - Format the React and Redux components in the Box Model and Grid Inspector. r=rcaliman 2018-08-22 13:18:46 -04: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
Gabriel Luong 6430ebe406 Bug 1459377 - Stop translating position in the box-model diagram. r=pbro 2018-05-07 12:33:41 -04:00
Gabriel Luong 77dfdc6a3a Bug 1457440 - Stop translating margin, padding, border in the box-model diagram. r=bgrins 2018-04-27 15:52:34 -04:00
Lawson Cofield 0bb17a0225 Bug 1436549 - Implement the photon redesign of the box model. r=pbro 2018-03-14 00:27:15 -04:00
Gurzau Raul 335f9beaae Backed out changeset 2afa73fb650a (bug 1436549) for devtools failures on /boxmodel/test/browser_boxmodel_guides.js 2018-03-14 07:46:03 +02:00
Lawson Cofield 3766a6229c Bug 1436549 - Implement the photon redesign of the box model. r=pbro 2018-03-14 00:27:15 -04:00
Michael Ratcliffe d8b122fcc7 Bug 1420130 - Remove React Proxy Monkeypatch r=gregtatum
MozReview-Commit-ID: 9L9PYPDGTmj
2018-02-13 13:26:03 +00:00
[email protected] 9a77f9fcc6 Backed out changeset 84ab509808e7 (bug 1420130) for mochitest failures on /browser_fontinspector_expand-css-code.js 2018-02-21 00:33:09 +02:00
Michael Ratcliffe a71b47bae3 Bug 1420130 - Remove React Proxy Monkeypatch and see how it affects DAMP r=gregtatum
MozReview-Commit-ID: 9L9PYPDGTmj
2018-02-13 13:26:03 +00:00
Michael Ratcliffe 03ff37c74a Bug 1415554 - Inspector to use prop-types and react-dom-factories r=gl
MozReview-Commit-ID: 7NxFwgFLDAL
2017-11-08 18:55:58 +00:00
Michael Ratcliffe d98be85d67 Bug 1410119 - Inspector: Switch to ES6 classes r=gl
MozReview-Commit-ID: 6GDY1MloCAd
2017-10-24 13:33:42 +01:00
Gabriel Luong e20475ce03 Bug 1390298 - Change the fonts used in the Inspector. r=bgrins 2017-08-15 19:21:49 -07:00
Gabriel Luong fe9b2ee668 Bug 1379109 - Make x and y dimensions default to -x- instead of undefined x undefined. r=micah 2017-07-25 21:01:51 -04:00
Patrick Brosset 09bac40d91 Bug 1355267 - Polish the properties list and remove the position info at the top; r=gl
MozReview-Commit-ID: CoT9fO2w8Tb
2017-04-24 18:42:06 +02:00
nchevobbe d8840a78b0 Bug 1358103 - Remove createFactory call on Reps; r=jdescottes
The new Reps bundle from Bug 1357341 is all about functions now,
so we should remove all unnecessary `createFactory` calls
we used to do when creating Reps.

MozReview-Commit-ID: 4KvCThhwphv
2017-04-21 08:50:24 +02:00
Gabriel Luong dc8ea4459f Bug 1343167 - Add navigation for the box model's position, padding, border, margin and content layout. r=jdescottes 2017-04-06 11:24:38 -04:00
Phil Ringnalda c483a4a456 Backed out changeset 94720e6beec3 (bug 1343167) for still failing browser_inspector_textbox-menu.js too often
CLOSED TREE
2017-04-11 19:20:32 -07:00
Gabriel Luong 9ff7e33162 Bug 1343167 - Add navigation for the box model's position, padding, border, margin and content layout. r=jdescottes 2017-04-06 11:24:38 -04:00
Gabriel Luong fdf98b4cf2 Bug 1350046 - Fix react-related errors in the layout panel. r=jdescottes 2017-04-07 13:11:33 -04:00
Phil Ringnalda fa2493e3b6 Backed out 2 changesets (bug 1343167) for mass failures in browser_inspector_textbox-menu.js
Backed out changeset 6aa495cd9908 (bug 1343167)
Backed out changeset 98d4fa0f8bf8 (bug 1343167)
2017-04-06 21:01:43 -07:00
Gabriel Luong 43872cab17 Bug 1343167 - Fix eslint errors in BoxModelMain.js. r=me 2017-04-06 12:08:35 -04:00
Gabriel Luong 4de2240a29 Bug 1343167 - Add navigation for the box model's position, padding, border, margin and content layout. r=jdescottes 2017-04-06 11:24:38 -04:00
Gabriel Luong f42a1e9255 Bug 1349216 - Fix NaN shown in the Box Model's positions. r=pbro 2017-03-28 11:13:41 -04:00
Gabriel Luong 9dffb4f87e Bug 1348169 - Fix NaN shown in the Box Model's margins. r=pbro 2017-03-28 11:13:32 -04:00
Stanford Lockhart 41f2b4f7d1 Bug 1345119 - Part 3: Display offset parent of absolutely positioned node in box model. r=gl
MozReview-Commit-ID: 102vRTuIhEh
2017-03-17 23:07:06 -03:00
Iris Hsiao 206cfb29fd Backed out 5 changesets (bug 1345119) dor mochitest failure in test_inspector_getOffsetParent.html
Backed out changeset c9be65ad95f6 (bug 1345119)
Backed out changeset 4e4817e5b6d4 (bug 1345119)
Backed out changeset 6a01debcc43c (bug 1345119)
Backed out changeset 2c6f67f420d0 (bug 1345119)
Backed out changeset ba020c15393d (bug 1345119)
2017-03-24 15:01:47 +08:00
Stanford Lockhart be0a7b560b Bug 1345119 - Part 3: Display offset parent of absolutely positioned node in box model. r=gl
MozReview-Commit-ID: 102vRTuIhEh
2017-03-17 23:07:06 -03:00
Sebastian Hengst 2ba83c0a8d Backed out changeset 14ff5693848f (bug 1345119) 2017-03-23 22:00:22 +01:00
Stanford Lockhart d3d66bdc66 Bug 1345119 - Part 3: Display offset parent of absolutely positioned node in box model. r=gl
MozReview-Commit-ID: 102vRTuIhEh
2017-03-17 23:07:06 -03:00
Sheldon Roddick 1cfbed8c0d Bug 1061823 - Allow to edit width and height in the box model. r=gl 2017-03-14 23:58:53 -07:00
Stanford Lockhart c1147d5e72 Bug 940275 - Part 1: Add positioning properties to box model r=gl
MozReview-Commit-ID: AB5fREjDhsD
2017-02-28 18:18:28 -04:00
Gabriel Luong 7b1d35d588 Bug 1336198 - Part 9: Use existing box model tests with the new react/redux box model. r=jdescottes
MozReview-Commit-ID: HrqeP2X35t
2017-02-22 19:26:57 +01:00
Gabriel Luong a5ce266808 Bug 1336198 - Part 6: Refactor box model component into boxmodel/. r=jdescottes 2017-02-24 01:37:44 -05:00