Commit Graph

151 Commits

Author SHA1 Message Date
Tom Tromey
dffd9ec2a9 Bug 1395262 - use plain console.error in devtools promise catches; r=bgrins
MozReview-Commit-ID: C8IhVPckQJ7

--HG--
extra : rebase_source : bd5f46a0bdff992cc0334250a16557eb710af5de
2017-08-30 12:05:41 -06:00
ZER0
ba9681c84a Bug 1381542 - renamed "devtools/shared/event-emitter" in "devtools/shared/old-event-emitter"; r=ochameau
MozReview-Commit-ID: GkF8HcUg5u8


--HG--
rename : devtools/shared/event-emitter.js => devtools/shared/old-event-emitter.js
2017-08-11 03:47:30 +02:00
Wes Kocher
db97e61fc7 Backed out changeset 58f678547059 (bug 1381542) for conflicting with the incoming m-c merge a=backout
MozReview-Commit-ID: 1wKVHbOAUdc

--HG--
rename : devtools/shared/old-event-emitter.js => devtools/shared/event-emitter.js
2017-08-10 18:23:14 -07:00
ZER0
93e1efc17d Bug 1381542 - renamed "devtools/shared/event-emitter" in "devtools/shared/old-event-emitter"; r=ochameau
MozReview-Commit-ID: GkF8HcUg5u8


--HG--
rename : devtools/shared/event-emitter.js => devtools/shared/old-event-emitter.js
2017-08-11 02:43:47 +02:00
Nicolas Ouellet-Payeur
bb9bd5010d Bug 1368202 - convert uses of "defer" to "new Promise" in client/inspector r=tromey
MozReview-Commit-ID: lXAVyomDlV

--HG--
extra : rebase_source : 351d82404ec42169e24c7fc1b8a9aa6b2af02dc5
2017-08-03 00:28:05 -07:00
Gabriel Luong
1ebc47776f Bug 1386108 - Update Computed stylesheet to use more specific selectors. r=jdescottes 2017-08-01 20:56:57 -04:00
Gabriel Luong
a8675a3dd2 Bug 1376774 - Restore the highlighter states on markup loaded prior to emitting the "new-root" event. r=jdescottes 2017-07-26 16:26:09 -04:00
Mike Park
ed40ba307a Bug 1282717 - Highlight CSS shapes points in the page from the rule-view and vice versa. r=pbro
MozReview-Commit-ID: 9pXkbAwgcXO
2017-07-05 10:57:42 -04:00
Mike Park
dc60e7a8cf Bug 1373339 - Add a button in the rules view to toggle the CSS shapes highlighter. r=gl
Requires pref "devtools.inspector.shapesHighlighter.enabled" to be true.

MozReview-Commit-ID: Ispw7ulV5o6
2017-06-20 11:23:32 -04:00
Jim Mathies
f418b90a16 Bug 1356317 - Touch ups for flaky dev tools popup tests. r=mratcliffe 2017-07-04 13:45:19 -05:00
Patrick Brosset
c109f6e2ed Bug 1374587 - Avoid getting NodeActors for grids when we already know them and filter reflows; r=gl
Here we make updates on reflow slower (with a throttle) cause we don't
really need to update live.
We also filter all reflows that do not cause either the list of grids or
the current outline to change.
Finally, we also attach NodeActors to GridActor forms (when they are know)
in order to avoid one more round-trip to the server.

Globally, this makes performance of the grid panel far better on pages that
cause many reflows.

Note that this commit also fixes a debounce vs. throttle confusion that
existed in an inspector utils file. The throttle function there was actually
a debounce function, so it was renamed, and an actual throttle function
was added.

MozReview-Commit-ID: GeqgZR0o0E6

--HG--
extra : rebase_source : 6b9719379dcbd4479bded26014aa3742bd75208e
2017-06-27 12:02:53 -07:00
Sebastian Hengst
ee5d5a5174 Backed out changeset 909ccc166a06 (bug 1374587) on suspicion of causing timeouts in browser_grids_number-of-css-grids-telemetry.js. r=backout 2017-06-23 18:55:38 +02:00
Patrick Brosset
9db019a850 Bug 1374587 - Avoid getting NodeActors for grids when we already know them and filter reflows; r=gl
Here we make updates on reflow slower (with a throttle) cause we don't
really need to update live.
We also filter all reflows that do not cause either the list of grids or
the current outline to change.
Finally, we also attach NodeActors to GridActor forms (when they are know)
in order to avoid one more round-trip to the server.

Globally, this makes performance of the grid panel far better on pages that
cause many reflows.

Note that this commit also fixes a debounce vs. throttle confusion that
existed in an inspector utils file. The throttle function there was actually
a debounce function, so it was renamed, and an actual throttle function
was added.

MozReview-Commit-ID: GeqgZR0o0E6

--HG--
extra : rebase_source : a2792a0ec4cad2034965d36648f0675ae4f52d86
2017-06-20 14:57:34 +02:00
Gabriel Luong
fe1128dd14 Bug 1373483 - Add telemetry for the grid inspector. r=pbro. data-r=bsmedberg 2017-06-20 16:32:18 -07:00
Wes Kocher
89c6584074 Backed out changeset 830b3b513bf1 (bug 1373483) for build failures in TelemetryHistogram.o a=backout
MozReview-Commit-ID: I5RRKMjXWKM
2017-06-20 15:03:04 -07:00
Gabriel Luong
0f9310447e Bug 1373483 - Add telemetry for the grid inspector. r=pbro. data-r=bsmedberg 2017-06-20 14:41:13 -07:00
Paolo Amadini
10ee6a5c4e Bug 1362970 - Part 2 - Script-generated patch to convert .then(null, ...) to .catch(...). r=florian
Changes to Promise tests designed to test .then(null) have been reverted, and the browser/extensions directory was excluded because the projects it contains have a separate process for accepting changes.

MozReview-Commit-ID: 1buqgX1EP4P

--HG--
extra : rebase_source : 3a9ea310d3e4a8642aabbc10636c04bfe2e77070
2017-06-19 11:32:37 +01:00
Gabriel Luong
78d7a481bd Bug 1369951 - Use the stored grid highlighter settings for the grid highlighter toggled in the rule view. r=pbro 2017-06-07 10:03:00 -04:00
Alexandre Poirot
3dfed4e971 Bug 1369104 - Fix eslint error on highlighters-overlay.js. r=pbro
MozReview-Commit-ID: 6lhfILmmEGC

--HG--
extra : rebase_source : 380b209f2b437cfd398b594292e87a1e7d7f78f8
2017-05-31 18:38:04 +02:00
Patrick Brosset
1ec6c3d790 Bug 1222737 - Tests for the computed-view copy feature; r=pbro
MozReview-Commit-ID: KR1H9tn0u7r

--HG--
rename : devtools/client/inspector/computed/test/browser_computed_select-and-copy-styles.js => devtools/client/inspector/computed/test/browser_computed_select-and-copy-styles-01.js
extra : rebase_source : df22d07b36a316bdd91989b36165a3b43e289c7c
2017-05-11 15:12:27 +02:00
Gabriel Luong
c00006d22f Bug 1321238 - Add unit tests for the Grid List and Display setting components. r=jdescottes 2017-05-29 15:54:35 -04:00
Phil Ringnalda
40aaa48351 Backed out changeset ad742747a8d0 (bug 1321238) for (at least) eslint failures
MozReview-Commit-ID: Em8hWRGDB3Y
2017-05-29 11:45:33 -07:00
Gabriel Luong
5edbe33f43 Bug 1321238 - Add unit tests for the Grid List and Display setting components. r=jdescottes 2017-05-29 14:23:56 -04:00
Nazım Can Altınova
19a0e93729 Bug 1358710 - Unprefix -moz-linear-gradient / -moz-radial-gradient in unit tests r=dholbert
MozReview-Commit-ID: J2Tn8GKfKIN

--HG--
rename : layout/reftests/css-gradients/aja-linear-2a.html => layout/reftests/css-gradients/aja-linear-2.html
extra : rebase_source : 9c1869bddf2068cf68666e0815b8f9d9424fe76a
2017-04-24 15:54:51 +03:00
Sebastian Hengst
feb6f6c577 Backed out changeset 19f0b1e8f287 (bug 1358710) for failing reftest aja-linear-2.html on OS X with e10s. r=backout
--HG--
rename : layout/reftests/css-gradients/aja-linear-2.html => layout/reftests/css-gradients/aja-linear-2a.html
2017-05-15 00:18:47 +02:00
Nazım Can Altınova
d8be7ab275 Bug 1358710 - Unprefix -moz-linear-gradient / -moz-radial-gradient in unit tests r=dholbert
MozReview-Commit-ID: J2Tn8GKfKIN

--HG--
rename : layout/reftests/css-gradients/aja-linear-2a.html => layout/reftests/css-gradients/aja-linear-2.html
extra : rebase_source : 7b1ae51a435fae3782a03046ce21474b9a149f1a
2017-04-24 15:54:51 +03:00
Alexandre Poirot
f1bf089869 Bug 1351266 - Test preview and font tooltips by faking mouse events. r=jdescottes
MozReview-Commit-ID: LdaTXmo9Eb6

--HG--
extra : rebase_source : 2ee8e2fc852b527fe03ff9232bdf50b9090c872b
2017-03-28 15:51:08 +02:00
Alexandre Poirot
acdbbd6e15 Bug 1320939 - Lazy load all tooltip widgets until each is really used. r=jdescottes
MozReview-Commit-ID: 9P93GocdLm8

--HG--
extra : rebase_source : e57883d36c2cbcfa895a3217dea9e82df87874ec
2017-01-31 15:31:37 +01:00
Paul Bignier
9103ac60ef Bug 1352808 - Typo fixes for 'browser' in comments. r=MattN
MozReview-Commit-ID: IA42yQO5Sb8

--HG--
extra : rebase_source : b5426724c5b740639f71e5d058742b01868085e2
2017-04-03 15:26:11 -07:00
Stefan Yohansson
9bbee44013 Bug 1349520 - disable checkered background for font preview tooltips;r=jdescottes
Added flag hideCheckeredBackground to hide checkered background if pass true.

MozReview-Commit-ID: FOQO59xqGvt

--HG--
extra : rebase_source : 839fdba629d3eac77ea37509bb049a233c72a163
2017-03-28 17:28:54 -03:00
Alexandre Poirot
41dd51eec8 Bug 1335419 - Lazy load and instanciate computed view, ruleview and font inspector. r=jdescottes
MozReview-Commit-ID: CtI8w6Ao35u

--HG--
extra : rebase_source : e68ac3b4c3922a23d14d6345a3ed4433f06c6d34
2017-01-31 16:26:40 +01:00
Julian Descottes
1cc1cb498c Bug 1348005 - update grid panel on reflows;r=gl
Extracted the reflow tracking logic from the box-model to a dedicated util in
inspector/shared/reflow-tracker.js to use it in both box-model and grid-inspector.

MozReview-Commit-ID: DZCOH3RDY6

--HG--
extra : rebase_source : 490befd89eb1011a02d8a99ac965b077da324067
2017-03-29 20:51:27 +02:00
Carsten "Tomcat" Book
c1edc7067d merge mozilla-inbound to mozilla-central a=merge 2017-03-13 15:22:26 +01:00
Gabriel Luong
fb224a3662 Bug 1342941 - Implement the geometry editor toggle in the new box model. r=zer0 2017-03-11 19:53:37 -05:00
Julian Descottes
39d5de7cfe Bug 1342310 - preserve grid highlighter only when reloading the page;r=zer0
Store url in highlighters-overlay grid state to avoid reapplying a state
after navigating on a different page.

MozReview-Commit-ID: 6rTsAPuPhvx

--HG--
extra : rebase_source : 2b89bf5949fbaef16b6cab49946f18c52c1f65a2
2017-03-06 19:19:58 +01:00
Julian Descottes
29933c2115 Bug 1342310 - read grid color from highlighters-overlay state;r=gl
- emit highlighter options when emitting grid highlighter shown/hidden
events
- read color for highlighted grid container when building initial grids
array in grid-inspector
- explicitly set color when toggling grid highlighter from the rule view

MozReview-Commit-ID: IqvnSdJfq9u

--HG--
extra : rebase_source : 47cbfa55cfb6a67f40dbf1f9802894c971a4b097
2017-03-09 00:30:47 +01:00
Julian Descottes
361fe469a0 Bug 1342310 - remember selected grid container on navigate;r=gl
The highlighters-overlay now keep the state of the grid highlighter
in memory. On "navigate", the state is restored.

MozReview-Commit-ID: 7KNhxHs3L5G

--HG--
extra : rebase_source : e6a74f6cf53db2b46ac8dad4e1655e4e88ccd975
2017-03-02 18:16:47 +01:00
Julian Descottes
fe37068ea5 Bug 1333714 - update grid highlighter and layout panel on markupmutation;r=gl
MozReview-Commit-ID: 9TAUxqTiT4M

--HG--
extra : rebase_source : 77eae80dd8f610a5cb303d367d114be0cfa6bc4b
2017-03-07 18:02:41 +01:00
Sébastien Blin
44db48b017 Bug 1327675 - Correctly hightlight nodes for inherited rules. r=pbro
--HG--
extra : rebase_source : 89176234568d03bc82e20f8adb880083e1d5e560
2017-02-03 08:08:00 -05:00
Sebastian Hengst
bff395da0b Backed out changeset bb3edf240bb0 (bug 1327675) for eslint failures. r=backout 2017-02-02 00:01:39 +01:00
Sébastien Blin
ae30e668fa Bug 1327675 - Correctly hightlight nodes for inherited rules. r=pbro
--HG--
extra : rebase_source : 1df369d9b5e07beaf9d66d017122f1f76afd9faf
2017-02-01 06:13:00 -05:00
Wes Kocher
5e6c2376df Backed out changeset 85d33b74434a (bug 1327675) for asan dt10 failures in browser_rules_content_02.js a=backout
MozReview-Commit-ID: GxWdtGX5Lor
2017-01-31 10:24:33 -08:00
Sébastien Blin
7560c32ad6 Bug 1327675 - Correctly hightlight nodes for inherited rules. r=pbro
MozReview-Commit-ID: KydZ3vNM6Z6

--HG--
extra : rebase_source : daa76ab0e51a6e087842be855a75638e47a2b43a
2017-01-27 07:32:00 +01:00
Florian Quèze
85611a7b6d Bug 1331081 - script generated patch to omit addEventListener/removeEventListener's third parameter when it's false, r=jaws.
--HG--
extra : rebase_source : a22344ee1569f58f1f0a01017bfe0d46a6a14602
2017-01-17 11:50:25 +01:00
Geoff Brown
559c7e3f30 Bug 1328915 - Skip linux32/debug devtools tests in clipboard and gpu subsuites; r=me 2017-01-16 11:58:13 -07:00
Florian Quèze
5f72e78f17 Bug 1330147 - fix by hand the issues raised by the new no-useless-parameters eslint rule, r=jaws. 2017-01-11 22:27:43 +01:00
Florian Quèze
55f78ce0fa Bug 1329182 - remove trailing newURI null parameters in devtools/, r=jaws. 2017-01-09 20:27:26 +01:00
Jared Wein
560afd3f8e Bug 1326479 - Fix 'indent' eslint errors now that eslint scans multiline array and object definitions. r=Gijs
MozReview-Commit-ID: 99mWjxu8PPn

--HG--
extra : rebase_source : f78d800263b8544ce0accbdb2dc57b303969543f
2017-01-03 10:07:50 -05:00
JerryShih
2511e53948 Bug 1310681 - pass css-color-4 color function supporting info to devtool css OutputParser and SwatchColorPickerTooltip. r=tromey
Pass css-color-4 supporting status from css-property db to OutputParser and SwatchColorPickerTooltip.

MozReview-Commit-ID: N1ffWOlf9f

--HG--
extra : rebase_source : 94b281c2c101d27dc169a6ba6eeca5acf60b8f16
2016-10-21 14:59:07 -04:00
Gabriel Luong
1e634e99df Bug 1322028 - Avoid destructuring requires where possible in the inspector. r=jdescottes 2016-12-17 12:44:56 +09:00