Commit graph

50 commits

Author SHA1 Message Date
Victor Porof
b8157dfaaf Bug 1561435 - Format remaining devtools/, a=automatic-formatting, CLOSED TREE
# ignore-this-changeset

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

--HG--
extra : source : 4722b924e08478f5337ab509718bd66906bf472f
extra : amend_source : a5baa1aab21639fdba44537e3a10b179b0073cb4
2019-07-05 11:29:32 +02:00
Brendan Dahl
543c10a1d2 Bug 1551320 - Replace all CreateElement calls in XUL documents with CreateXULElement. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D31295

--HG--
extra : moz-landing-system : lando
2019-05-20 16:50:28 +00:00
Emilio Cobos Álvarez
09763b1ac3 Bug 1533201 - Make cssPropertySupportsType take an enum. r=heycam,rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D22427

--HG--
extra : moz-landing-system : lando
2019-03-18 16:38:48 +00:00
Razvan Caliman
4626e42237 Bug 1534567 - Ensure inherited CSS variables are case sensitive; r=pbro
Bug 1512634 introduced a case-insensitive check for CSS properties. This caused a regression whereby inherited CSS variables with mixed case were incorrectly unmatched when shown in the Rules view.

To fix this, we do a strict check for CSS variables in CSSProperties front because they are case sensitive (--color and --COLOR are different CSS variables).
See: https://www.w3.org/TR/css-variables-1/
> Unlike other CSS properties, custom property names are case-sensitive.

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

--HG--
extra : moz-landing-system : lando
2019-03-12 13:45:00 +00:00
Alexandre Poirot
9a08694477 Bug 1515862 - Set global and target scope front IDs from getFront helper. r=jdescottes
Ideally, formAttributeName would be a field on the prototype of each front,
but unfortunately, Firefox doesn't support ES Class's fields yet. So it is
put as an instance attribute instead.

This patch streamline the manually set actorID and the retrieval of actor ID
from root or target front's form into `getFront` helper method.
So that all the specific related to the lazy actor is now inside of this helper.
It also moves the special "this.manage(this)" to this helper.
We might be able to followup on this one and finally have only the root front
being self managed. But the initialize method makes it hard.

Note the special tweak made to devtools/client/responsive.html/manager.js
Hopefully this can be removed once the target classes are merged.

Depends on D15832

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

--HG--
extra : moz-landing-system : lando
2019-01-28 18:42:50 +00:00
Razvan Caliman
081ab9f961 Bug 1512634 - Ensure cssProperties validates in lowercase. r=pbro
[Bug 1512634](https://bugzilla.mozilla.org/show_bug.cgi?id=1512634) occurred because the Rule view marks CSS properties as overriden when they are not lowercase. This happens because `ElementStyle.markOverridden()` relies on computed properties. They get built using `CSSProperties.getSubproperties()`. If the input to that method is not lowercase, it doesn't match properties from the CSS database and returns an empty array. This has a side-effect of marking the property as overriden.

In this patch we allow users to type property names in any case, but we validate the lowercase version of them.

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

--HG--
extra : moz-landing-system : lando
2018-12-17 16:26:18 +00:00
Alexandre Poirot
37fcc38aa4 Bug 1510949 - Make protocol.js support es6 classes for fronts. r=yulia
MozReview-Commit-ID: JegR2JsyNrI

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

--HG--
extra : moz-landing-system : lando
2018-12-11 16:32:41 +00:00
yulia
899e52534b bug 1507146 - add await to all target.getFront calls in async callsites; r=ochameau
Depends on D11885

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

--HG--
extra : moz-landing-system : lando
2018-11-14 15:11:59 +00:00
Daniel Varga
4fc7bfa931 Merge mozilla-inbound to mozilla-central. a=merge 2018-10-20 13:10:23 +03:00
Gabriel Luong
455a83357a Bug 1500469 - Don't require /shared/css/properties-db.js in the inspector client. r=mtigley 2018-10-19 17:40:31 -04:00
Mark Banner
ceaeb93550 Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D8389

--HG--
extra : moz-landing-system : lando
2018-10-19 12:55:39 +00:00
yulia
55c6df01ea Bug 1488377 - remove outdated backwards compat code; r=ochameau
Depends on D7886

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

--HG--
extra : moz-landing-system : lando
2018-10-10 15:37:11 +00:00
Narcis Beleuzu
38510714cf Backed out changeset 01f66f8de794 (bug 1488377) for dt failures on browser_outputparser.js. CLOSED TREE 2018-10-09 19:45:28 +03:00
yulia
2fc1f16a1e Bug 1488377 - remove outdated backwards compat code; r=ochameau
Depends on D7886

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

--HG--
extra : moz-landing-system : lando
2018-10-09 13:11:32 +00:00
yulia
3b9941d99e Bug 1488377 - Use target.getFront to instantiate CssPropertiesFront; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D7886

--HG--
extra : moz-landing-system : lando
2018-10-08 15:01:45 +00:00
Margareta Eliza Balazs
023013edac Backed out changeset 14f893f7de2d (bug 1488377) for mochitest failures in devtools/server/tests/mochitest/test_css-properties.html 2018-10-08 16:25:17 +03:00
yulia
8eb10516b2 Bug 1488377 - Use target.getFront to instantiate CssPropertiesFront; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D7886

--HG--
extra : moz-landing-system : lando
2018-10-08 10:58:01 +00: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
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
Alexandre Poirot
f6a3dd0505 Bug 1440322 - Use async/await instead of Task.jsm on devtools/shared/fronts/css-properties.js. r=ochameau
[Fixed Mochi tests] r=?

MozReview-Commit-ID: 3NM90kIzqgd

--HG--
extra : rebase_source : 0e6295dd52cef39e14482c20b983a29dbbe2e331
2018-02-22 06:22:05 -08:00
Alexandre Poirot
c228558347 Bug 1397343 - Lazy load dependencies from inspector front modules. r=pbro
MozReview-Commit-ID: JSabaxRYaeE

--HG--
extra : rebase_source : 110ca3fc402623f6d1167d39b5ef5edab9c443b2
2017-09-06 14:35:13 +02:00
Alexandre Poirot
4a603969ef Bug 1396600 - Make some efforts to lazy load properties-db. r=tromey
MozReview-Commit-ID: LGgVb5kxN7X

--HG--
extra : rebase_source : e4acc31da93eb8d88f5dbc075036d1130511ceee
2017-09-06 18:54:07 +02:00
Rahul Chaudhary
087b46a0b9 Bug 1145527 - Display the inherited and used CSS Variable in the rule view. r=tromey
Displays which CSS variable is used in the rule view.
Displays the actual variable value on the variable name's title property.
Displays all the inherited CSS variables on the selected element in the rule view.



MozReview-Commit-ID: 52uLJA123AP
2017-07-02 22:39:45 +02:00
Sebastian Hengst
cb76f56d60 Backed out changeset 6bc38f188ef2 (bug 1330099) for devtools failures. r=backout 2017-01-11 23:21:56 +01:00
Tim Nguyen
d7ea1c1605 Bug 1330099 - Enable object-shorthand eslint rule. r=jryans
MozReview-Commit-ID: 3wA25rfznBv
2017-01-11 21:22:15 +00:00
gtatum@mozilla.com
91e6ea18e7 Bug 1309065 - Be smarter about filling in the client-side css properties db; r=tromey
MozReview-Commit-ID: BOYwveTH1Hy

--HG--
rename : devtools/server/tests/mochitest/test_css-properties_01.html => devtools/server/tests/mochitest/test_css-properties.html
extra : rebase_source : 07118d9577635c57bcf1684a6e0be66937118944
2016-10-11 20:30:24 +00:00
Wes Kocher
d1a5db810e Backed out changeset 2aef437d23b7 (bug 1309065) for failures in test_css-properties-db.js a=backout
--HG--
rename : devtools/server/tests/mochitest/test_css-properties.html => devtools/server/tests/mochitest/test_css-properties_01.html
2016-12-28 13:42:19 -08:00
gtatum@mozilla.com
3878d6e752 Bug 1309065 - Be smarter about filling in the client-side css properties db; r=tromey
MozReview-Commit-ID: BOYwveTH1Hy

--HG--
rename : devtools/server/tests/mochitest/test_css-properties_01.html => devtools/server/tests/mochitest/test_css-properties.html
extra : rebase_source : 11ceb980e2d1039b0120e761ee59e9760ee57b00
2016-10-11 20:30:24 +00:00
JerryShih
a400a6428f Bug 1310681 - put css-color-4 color function supporting information into css property db. r=tromey
MozReview-Commit-ID: 8xRKGJ5wJkq

--HG--
extra : rebase_source : 565f7b41ae3797e5dc7727ab614023c32e438b27
2016-10-21 15:15:16 -04:00
Julian Descottes
a025adfa4d Bug 1319015 - fix css-properties normalization when remote dbg old ff;r=pbro
MozReview-Commit-ID: L6lPypzjzNv

--HG--
extra : rebase_source : fd1d4c57dc2f282d87cd1776f5850a8200429283
2016-11-21 10:26:31 +01:00
Julian Descottes
1e5099a017 Bug 1308467 - fix fronts/css-properties.js when remote debugging old firefox;r=tromey
MozReview-Commit-ID: 365CiBV8uha

--HG--
extra : rebase_source : d8bb5765a8ac68978ee55c65c5d474c1358917ae
2016-10-07 15:53:30 +02:00
Greg Tatum
b9cafbced6 Bug 1307009 - Remove caching optimization; r=tromey
This caching feature is no longer valid as the client-side database
will not necessarily be the same as the server since the DB is
only built on nightly.

MozReview-Commit-ID: 550EQmgO9O7

--HG--
extra : rebase_source : 8863a9b42a976c5b6a6b8d4a8e2481b50f2ffa86
2016-10-04 15:15:15 -05:00
Sebastian Hengst
aaf2af359e Backed out changeset 4fa21c0bcb63 (bug 1307009) 2016-10-05 17:11:01 +02:00
Greg Tatum
b1b987a9fc Bug 1307009 - Remove caching optimization; r=tromey
This caching feature is no longer valid as the client-side database
will not necessarily be the same as the server since the DB is
only built on nightly.

MozReview-Commit-ID: 550EQmgO9O7

--HG--
extra : rebase_source : 9d924ea3a4c33995ab5db1e854404f4f181ecd41
2016-10-04 15:15:15 -05:00
Greg Tatum
97bb72ff52 Bug 1291866 - Replace inIDOMUtils.cssPropertyIsValid; r=tromey
MozReview-Commit-ID: JqO4UiPHAPE

--HG--
extra : rebase_source : 5bc55dda26c2380b36cfd597c0eb78239bbeeedf
2016-09-16 08:46:51 -05:00
Tom Tromey
7f09233236 Bug 1265796 - add CSS subproperty info to CssProperties; r=gregtatum
MozReview-Commit-ID: JIDTwgnxAJE

--HG--
extra : rebase_source : 33e96edf30012806465ab19732ab298240e0cf91
2016-09-19 12:36:56 -06:00
Greg Tatum
1e5a5a50e2 Bug 1290988 - Collect devtools/shared/css-* files into a folder. r=tromey
In preparation for the additional files in the `mach generate-css-db`
command, collect the CSS files into a folder.

MozReview-Commit-ID: 9JRVsC2NMK8

--HG--
rename : devtools/shared/css-color-db.js => devtools/shared/css/color-db.js
rename : devtools/shared/css-color.js => devtools/shared/css/color.js
rename : devtools/shared/css-lexer.js => devtools/shared/css/lexer.js
rename : devtools/shared/css-parsing-utils.js => devtools/shared/css/parsing-utils.js
rename : devtools/shared/css-properties-db.js => devtools/shared/css/properties-db.js
extra : rebase_source : 51d8d92db0ae91a7368b109aae9a509ba8012b3f
extra : histedit_source : ee3409615461cba0c656b32fee7f80d4b72a09d1
2016-09-14 10:00:27 -05:00
Sebastian Hengst
d11146270a Backed out changeset 1bca17123507 (bug 1290988) for xpcshell failures (test_rewriteDeclarations.js) and devtools failures (browser_styleeditor_syncAddProperty.js). r=backout
--HG--
rename : devtools/shared/css/color-db.js => devtools/shared/css-color-db.js
rename : devtools/shared/css/lexer.js => devtools/shared/css-lexer.js
rename : devtools/shared/css/properties-db.js => devtools/shared/css-properties-db.js
2016-09-13 17:43:44 +02:00
Greg Tatum
da1990f19b Bug 1290988 - Collect devtools/shared/css-* files into a folder; r=tromey
In preparation for the additional files in the `mach generate-css-db`
command, collect the CSS files into a folder.

MozReview-Commit-ID: 9JRVsC2NMK8

--HG--
rename : devtools/shared/css-color-db.js => devtools/shared/css/color-db.js
rename : devtools/shared/css-lexer.js => devtools/shared/css/lexer.js
rename : devtools/shared/css-properties-db.js => devtools/shared/css/properties-db.js
extra : rebase_source : b73bbe7fcf8177a25b41ecdd6d6c760ed1472fb7
2016-08-29 11:02:34 -05:00
Alexandre Poirot
0e07d87062 Bug 1298082 - Various cleanups to use helpers. r=jryans
MozReview-Commit-ID: EwtA2K00EaM

--HG--
extra : rebase_source : a97a380d413f1a84077ba7bb1250e49af3284825
2016-08-25 05:50:44 -07:00
Greg Tatum
4060bbdcb1 Bug 1289425 - Allow sourceeditor to fallback to client-side css properties; r=tromey
MozReview-Commit-ID: Khak8Av1v67

--HG--
extra : rebase_source : 6d117087a34320fd7bbb7ea540b218ac78018566
2016-08-12 15:01:42 -05:00
Greg Tatum
cce5c3c6ef Bug 1289425 - Remove domUtils from the InplaceEditor; r=tromey
MozReview-Commit-ID: D9thpWSNwKC

--HG--
extra : rebase_source : b11d3b8bc1f4c3b4777386e93dc03cee07508f86
2016-08-05 11:40:51 -05:00
Greg Tatum
a17cc41d63 Bug 1289425 - Add a getClientCssProperties method to the CssProperties; r=tromey
This creates an easy interface for getting the static css database, and
splits up the initCssProperties function into smaller re-usable parts.

MozReview-Commit-ID: G86bNy3KQDp

--HG--
extra : rebase_source : 608df38114de31320594516ca776cc35ddb6ee8e
2016-08-04 15:16:16 -05:00
Eddy Bruel
f389d7ede3 Bug 1295171 - Reintroduce the old Actor/FrontClass constructors. r=jryans
Heintroduce the old Actor/FrontClass constructors.
2016-08-22 16:25:57 +02:00
Eddy Bruel
2bdbd75fa0 Bug 1288423 - Rename Actor/FrontClassWithSpec to Actor/FrontClass. r=fitzgen 2016-08-10 17:36:04 +02:00
Greg Tatum
2ba8b8b1ab Bug 1275939 - replace domUtils.getCSSValuesForProperty in inplace-editor.js r=tromey
MozReview-Commit-ID: KtuAWnNsnaq

--HG--
rename : devtools/server/tests/mochitest/test_css-properties.html => devtools/server/tests/mochitest/test_css-properties_01.html
extra : rebase_source : 3002ac705c2a99fa04796666aa40261abdc87646
2016-08-01 09:34:00 +02:00
Greg Tatum
180f6e66ec Bug 1265785 - replace uses of inIDOMUtils.getCSSPseudoElementNames r=pbro 2016-07-12 06:45:00 +02:00
Patrick Brosset
c1a025bcaa Bug 1268082 - Get the list of supported CSS types for each property from the server; r=tromey
Added the list of supported types to each css property returned by the
CssProperties actor.
As a fallback, the css-properties-db static file also contains this list.
Also, if connected to a server that has the CssProperties actor but not
the data about supported types, then the type data is retrieved from the
static db too.

MozReview-Commit-ID: J1o8JGODMiC

--HG--
extra : rebase_source : 9c997516c0b1c374a016a6a5f54dacfb5ce076bf
extra : amend_source : 15ae16c64120b984b212fd2e2723da5018aaaa5c
2016-06-15 08:58:36 +01:00
Greg Tatum
c17299d948 Bug 1265790 - replace inIDOMUtils.isInheritedProperty r=pbro
MozReview-Commit-ID: 1c6OLfYMW0p
2016-06-02 13:07:00 +02:00
Greg Tatum
262a831a1f Bug 1265798 - Implement CSS database to query css properties r=pbro
MozReview-Commit-ID: CAUh2GyeA2o

--HG--
extra : rebase_source : fc8e97f7bfc92c709014e58bd7f1670bc859460e
2016-05-26 08:48:00 -07:00