Commit Graph
1717 Commits
Author SHA1 Message Date
Andrea Marchesini 77c26f16b7 Bug 1913161 - Implement a max-age cap for cookies, r=devtools-reviewers,cookie-reviewers,timhuang,webdriver-reviewers,Sasha
Differential Revision: https://phabricator.services.mozilla.com/D219216
2024-09-02 07:57:30 +00:00
Tamas Szentpeteri 5738bda40d Backed out 2 changesets (bug 1909980, bug 1913161) for causing mochitest and wd failures related to cookies. CLOSED TREE
Backed out changeset 606b39b7dbfe (bug 1909980)
Backed out changeset 2ce372d2cff0 (bug 1913161)
2024-08-28 21:31:55 +03:00
Andrea Marchesini 45de281573 Bug 1913161 - Implement a max-age cap for cookies, r=devtools-reviewers,cookie-reviewers,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D219216
2024-08-28 15:16:57 +00:00
Butkovits Atila 48282434ec Backed out 2 changesets (bug 1913161, bug 1909980) for causing xpcshell failures at test_bug1321912.js. CLOSED TREE
Backed out changeset 0a3cd5d9f229 (bug 1909980)
Backed out changeset 8118def08de0 (bug 1913161)
2024-08-28 15:37:12 +03:00
Andrea Marchesini b578003e92 Bug 1913161 - Implement a max-age cap for cookies, r=devtools-reviewers,cookie-reviewers,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D219216
2024-08-28 11:35:22 +00:00
pstanciu fbb266b306 Backed out changeset f89c9403564e (bug 1913161) for causing multiple failures. CLOSED TREE 2024-08-27 15:13:00 +03:00
Andrea Marchesini a170a65684 Bug 1913161 - Implement a max-age cap for cookies, r=devtools-reviewers,cookie-reviewers,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D219216
2024-08-27 11:02:18 +00:00
Jonathan Kew 34a39b9f68 Bug 1913536 - Expose the special shorthands in the SpecifiedValueInfo for the CSS white-space shorthand. r=firefox-style-system-reviewers,devtools-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D219426
2024-08-21 14:48:25 +00:00
Nicolas Chevobbe 843ab01105 Bug 1909307 - [devtools] Always show the same label in Debugger paused overlay. r=devtools-reviewers,ochameau,fluent-reviewers.
This way the overlay doesn't jump around when stepping.

Differential Revision: https://phabricator.services.mozilla.com/D217799
2024-07-29 21:39:47 +00:00
Sebastian Zartner 35e9286f2b Bug 1551580 - [devtools] Handle float-related issues in inactive CSS. r=devtools-reviewers,fluent-reviewers,flod,nchevobbe.
The `clear` property currently only applies to block-Level elements, not to floats, regions, or pages, because the related CSS Page Floats Module (https://www.w3.org/TR/css-page-floats-3/) is not implemented yet.
For the same reason, we don't check `float-offset` and `float-defer` at the moment.

Differential Revision: https://phabricator.services.mozilla.com/D215299
2024-07-03 14:09:17 +00:00
Nicolas Chevobbe d08b80cdc9 Bug 1904285 - [devtools] Don't mark CSS variable declaration invalid in ::cue and highlight pseudo-elements. r=devtools-reviewers,bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D214546
2024-06-27 05:00:36 +00:00
Sebastian Zartner 58505ec331 Bug 1868788 - [devtools] Handle table-related issues in inactive CSS. r=devtools-reviewers,fluent-reviewers,nchevobbe.
Differential Revision: https://phabricator.services.mozilla.com/D212793
2024-06-26 21:11:49 +00:00
Nicolas Chevobbe 345028b729 Bug 1902961 - [devtools] Include proper computed display value in inactive-css-not-display-block-on-floated message. r=devtools-reviewers,fluent-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D214284
2024-06-24 06:46:39 +00:00
Alexandre Poirot df9fea0485 Bug 1901644 - [devtools] Uncapsulate CONSOLE_MESSAGE resource. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D213225
2024-06-18 18:33:18 +00:00
Alexandre Poirot 077d52cc17 Bug 1901643 - [devtools] Gather resources in arrays in order to prevent having to pass the resource type everytime. r=devtools-reviewers,devtools-backward-compat-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D213224
2024-06-18 18:33:18 +00:00
Sebastian Zartner a7d2d37e2c Bug 1583894 - [devtools] Handle 'box-sizing' property in inactive CSS. r=devtools-reviewers,fluent-reviewers,bolsson,nchevobbe.
Differential Revision: https://phabricator.services.mozilla.com/D212784
2024-06-12 11:25:45 +00:00
Sebastian Zartner d2ad11815f Bug 1551579 - [devtools] Handle 'resize' property in inactive CSS. r=devtools-reviewers,fluent-reviewers,nchevobbe,bolsson.
Differential Revision: https://phabricator.services.mozilla.com/D212994
2024-06-11 19:19:02 +00:00
Sebastian Zartner 6d11285925 Bug 1848705 - [devtools] Handle 'column-span' property in inactive CSS. r=devtools-reviewers,fluent-reviewers,bolsson,nchevobbe.
Differential Revision: https://phabricator.services.mozilla.com/D212472
2024-06-06 10:04:01 +00:00
Sebastian Zartner f479f915e6 Bug 1583903 - [devtools] Handle properties only applying to replaced elements in inactive CSS. r=devtools-reviewers,fluent-reviewers,bolsson,nchevobbe.
Differential Revision: https://phabricator.services.mozilla.com/D212480
2024-06-06 00:02:41 +00:00
Alexandre Poirot eeadbc4866 Bug 1651518 - [devtools] Ensure spawning DistinctSystemPrincipalLoader.sys.mjs only once. r=devtools-reviewers,nchevobbe
This is important to spawn this ESM only once between regular and browser toolbox,
and especially between various callsites used by the browser toolbox.
Otherwise we may start loading modules in two distinct system loaders
and may have inconsistancies when using `instanceof`.

Differential Revision: https://phabricator.services.mozilla.com/D207432
2024-05-27 09:53:54 +00:00
Emilio Cobos Álvarez 5a5e4c3ac3 Bug 1896599 - Remove event-from-input support. r=Jamie,devtools-reviewers,eeejay,nchevobbe
As per the comments it isn't supported with cache-the-world on, it's
barely documented if at all, and a test for it seems to be failing
without me being able to reproduce it at least (tried on both windows
and Linux).

I don't think it's worth digging too much more into it. My guess is a
reentrant / differently timed a11y event caused by my scheduling
changes, or so, which would override sEventTargetNode or the other
static bool.

The test has ~always failed on macOS too...

Differential Revision: https://phabricator.services.mozilla.com/D210872
2024-05-23 12:09:21 +00:00
Cristian Tuns d0272b92b7 Backed out 8 changesets (bug 1651518, bug 1883847) dt failures in nsTArray.h. CLOSED TREE
Backed out changeset 481558275c1d (bug 1651518)
Backed out changeset 5337435e8bca (bug 1651518)
Backed out changeset 8fe0c1a4da7f (bug 1651518)
Backed out changeset 840a0d9db260 (bug 1651518)
Backed out changeset eaab9de5819d (bug 1651518)
Backed out changeset cf71de92d782 (bug 1651518)
Backed out changeset d778691464db (bug 1651518)
Backed out changeset af28e5f719e8 (bug 1883847)
2024-05-22 09:02:19 -04:00
Alexandre Poirot 34e5032104 Bug 1651518 - [devtools] Ensure spawning DistinctSystemPrincipalLoader.sys.mjs only once. r=devtools-reviewers,nchevobbe
This is important to spawn this ESM only once between regular and browser toolbox,
and especially between various callsites used by the browser toolbox.
Otherwise we may start loading modules in two distinct system loaders
and may have inconsistancies when using `instanceof`.

Differential Revision: https://phabricator.services.mozilla.com/D207432
2024-05-22 11:50:44 +00:00
Cristina Horotan ca70119cfa Backed out 8 changesets (bug 1651518, bug 1883847) for causing damp failures at toolbox/browser-toolbox.js CLOSED TREE
Backed out changeset 4ec70db12f48 (bug 1651518)
Backed out changeset b2b138889ad6 (bug 1651518)
Backed out changeset efda5c09b0ea (bug 1651518)
Backed out changeset b0de4113f8fb (bug 1651518)
Backed out changeset 03cf235d2a80 (bug 1651518)
Backed out changeset 58e71c27f1fd (bug 1651518)
Backed out changeset f7fb390c3965 (bug 1651518)
Backed out changeset b8a2473c47c0 (bug 1883847)
2024-05-22 04:00:53 +03:00
Alexandre Poirot 3d2406db93 Bug 1651518 - [devtools] Ensure spawning DistinctSystemPrincipalLoader.sys.mjs only once. r=devtools-reviewers,nchevobbe
This is important to spawn this ESM only once between regular and browser toolbox,
and especially between various callsites used by the browser toolbox.
Otherwise we may start loading modules in two distinct system loaders
and may have inconsistancies when using `instanceof`.

Differential Revision: https://phabricator.services.mozilla.com/D207432
2024-05-21 14:09:33 +00:00
Nicolas Chevobbe 7e3ff18292 Bug 1844446 - [devtools] Send rules matching selectors indexes instead of the selector strings. r=devtools-reviewers,bomsy.
This is done to avoid a performance issue with deeply nested rules,
where computing the desugared selector can be super expensive.
This should help overall since we're doing a bit less work, as well
as returning smaller data.

Differential Revision: https://phabricator.services.mozilla.com/D207727
2024-05-14 06:19:43 +00:00
Nicolas Chevobbe 9b1522fec0 Bug 1868732 - [devtools] Add tests for ::target-text pseudo elements. r=devtools-reviewers,bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D206507
2024-04-24 12:28:42 +00:00
Nathan LaPre a337b03937 Bug 1849160 - Part 4: Update tests in light of new ancestor role requirements, r=Jamie,devtools-reviewers,nchevobbe,geckoview-reviewers,ohall
This revision updates newly-failing tests after implementing the ancestor
requirements for certain child roles. Generally, this revision adds ancestors
where appropriate, because tests largely are not testing this particular
behavior.

Differential Revision: https://phabricator.services.mozilla.com/D205880
2024-04-10 17:22:14 +00:00
Nicolas Chevobbe 3f151d357e Bug 1882964 - [devtools] Turn getRuleBodyTextOffsets into getRuleBodyText for easier unicode chars handling. r=layout-reviewers,devtools-reviewers,emilio,ochameau.
`InspectorUtils.getRuleBodyTextOffset` was returning bytes position, and we
were using them directly in Javascript `substring`, which causes problem
with non-ascii chars.
Instead of returning offsets to compute the rule string, we directly return
the string from InspectorUtils which is easier to work with.

Differential Revision: https://phabricator.services.mozilla.com/D204523
2024-04-08 08:37:14 +00:00
Norisz Fay 7ded2bfda7 Backed out 4 changesets (bug 1849160) for causing gv-junit failure on AccessibilityTest#testSelectable CLOSED TREE
Backed out changeset 0fb937f8c362 (bug 1849160)
Backed out changeset fe5651e406e5 (bug 1849160)
Backed out changeset 8f14ad3ed8b4 (bug 1849160)
Backed out changeset 9a745f454db2 (bug 1849160)
2024-04-02 07:32:11 +03:00
Nathan LaPre 25d3b68e8a Bug 1849160 - Part 4: Update tests in light of new ancestor role requirements, r=Jamie,devtools-reviewers,nchevobbe
This revision updates newly-failing tests after implementing the ancestor
requirements for certain child roles. Generally, this revision adds ancestors
where appropriate, because tests largely are not testing this particular
behavior.

Differential Revision: https://phabricator.services.mozilla.com/D205880
2024-04-02 02:17:39 +00:00
Alexandre Poirot f74f2467f4 Bug 1888171 - [devtools] Convert worker loader module to ESM. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D205865
2024-03-28 15:15:22 +00:00
Christoph Kerschbaumer 3b2005752a Bug 1885313: Update tests within devtools/ to work with https-first enabled, r=jdescottes,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D205724
2024-03-27 10:22:55 +00:00
Alexandre Poirot c867832007 Bug 1789981 - [devtools] Convert last DevTools JSM to ESM. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D202438
2024-03-26 08:29:22 +00:00
Nicolas Chevobbe 94fc97f9cc Bug 1882741 - [devtools] Do not show inactive CSS warning for align-content on (inline-)block elements. r=devtools-reviewers,fluent-reviewers,bolsson,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D203408
2024-03-20 16:41:18 +00:00
Alexandre Poirot 26d9f9bb91 Bug 1713093 - [devtools] Remove TargetMixin.attachThread. r=devtools-reviewers,nchevobbe
This code was only used for workers targets, which weren't passing breakpoints
from the server side via "sessionData" concept.
Instead, we were still relying on the frontend to pass them and only after that
manually requesting the thread to resume its execution.

Now, there is still a notion of "attach" around the thread actor.
While all the targets are immediately instantiating their related thread actor,
the thread actor isn't active by default.
It becomes active as soon as:
* SOURCE or THREAD_STATE resource is watched
* breakpoints are set via session data (breakpoint list actor)
* thread configuration are set via session data (thread configuration actor)
I had to do one of these things in order to keep test from working.
In the production code, we do most of these things by default on the toolbox startup.
We could revise this behavior by:
* always attaching the thread actor, but it may start pausing unexpectedly in some tests.
* decouple sources from breakpoints within the thread actor, so that watching for sources doesn't necessarily "attach" the thread actor and activate breakpoints/debugger statements.
* have a new thread configuration to explicitly enable the thread actor pausing features.

I'm often using thread configuration to enable pausing in tests.
This required to improve xpcshell test helpers to be able to use Watcher/Commands.

About browser_target_command_bfcache.js, the DevTools code is now so quick that the
back/forward requests at done too quickly one after the other and fail actually moving to
the other document.

Differential Revision: https://phabricator.services.mozilla.com/D166321
2024-03-20 12:30:17 +00:00
Alexandre Poirot 34c1fb2d98 Bug 1713093 - [devtools] Ensure processing all the target actors in xpcshell tests. r=devtools-reviewers,nchevobbe
We were only processing the first one being registered.
Luckily we weren't testing session data enough in xpcshell to have trouble because of this.
(this changeset fixes test failure when applying the next one)

Differential Revision: https://phabricator.services.mozilla.com/D203101
2024-03-20 12:30:16 +00:00
Nicolas Chevobbe e4137ed7a1 Bug 1884230 - [devtools] Revert Bug 1882964 to fix regression. r=devtools-reviewers,bomsy.
Since we're at the end of the cycle, let's fix the regression
by reverting getRuleText to use the JS lexer again.
A test case is added to prevent future regression when we'll
try to move this to an InspectorUtils method again.

Differential Revision: https://phabricator.services.mozilla.com/D204621
2024-03-14 15:26:31 +00:00
pstanciu 5a1a45a9a8 Backed out 6 changesets (bug 1713093, bug 1691986) for turning Bug 1767717 into permafail. CLOSED TREE
Backed out changeset b0285f8abf2e (bug 1713093)
Backed out changeset 6532dbabf879 (bug 1713093)
Backed out changeset 2670f26f6bff (bug 1713093)
Backed out changeset a63d603a1973 (bug 1713093)
Backed out changeset 0118d0bc64ba (bug 1713093)
Backed out changeset e29a81bc7299 (bug 1691986)
2024-03-08 20:32:38 +02:00
Alexandre Poirot 9f0c59245f Bug 1713093 - [devtools] Remove TargetMixin.attachThread. r=devtools-reviewers,nchevobbe
This code was only used for workers targets, which weren't passing breakpoints
from the server side via "sessionData" concept.
Instead, we were still relying on the frontend to pass them and only after that
manually requesting the thread to resume its execution.

Now, there is still a notion of "attach" around the thread actor.
While all the targets are immediately instantiating their related thread actor,
the thread actor isn't active by default.
It becomes active as soon as:
* SOURCE or THREAD_STATE resource is watched
* breakpoints are set via session data (breakpoint list actor)
* thread configuration are set via session data (thread configuration actor)
I had to do one of these things in order to keep test from working.
In the production code, we do most of these things by default on the toolbox startup.
We could revise this behavior by:
* always attaching the thread actor, but it may start pausing unexpectedly in some tests.
* decouple sources from breakpoints within the thread actor, so that watching for sources doesn't necessarily "attach" the thread actor and activate breakpoints/debugger statements.
* have a new thread configuration to explicitly enable the thread actor pausing features.

I'm often using thread configuration to enable pausing in tests.
This required to improve xpcshell test helpers to be able to use Watcher/Commands.

About browser_target_command_bfcache.js, the DevTools code is now so quick that the
back/forward requests at done too quickly one after the other and fail actually moving to
the other document.

Differential Revision: https://phabricator.services.mozilla.com/D166321
2024-03-06 13:43:48 +00:00
Alexandre Poirot 074f53663f Bug 1713093 - [devtools] Ensure processing all the target actors in xpcshell tests. r=devtools-reviewers,nchevobbe
We were only processing the first one being registered.
Luckily we weren't testing session data enough in xpcshell to have trouble because of this.
(this changeset fixes test failure when applying the next one)

Differential Revision: https://phabricator.services.mozilla.com/D203101
2024-03-06 13:43:47 +00:00
Dave Townsend 2af4d349f3 Bug 1864896: Autofix unused function arguments (devtools). r=profiler-reviewers,devtools-reviewers,nchevobbe,julienw
Differential Revision: https://phabricator.services.mozilla.com/D202959
2024-03-05 14:21:15 +00:00
Nicolas Chevobbe 11dca72b03 Bug 1882964 - [devtools] Use InspectorUtils.getRuleBodyTextOffsets in getRuleText. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D203234
2024-03-05 08:36:23 +00:00
Alexandre Poirot f616bb4bf5 Bug 1865439 - [devtools] Rename ThreadActor's _parent to targetActor. r=devtools-reviewers,nchevobbe
By protocol.js conventions, most target scopes actors have a `targetActor` attribute set to their parent,
i.e. the related target actor. Thread Actor was old enough to not follow this pattern.

Also remove the second constructor argument and `global` attribute as it was unused.

Differential Revision: https://phabricator.services.mozilla.com/D201696
2024-02-21 22:04:16 +00:00
Nathan LaPre 574c54d7c0 Bug 1656330: Implement grid role, mapping, r=Jamie,devtools-reviewers,nchevobbe
This revision adds a Gecko GRID role, matching the ARIA 'grid' role, and
implements its platform mappings. It then remaps the ARIA 'grid' role to the
Gecko GRID role. Finally, this revision removes the expected-fail for the
relevant formerly-failing web platform test and updates existing tests.

Differential Revision: https://phabricator.services.mozilla.com/D202040
2024-02-21 03:31:55 +00:00
Alexandre Poirot 75fcbff4a7 Bug 1875045 - [devtools] Release Object actors by bulk. r=devtools-reviewers,devtools-backward-compat-reviewers,nchevobbe
For now we were releasing object actors one by one.
This would force to send an individual RDP request for each of them.
The console often release all objects actors related to older console message
going over the maximum limit of displayed console messages (10k).
This can easily grow in a large number of actors to be released,
either if console message are receiving many arguments and/or
if many console are logged.

We have to have one request per target as the actors could only be reached
within same-thread actor.
In order to prepare for ObjectFront removal, introduce a target-scoped "Objects" actor
which is a singleton per Target. It will receive the new "release in bulk objects actors"
method. Later, it will start implementing all the existing methods of the Object Actor
in order to migrate away from having to instantiate one Object Front (notice the singular on "Object"),
per inspected JS Object.

On the fronted side a new Object Command is introduced in order to abstract away the RDP/Fronts work.

Differential Revision: https://phabricator.services.mozilla.com/D198784
2024-01-29 13:59:51 +00:00
Gijs Kruitbosch 3288f177a4 Bug 1780071 - autofix devtools/ violations of no-comparison-or-assignment-inside-ok r=profiler-reviewers,devtools-reviewers,julienw,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D198975
2024-01-26 13:12:07 +00:00
Iulian Moraru f78b22948f Backed out 2 changesets (bug 1875045) for causing dt failures on browser_webconsole_console_logging_workers_api.js. CLOSED TREE
Backed out changeset 533ecc686bac (bug 1875045)
Backed out changeset f4ac089ead5a (bug 1875045)
2024-01-26 16:09:31 +02:00
Alexandre Poirot 3574d88b24 Bug 1875045 - [devtools] Release Object actors by bulk. r=devtools-reviewers,devtools-backward-compat-reviewers,nchevobbe
For now we were releasing object actors one by one.
This would force to send an individual RDP request for each of them.
The console often release all objects actors related to older console message
going over the maximum limit of displayed console messages (10k).
This can easily grow in a large number of actors to be released,
either if console message are receiving many arguments and/or
if many console are logged.

We have to have one request per target as the actors could only be reached
within same-thread actor.
In order to prepare for ObjectFront removal, introduce a target-scoped "Objects" actor
which is a singleton per Target. It will receive the new "release in bulk objects actors"
method. Later, it will start implementing all the existing methods of the Object Actor
in order to migrate away from having to instantiate one Object Front (notice the singular on "Object"),
per inspected JS Object.

On the fronted side a new Object Command is introduced in order to abstract away the RDP/Fronts work.

Differential Revision: https://phabricator.services.mozilla.com/D198784
2024-01-26 10:41:43 +00:00
Jonathan Kew 5c2c2026b5 Bug 1852478 - Update property_database.js for conversion of white-space and text-wrap to shorthands. r=firefox-style-system-reviewers,emilio,devtools-reviewers,nchevobbe
Also fix up devtools data/tests now that white-space is a shorthand.

Differential Revision: https://phabricator.services.mozilla.com/D198792
2024-01-26 09:40:03 +00:00