Commit Graph

136 Commits

Author SHA1 Message Date
Gabriel Luong
dafeee7703 Bug 1468002 - Set the initial grid highlighter settings in the reducer. r=pbro 2018-06-11 16:33:41 -04:00
Joel Maher
50b91c0a14 Bug 1405428 - skip-if = verify on mochitests which do not pass test-verify. r=gbrown 2018-06-10 05:01:47 -04:00
Gabriel Luong
de8e85038b Bug 1466794 - Make sure the highlighters overlay is initialized for the grid inspector. r=pbro 2018-06-07 11:54:42 -04:00
Julian Descottes
640fe52298 Bug 1454696 - Run eslint --fix for prefer-const;r=yulia
MozReview-Commit-ID: F6xUXCgdRE4

--HG--
extra : rebase_source : 65de1b0aba412d9044b5196115f74276caa058f2
2018-06-01 12:36:09 +02:00
Gabriel Luong
49ca27c991 Bug 1464314 - Lazy load utils in the grid inspector. r=pbro 2018-05-25 13:28:11 -04:00
Gabriel Luong
65f7a4fa73 Bug 1458767 - Lazy require the HighlightersOverlay in the Inspector. r=pbro 2018-05-24 14:09:02 -04:00
Michael Ratcliffe
3df73f73cd Bug 1458206 - telemetry.js: Cleanup toolOpened/toolClosed r=jdescottes
The methods have been improved and now live in telemetry.js again.

We use these methods for tools that at least require timing.

MozReview-Commit-ID: 2CqBCA9j3XU

--HG--
extra : rebase_source : faa489ea4790db55648301be842f55cea308ce29
2018-05-04 18:00:04 +01:00
Michael Ratcliffe
30e6b8b177 Bug 1458203 - telemetry.js: Rename all log* methods r=jdescottes
MozReview-Commit-ID: 9QcRGkXCq71

--HG--
extra : rebase_source : a2dcf7c3b8c58aba0afccd83377ffe2855862b02
2018-05-09 09:53:49 +01:00
Michael Ratcliffe
764c4c8578 Bug 1098374 - Telemetry: Stop all monkey patching in devtools telemetry tests r=yulia
Changes and notes:
  - Created `devtools/client/shared/test/telemetry-test-helpers.js`, which
    contains test helpers to aid in creating and running telemetry tests.
  - Removed any telemetry monkeypatching as it is not dependable and no longer
    needed (there is some left in GCLI but the test is now disabled because
    we are removing GCLI soon anyhow).
  - Because `telemetry-test-helpers.js` is imported by `shared-head.js` I
    have had to make it available everywhere that shared-head.js is used.
  - All telemetry tests have been rewritten to use the new helper.
  - shared-head.js cannot be imported by tests inside
    `devtools/client/performance/test/` because perf have custom `once` and
    `waitFor` implementations that act differently from the ones inside
    `shared-head.js`. This means I had to import the telemetry helpers into
    `devtools/client/performance/test/head.js`
  - Created `devtools/client/shared/test/browser_telemetry_misc.js` to be sure
    to catch `DEVTOOLS_SCREEN_RESOLUTION_ENUMERATED_PER_USER` (we catch a few
    others to be thorough).
  - Disabled `browser_inspector_menu-02-copy-items.js`, which was failing to
    test some expired scalars. I also corrected the way the scalars are logged
    because it was completely wrong.

MozReview-Commit-ID: JjQEGM6hT61

--HG--
extra : rebase_source : cd1214d01bd11908f69167839975cd93ecb83421
2018-05-01 18:06:14 +01:00
Gabriel Luong
e57ddbdf5a Bug 1456680 - Part 6: Refactor getting the grid highlighter settings logic into HighlightersOverlay. r=pbro
- Refactor the logic for getting the grid highlighter settings into HighlightersOverlay.js
- Refactor the grid area and cell highlight into a single function in grid-inspector.js
- Change the order of the parameters for onHighlighterChange in grid-inspector.js
- Get the last highlighted state from the Redux store instead of storing them in a variable
2018-04-30 14:38:02 -04:00
Gabriel Luong
123a6f8fe2 Bug 1456680 - Part 5: Remove unused onShowGridLineNamesHighlight method. r=pbro 2018-04-30 14:35:43 -04:00
Gabriel Luong
fde38ad4fd Bug 1456680 - Part 1: Store the grid highlighter setting in HighlightersOverlay. r=pbro
Extract loading the grid highlighter setting into HighlightersOverlay. This
allows the grid highlighter toggle in the rule view to also show the grid
highlighter with the currently set highlight settings if the grid inspector
has not been initiated yet.
2018-04-30 14:33:48 -04:00
Bogdan Tara
55af40da2e Backed out 4 changesets (bug 1456680) for failing dt at devtools/client/inspector/grids/test/browser_grids_grid-outline-highlight-area.js CLOSED TREE
Backed out changeset 232bed10f4d8 (bug 1456680)
Backed out changeset cfa4b6d2be06 (bug 1456680)
Backed out changeset aef2d7d27ff1 (bug 1456680)
Backed out changeset 80f9a47393ed (bug 1456680)
2018-05-01 09:31:16 +03:00
Gabriel Luong
8de1d457b7 Bug 1456680 - Part 6: Refactor getting the grid highlighter settings logic into HighlightersOverlay. r=pbro
- Refactor the logic for getting the grid highlighter settings into HighlightersOverlay.js
- Refactor the grid area and cell highlight into a single function in grid-inspector.js
- Change the order of the parameters for onHighlighterChange in grid-inspector.js
- Get the last highlighted state from the Redux store instead of storing them in a variable
2018-04-30 14:38:02 -04:00
Gabriel Luong
60f57af35a Bug 1456680 - Part 5: Remove unused onShowGridLineNamesHighlight method. r=pbro 2018-04-30 14:35:43 -04:00
Gabriel Luong
6441460e7d Bug 1456680 - Part 1: Store the grid highlighter setting in HighlightersOverlay. r=pbro
Extract loading the grid highlighter setting into HighlightersOverlay. This
allows the grid highlighter toggle in the rule view to also show the grid
highlighter with the currently set highlight settings if the grid inspector
has not been initiated yet.
2018-04-30 14:33:48 -04:00
Gabriel Luong
63837b4686 Bug 1455641 - Remove unnecessary catch from setSelectedNode calls. r=pbro 2018-04-26 11:28:02 -04:00
Andreea Pavel
7a4b9a3f56 Merge mozilla-inbound to mozilla-central. a=merge
--HG--
extra : rebase_source : 66bd87105d99036ada5008499ff0eaea579b531a
2018-04-06 13:20:21 +03:00
Patrick Brosset
8fb4c9df72 Bug 1446316 - Removing the unused and broken new colorPicker widget; r=gl
MozReview-Commit-ID: 93vY0NjL1pK

--HG--
extra : rebase_source : 3039fbd74608c9f81e1cf9863c0f50960ceae1da
2018-04-05 22:29:48 +02:00
Gabriel Luong
e9ff3da166 Bug 1433611 - Adjust the widths of the split box on toggling on the 3 pane inspector. r=pbro
When the inspector is in landscape mode, it will first try to toggle on the 3 pane mode by
creating a middle/bottom-left panel with the same sidebar width, but if doubling the
original  sidebar width will be bigger than half of the toolbox's width, we will instead
toggle on the 3 pane mode with all panels being of equal widths.

When the inspector is in portrait mode, it will just toggle on its T shape pane such that
the 2 bottom panes are equal widths.

We also increased the breakpoint width of the toolbox's side view to 1000px so that it
will keep its T shape in portrait mode until the toolbox's width is bigger than 1000px.
2018-04-05 14:21:13 -04:00
Julian Descottes
df3e1babbb Bug 1053898 - Update framework/selection setNodeFront signature to use object argument;r=gl
Both reason and isSlotted arguments of setNodeFront are optional, switching to an
object argument avoids weird calls such as setNodeFront(front, null, true) in favor
of a more explicit setNodeFront(front, { isSlotted: true });

MozReview-Commit-ID: A6nziH3QQYe

--HG--
extra : rebase_source : e5bde9e74369e1b0fb2e1d1a0a2b31a0131caacd
2018-03-05 14:15:57 +01:00
Alexandre Poirot
e9acb1b498 Bug 1444033 - Convert Task.jsm to async/await in devtools/client/inspector. r=jryans 2018-03-23 02:49:00 +02:00
Margareta Eliza Balazs
cdccb66d47 Backed out changeset 610872970d04 (bug 1444033) for ES lint failure in /builds/worker/checkouts/gecko/devtools/client/inspector/test/head.js on a CLOSED TREE 2018-03-23 02:06:53 +02:00
Alexandre Poirot
779fe85e35 Bug 1444033 - Convert Task.jsm to async/await in devtools/client/inspector. r=jryans
MozReview-Commit-ID: 3Gek7xhypx3
2018-03-22 15:13:00 -04:00
yulia
6267577292 Bug 1382600 - update inspector/shared to new event emitter. r=nchevobbe,pbro
MozReview-Commit-ID: LvRT0b6rpu3

--HG--
extra : rebase_source : 2ec1ebed5d42c1d272a6c547cb3e1125430b380c
2018-03-15 17:08:09 +01:00
J. Ryan Stinnett
23ff4cc75d Bug 1443081 - Apply spacing via eslint --fix for DevTools. r=jdescottes
MozReview-Commit-ID: 2RVNt140Zte
2018-03-12 13:44:41 -05:00
J. Ryan Stinnett
724f46419e Bug 1436187 - Move existing shared head files to devtools/client/shared. r=bgrins
Move shared-head.js and shared-redux-head.js into shared.

MozReview-Commit-ID: 5NUxcl9gkLl

--HG--
rename : devtools/client/framework/test/shared-head.js => devtools/client/shared/test/shared-head.js
rename : devtools/client/framework/test/shared-redux-head.js => devtools/client/shared/test/shared-redux-head.js
extra : rebase_source : c6f6cd75a9c1a5349f8406f337c9c39f2f755dab
2018-03-02 19:14:05 -06:00
Cosmin Sabou
0bc675f657 Backed out 4 changesets (bug 1436187) for mochitest devtools failures at browser_se_editors-error-gutter.js on a CLOSED TREE
Backed out changeset 253f74e28723 (bug 1436187)
Backed out changeset 9875771c9967 (bug 1436187)
Backed out changeset b2d808aa8c2e (bug 1436187)
Backed out changeset e747480f3cd2 (bug 1436187)

--HG--
rename : devtools/client/shared/test/shared-head.js => devtools/client/framework/test/shared-head.js
rename : devtools/client/shared/test/shared-redux-head.js => devtools/client/framework/test/shared-redux-head.js
rename : devtools/client/shared/test/frame-script-utils.js => devtools/client/shared/frame-script-utils.js
2018-03-07 22:04:35 +02:00
J. Ryan Stinnett
5ff93bf9fd Bug 1436187 - Move existing shared head files to devtools/client/shared. r=bgrins
Move shared-head.js and shared-redux-head.js into shared.

MozReview-Commit-ID: 5NUxcl9gkLl

--HG--
rename : devtools/client/framework/test/shared-head.js => devtools/client/shared/test/shared-head.js
rename : devtools/client/framework/test/shared-redux-head.js => devtools/client/shared/test/shared-redux-head.js
extra : rebase_source : 58e35632f0a82b0d7e880b0297306500097676e3
2018-03-02 19:14:05 -06:00
Patrick Brosset
bfb878c6fe Bug 1441462 - Avoid crashing the gridOutline when there are no fragments; r=gl
MozReview-Commit-ID: 6TpYB4f33JI

--HG--
extra : rebase_source : 42746bb549f9b5bda549d08e259bb28c1f15abd2
2018-03-06 21:29:14 +01:00
Erica Wright
1d0db76459 Bug 1401847 - Custom layout grid colors should be restored per domain. r=jdescottes
MozReview-Commit-ID: GYrZl3r7040

--HG--
extra : rebase_source : 82009f93bacf7cb2fccee7cf187d2a52980d4457
2018-02-16 10:40:09 -05:00
J. Ryan Stinnett
a17e3637e6 Bug 1430919 - Enable grid highlighter writing mode support. r=gl
As well as flipping the pref on, this also moves the pref to the common all.js
prefs file because the pref is used by DevTools server code.

MozReview-Commit-ID: GfkLfXg1EiR

--HG--
extra : rebase_source : 952dcc4bce3f9f2ae598a98be3b63a70ba4068b2
2018-02-12 12:49:22 -06:00
J. Ryan Stinnett
bc3b52e35a Bug 1430918 - Rotate grid outline for writing mode. r=gl
Adjust the grid outline in the Inspector's Layout panel as needed to match the
writing mode and text direction of the grid container.

MozReview-Commit-ID: Ggcp1e4ZipE

--HG--
extra : rebase_source : e9acadc8837ad3c05c038a2156272c9eff8c7330
2018-02-10 22:03:12 -06:00
J. Ryan Stinnett
7d9ba081d2 Bug 1430918 - Draw grid outline from origin. r=gl
The transforms that can be applied to the grid outline to adjust for writing
mode may include translation and reflection based on the outline's width or
height.  To achieve the expected result, we need to start drawing the outline at
(0, 0) instead of (1, 1).

MozReview-Commit-ID: HjbREuyNpvH

--HG--
extra : rebase_source : c8dadf60f7d4d4ee9763e29fb6d1ab878beb5afd
2018-02-11 18:52:02 -06:00
Gabriel Luong
9f8c11489e Bug 1432599 - Part 2: Display the current flex container element in the flexbox panel and allow for toggling of the flexbox highlighter. r=pbro 2018-02-07 15:57:46 -05:00
Alexandre Poirot
e563788ea7 Bug 1434374 - Auto-rewrite Cu.import into ChromeUtils.import or require calls. r=jdescottes
MozReview-Commit-ID: 7YyLu5q23Hs

--HG--
extra : rebase_source : bb2805652c85d74a3e888326f4afa4b6857afa64
2018-02-07 01:37:36 -08:00
Andrew McCreight
5dec0e0beb Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG

--HG--
extra : rebase_source : d9c41878036c1ef7766ef5e91a7005025bc1d72b
2018-02-06 09:36:57 -08:00
Gabriel Luong
86b49a3834 Bug 1432599 - Part 1: Refactor translateNodeFrontToGrip function to inspector shared utils. r=pbro 2018-02-05 13:47:10 -05:00
Gabriel Luong
8b2109ede1 Bug 1427392 - Scroll into view the grid container when clicking on the inspect icon. r=pbro 2018-01-05 12:28:39 -05:00
Florian Quèze
0f55cd45be Bug 1421992 - script-generated patch to replace do_execute_soon, do_print and do_register_cleanup with executeSoon, info and registerCleanupFunction, rs=Gijs. 2017-12-21 11:10:23 +01:00
Julian Descottes
e735cf1383 Bug 1420179 - support tab argument in devtools shared-head refreshTab;r=nchevobbe
The tab argument was unused in the method. All the call sites have been updated to
stop providing this argument. The method now supports an optional tab argument.
It defaults to the selected tab if no argument is provided.

MozReview-Commit-ID: 621dgljHdtD

--HG--
extra : rebase_source : 676c998cb4b2f126d9ee075760e2d7d30078344b
2017-11-23 16:31:48 +01:00
Julian Descottes
740c32a7eb Bug 1403871 - rename getAllGrids to getGrids;r=gl
MozReview-Commit-ID: I9MZ2mrVMiT

--HG--
rename : devtools/server/tests/browser/browser_layout_getAllGrids.js => devtools/server/tests/browser/browser_layout_getGrids.js
extra : rebase_source : c1aaa0195adea95e1158edb6943060e73684a605
2017-11-21 17:31:50 +01:00
Coroiu Cristina
6a04305b5d Merge mozilla-central to inbound. r=merge a=merge on a CLOSED TREE 2017-11-14 12:31:45 +02:00
Michael Ratcliffe
41dd42c3c4 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
Mark Banner
c32982b1f3 Bug 1371293 - Fix instances of padded-blocks failures after ESLint 4 upgrade. r=miker
MozReview-Commit-ID: I9sfn7n7UBs

--HG--
extra : rebase_source : e210706366189a26e3a827502f0de60e6ba1fdba
2017-11-06 13:45:49 +00:00
Gabriel Luong
c50ffac88e Bug 1411160 - Adds an initial react/redux template for loading a Changes View in the inspector sidebar. r=pbro
--HG--
rename : devtools/client/inspector/fonts/components/App.js => devtools/client/inspector/fonts/components/FontsApp.js
rename : devtools/client/inspector/layout/components/App.js => devtools/client/inspector/layout/components/LayoutApp.js
2017-10-26 11:32:46 -04:00
Sebastian Hengst
ae14b9899c Backed out changeset 8e4cadda2d01 (bug 1411160) for build bustage due to duplicate files. r=backout
--HG--
rename : devtools/client/inspector/fonts/components/FontsApp.js => devtools/client/inspector/fonts/components/App.js
rename : devtools/client/inspector/layout/components/LayoutApp.js => devtools/client/inspector/layout/components/App.js
extra : amend_source : a4d4aaed2a6c13bc79830df4e91d9c36167fe7be
2017-10-26 22:31:00 +02:00
Gabriel Luong
1915a9ad44 Bug 1411160 - Adds an initial react/redux template for loading a Changes View in the inspector sidebar. r=pbro
--HG--
rename : devtools/client/inspector/fonts/components/App.js => devtools/client/inspector/fonts/components/FontsApp.js
rename : devtools/client/inspector/layout/components/App.js => devtools/client/inspector/layout/components/LayoutApp.js
2017-10-26 11:32:46 -04:00
Sebastian Hengst
d01ea418fc Backed out changeset b44af7ae9208 (bug 1411160) for build bustage (duplicate files). r=backout on a CLOSED TREE
--HG--
rename : devtools/client/inspector/fonts/components/FontsApp.js => devtools/client/inspector/fonts/components/App.js
rename : devtools/client/inspector/layout/components/LayoutApp.js => devtools/client/inspector/layout/components/App.js
extra : amend_source : 6ad46575740bd1b7fe04197c1a2d6d00438113da
2017-10-26 19:12:18 +02:00
Gabriel Luong
d1e0f887e4 Bug 1411160 - Adds an initial react/redux template for loading a Changes View in the inspector sidebar. r=pbro
--HG--
rename : devtools/client/inspector/fonts/components/App.js => devtools/client/inspector/fonts/components/FontsApp.js
rename : devtools/client/inspector/layout/components/App.js => devtools/client/inspector/layout/components/LayoutApp.js
2017-10-26 11:32:46 -04:00