Commit Graph

27204 Commits

Author SHA1 Message Date
Tom Marble
9e40a719f2 Bug 1850545 - convert .ini manifests to .toml: batch 3 chrome.ini (bis) r=jmaher,geckoview-reviewers,extension-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,places-reviewers,profiler-reviewers,m_kato,mak,mtigley
Differential Revision: https://phabricator.services.mozilla.com/D187597
2023-09-13 18:28:32 +00:00
Zachary Svoboda
2977c5a304 Bug 1646638 - Fix compatibility prop typo r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D188064
2023-09-13 11:50:48 +00:00
Krishna Ravishankar
bb123989fc Bug 1851759 - [devtools] Fix incorrect removal of non-expr-stmt when top-level-await is present r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D187957
2023-09-13 08:04:43 +00:00
Zachary Svoboda
2da94692ba Bug 1643843 - Improve narrow view for compat panel unsupported browsers r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D187920
2023-09-12 15:34:26 +00:00
Nicolas Chevobbe
a84824ada8 Bug 1767678 - [devtools] Handle null rule editor in getPropertiesForRuleIndex. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D187978
2023-09-12 15:17:40 +00:00
Henrik Skupin
21ccf582af Bug 1852526 - [devtools] Remove "domstyleruleOrActorid" type. r=devtools-backward-compat-reviewers,devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D187894
2023-09-12 08:45:44 +00:00
Henrik Skupin
6b54c871d8 Bug 1852526 - [devtools] Remove "devtools.inspector.ruleview.inline-compatibility-warning.enabled" preference. r=devtools-backward-compat-reviewers,devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D187893
2023-09-12 08:45:44 +00:00
Zachary Svoboda
52155ea196 Bug 1844071 - Improve contrast on flex highlight toggle r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D187862
2023-09-11 15:47:33 +00:00
Nicolas Chevobbe
777cf52f7c Bug 1776831 - [devtools] Fix race condition when adding new rule from the UI. r=devtools-reviewers,ochameau.
We're flagging new added rule by adding a `userAdded` property on the StyleRule
form when the rule is added from the UI.
We then refactor `_onAddRule` so it only calls the server and stores the actorID
of the new rule.
Then, in `_createEditors`, if a rule has `userAdded`, and if we are waiting for
a user added rule, we focus the rule's selector.
We take this opportunity to emit a dedicated `new-rule-added` event instead of
relying on the more generic `ruleview-changed` that we previously had.
A few test are updated in consequence.

Differential Revision: https://phabricator.services.mozilla.com/D186463
2023-09-11 15:32:29 +00:00
Nicolas Chevobbe
bb47f80ef5 Bug 1776831 - [devtools] Refresh ruleview when inspector is selected. r=devtools-reviewers,jdescottes.
We are already refreshing the view when the sidebar is selected (so for example,
going from the layout to the rules view), but we were not refreshing it when
selecting the panel (so for example, going from the styleeditor to the inspector,
while the rule view is the active sidebar panel).

While writing a test, I realized `CssRuleView#isPanelVisible` was always returning
true when the 3 pane mode is enabled, even if the inspector isn't the active tool,
which is incorrect, so I fixed it.

A test is added to ensure we covers this, by adding a stylesheet from the style editor.

Differential Revision: https://phabricator.services.mozilla.com/D185560
2023-09-11 15:32:29 +00:00
Nicolas Chevobbe
18c679f4db Bug 1776831 - [devtools] Control RuleViewTool with an AbortController. r=devtools-reviewers,jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D185558
2023-09-11 15:32:29 +00:00
Nicolas Chevobbe
71a1f37447 Bug 1776831 - [devtools] Turn RuleViewTool into an ES6 class. r=devtools-reviewers,jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D185557
2023-09-11 15:32:29 +00:00
Nicolas Chevobbe
0506baf22f Bug 1776831 - [devtools] Refresh rules view on STYLESHEET resource available. r=jdescottes,devtools-reviewers.
Differential Revision: https://phabricator.services.mozilla.com/D185393
2023-09-11 15:32:29 +00:00
Cosmin Sabou
8102964c4d Merge mozilla-central to autoland. CLOSED TREE 2023-09-11 18:43:11 +03:00
Alexandre Poirot
5ba5d87d0c Bug 1851566 - [devtools] Avoid passing large dataset out of the parser worker. r=devtools-reviewers,bomsy
These three attributes are very large arrays and we could easily keep them
within the worker thread by exposing new dedicated method.

Differential Revision: https://phabricator.services.mozilla.com/D187436
2023-09-11 13:51:24 +00:00
Alexandre Poirot
d440bf3bc3 Bug 1851522 - [devtools] Only pass symbols used by the main thread. r=devtools-reviewers,bomsy
Clarify which attributes are used only within the worker
and shouldn't be passed to the main thread.
Also clarify what are the usages of each attribute so that we can
more easily transfer some on-demand.

`callExpressions` wasn't used anywhere.

Differential Revision: https://phabricator.services.mozilla.com/D187401
2023-09-11 13:51:24 +00:00
Cosmin Sabou
28bc51699a Backed out 9 changesets (bug 1839918) for causing a top crash as in Bug 1852357. a=backout
Backed out changeset 1c438df525c7 (bug 1839918)
Backed out changeset 6e3d7fdfda3f (bug 1839918)
Backed out changeset 087b27593538 (bug 1839918)
Backed out changeset 302d12c12083 (bug 1839918)
Backed out changeset 750e0796c1ad (bug 1839918)
Backed out changeset 3949d9b400d4 (bug 1839918)
Backed out changeset 707021ebfd23 (bug 1839918)
Backed out changeset fa9a6af80526 (bug 1839918)
Backed out changeset 5aa3b2f1b5ec (bug 1839918)
2023-09-11 16:42:08 +03:00
serge-sans-paille
f6cfd02309 Bug 1852225 - Vendor devtools/client/shared/vendor/source-map using mach vendor r=ochameau,devtools-reviewers
The update script was mentioning a few manual actions that I made
explicit through patches, this should make further updates more robust.

Differential Revision: https://phabricator.services.mozilla.com/D187758
2023-09-11 13:13:46 +00:00
Sebastian Zartner
b6eed9cd14 Bug 1849235 - [devtools] Handle ::cue pseudo-element's ignored properties in inactive CSS. r=devtools-reviewers,fluent-reviewers,flod,nchevobbe.
Differential Revision: https://phabricator.services.mozilla.com/D186509
2023-09-09 21:16:57 +00:00
Sebastian Zartner
009a652471 Bug 1842175 - [devtools] Handle ::first-letter pseudo-element's ignored properties in inactive CSS. r=devtools-reviewers,fluent-reviewers,flod,nchevobbe.
Differential Revision: https://phabricator.services.mozilla.com/D186493
2023-09-08 19:32:26 +00:00
Zachary Svoboda
0055ca2e76 Bug 1852298 - Update error message proptype r=devtools-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D187795
2023-09-08 17:56:05 +00:00
scottlynotlie
161b069046 Bug 1695150 - ObjectInspector should show wrapped primitive. r=nchevobbe,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D186613
2023-09-08 11:51:53 +00:00
Nicolas Chevobbe
5454ba067a Bug 1851973 - [devtools] Use CustomEvent instead of EventEmitter for unit-change event on color/angle swatch. r=ochameau,devtools-reviewers.
Differential Revision: https://phabricator.services.mozilla.com/D187653
2023-09-08 09:12:54 +00:00
Zachary Svoboda
07caee3b31 Bug 1764897 - Switch to raw data view when JSON is invalid r=jdescottes,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D187740
2023-09-08 08:58:16 +00:00
Iulian Moraru
91628a06ab Backed out changeset 772040823b6e (bug 1851973) for causing dt failures on browser_rules_edit-value-after-name_02.js. CLOSED TREE 2023-09-08 11:32:57 +03:00
Nicolas Chevobbe
66187129be Bug 1851973 - [devtools] Use CustomEvent instead of EventEmitter for unit-change event on color/angle swatch. r=ochameau,devtools-reviewers.
Differential Revision: https://phabricator.services.mozilla.com/D187653
2023-09-08 06:22:29 +00:00
Nicolas Chevobbe
2418a2c8c5 Bug 1851972 - [devtools] Cache toggle button localized label. r=ochameau,devtools-reviewers.
Differential Revision: https://phabricator.services.mozilla.com/D187651
2023-09-08 01:12:47 +00:00
Nicolas Chevobbe
ee7d388db9 Bug 1834690 - [devtools] Show custom properties value in computed panel. r=devtools-reviewers,ochameau.
At the moment, the (regular) computed properties PropertyView are created at
panel initialization, and then are shown/hidden depending of the selected element.
The list of properties is gathered from the panel's window computed property,
and not from the content page one.
That means that we can't build PropertyView for custom property at initialization
time, but potentially each time the computed property is refreshed.
In order to minimize dom mutations, when the view is refreshed, we:
- only remove the custom properties that are not set on the selected node
- update the value for the custom properties that are still set
- create new PropertyView for custom properties that weren't previously set

In order to keep the list ordered, we have to compute the index to put the new
elements in the right position. This is a bit tedious, but seems to work well
for performance.

A test is added for checking those custom properties.

Differential Revision: https://phabricator.services.mozilla.com/D182994
2023-09-08 01:12:46 +00:00
Alexandre Poirot
2e2e9b1590 Bug 1320607 - [devtools] Remove the generated CSS Properties database. r=devtools-reviewers,nchevobbe
This wasn't really used anymore.
We are fetching the database from the server runtime in order to support
remote debugging correctly, where frontend CSS may be different from debuggee CSS.

Differential Revision: https://phabricator.services.mozilla.com/D187492
2023-09-07 20:59:34 +00:00
Sebastian Zartner
7c82134cd8 Bug 1849255 - [devtools] Handle ::placeholder pseudo-element's ignored properties in inactive CSS. r=devtools-reviewers,fluent-reviewers,nchevobbe.
Differential Revision: https://phabricator.services.mozilla.com/D186742
2023-09-07 20:14:31 +00:00
Butkovits Atila
ef58dad0ea Backed out changeset fb19de542f01 (bug 1320607) for causing python failures complaining about test_devtools_database_parsing . CLOSED TREE 2023-09-07 18:58:05 +03:00
Alexandre Poirot
622b937669 Bug 1320607 - [devtools] Remove the generated CSS Properties database. r=devtools-reviewers,nchevobbe
This wasn't really used anymore.
We are fetching the database from the server runtime in order to support
remote debugging correctly, where frontend CSS may be different from debuggee CSS.

Differential Revision: https://phabricator.services.mozilla.com/D187492
2023-09-07 13:08:37 +00:00
Mark Banner
b4c82a1103 Bug 1851794 - Change debugger ESLint rules that are warnings to errors, and turn off react/prop-types. r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D187545
2023-09-07 10:24:18 +00:00
Hubert Boma Manilla
6ffde8feae Bug 1844536 - [devtools] Use shared utils for accessing scope nodes r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D187600
2023-09-07 09:54:14 +00:00
Hubert Boma Manilla
55e306c62c Bug 1844536 - [devtools] Remove isGenerated util and access .isOriginal property directly r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D186899
2023-09-07 09:54:13 +00:00
Paul Zuehlcke
08c2760082 Bug 1839918 - Update devtools cookie-changed observer for nsICookieNotification. r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D185301
2023-09-07 08:25:54 +00:00
Hubert Boma Manilla
4ba98e499d Bug 1844536 - [devtools] Cleanup all the util code around scopes r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D186872
2023-09-06 18:43:16 +00:00
Logan Rosen
f024d94b2b Bug 1786490 - reformat the tree using black 23.3.0 r=sylvestre,webdriver-reviewers,taskgraph-reviewers,whimboo,jmaher,ahal,perftest-reviewers,geckoview-reviewers,afinder,m_kato
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D186092
2023-09-06 16:14:30 +00:00
Emilio Cobos Álvarez
726f71faf3 Bug 1850827 - Simplify how we draw window decorations. r=stransky,rmader,desktop-theme-reviewers,dao
This makes the rounded bottom corners work on X11, and makes the top
corner drawing less insane.

Differential Revision: https://phabricator.services.mozilla.com/D187345
2023-09-06 11:07:58 +00:00
Hubert Boma Manilla
d820233ea8 Bug 1844536 - [devtools] Remove unused toggle scope props r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D186871
2023-09-06 08:46:13 +00:00
Hubert Boma Manilla
34cef822f7 Bug 1849946 - [devtools] Switch to do strict inequality check r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D187102
2023-09-05 10:51:12 +00:00
Sylvestre Ledru
10018013ed Bug 1842396 - doc: fix two typos
Differential Revision: https://phabricator.services.mozilla.com/D187398
2023-09-04 20:06:35 +00:00
Sebastian Zartner
c87a8cb7be Bug 1850952 - [devtools] Checked expiry to be in range instead of exact timestamp in browser_storage_cookies_add. r=bomsy,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D187318
2023-09-04 18:48:24 +00:00
Hubert Boma Manilla
46f1668f97 Bug 1849987 - [devtools] Pass selectedFrame to getGeneratedFrameScope instead of currentThread r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D186788
2023-09-01 15:57:34 +00:00
Sebastian Zartner
a591ed255c Bug 1748422 - [devtools] Set path of manually added cookies to root. r=devtools-reviewers,bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D186887
2023-08-31 11:18:34 +00:00
Cristina Horotan
f1622cf0e7 Backed out changeset 9125d5c558ea (bug 1849987) for causing dt failures at browser_dbg-sourcemapped-toggle.js 2023-08-31 14:12:06 +03:00
Hubert Boma Manilla
1a06317f45 Bug 1849987 - [devtools] Pass selectedFrame to getGeneratedFrameScope instead of currentThread r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D186788
2023-08-31 09:42:50 +00:00
Emilio Cobos Álvarez
6070e00f0a Bug 1850342 - Remove non-standard, un-tested :-moz-loading pseudo-class. r=layout-reviewers,jfkthame
This is technically web-exposed, but if we needed to introduce it for
compat we could always re-introduce it matching false.

Differential Revision: https://phabricator.services.mozilla.com/D186938
2023-08-30 10:38:52 +00:00
Iulian Moraru
9a9b90c906 Backed out changeset f0edb489e577 (bug 1850342) for causing dt failures on browser_rules_inactive_css_visited.js. CLOSED TREE 2023-08-30 01:24:44 +03:00
Emilio Cobos Álvarez
afdec6f2a3 Bug 1850342 - Remove non-standard, un-tested :-moz-loading pseudo-class. r=layout-reviewers,jfkthame
This is technically web-exposed, but if we needed to introduce it for
compat we could always re-introduce it matching false.

Differential Revision: https://phabricator.services.mozilla.com/D186938
2023-08-29 20:57:30 +00:00