Граф коммитов

24733 Коммитов

Автор SHA1 Сообщение Дата
Julian Descottes b0d4505476 Bug 1758768 - [devtools] Skip browser_rules_user-property-reset.js on windows debug r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D143265
2022-04-08 10:13:34 +00:00
Hubert Boma Manilla c9cdcab8b2 Bug 1763386 - [devtools] Cleanup up remaping breakpoints r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D141341
2022-04-08 09:23:33 +00:00
Butkovits Atila 1a0219d30e Backed out 2 changesets (bug 1747105) for causing failures at browser_dbg-features-source-text-content.js. CLOSED TREE
Backed out changeset 773d1b03fdda (bug 1747105)
Backed out changeset 32441db1ea2c (bug 1747105)
2022-04-08 01:51:18 +03:00
Alexandre Poirot ed172a3449 Bug 1747105 - [devtools] Covers the source text content for named eval and same url loaded many times. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D142918
2022-04-07 19:51:55 +00:00
Alexandre Poirot 551344eb74 Bug 1747105 - [devtools] Cover SourceTree behavior when having many sources loaded from the same URL. r=bomsy
I had to tune the versionized http helper to pass the right headers,
while still ensuring that http cache is kept disabled.

Differential Revision: https://phabricator.services.mozilla.com/D142348
2022-04-07 19:51:55 +00:00
Julian Descottes dceac04363 Bug 1759332 - [devtools] Remove options.hideIfOffscreen for highlighters infobar elements r=Honza
This feature is currently not tested.

Summary of the issue: we have up to 2 tooltips for grid elements: cell and area.
To avoid overlapping, today they are restricted with two options: `position` (top for one, bottom for the other) and `hideIfOffscreen`.
`position` already ensures that, when there is enough room, the tooltips will not overlap.
However, when they don't have enough room to be displayed, they will start "sliding" to remain in the viewport.
This means that under extreme conditions, you could again have an overlap between the two tooltips.

To avoid this, the `hideIfOffscreen` option was added. Instead of sliding, the tooltip are purely and simply hidden.
While I understand the idea, I think this creates more problems than it solves. For the sake of avoiding rare overlaps, we just don't display the tooltips in many situations.

Ideally we would have a better logic to place the 2 tooltips in compatible positions, or maybe we should even combine them.
But this is an easy way of fixing the issue here.

Differential Revision: https://phabricator.services.mozilla.com/D142203
2022-04-06 19:24:16 +00:00
Dana Keeler 6502ebf4b6 Bug 1608307 - remove redundant flags parameters from nsISiteSecurityService r=jschanck,necko-reviewers,kershaw
Before this patch, nsISiteSecurityService APIs took "flags" parameters that
differentiated private contexts from not private contexts. However, these
parameters were redundant with respect to origin attributes, which led to some
confusion for consumers of these APIs. This patch removes these parameters in
favor of using origin attributes.

Differential Revision: https://phabricator.services.mozilla.com/D142901
2022-04-06 17:37:23 +00:00
Julian Descottes 10b2ca6c71 Bug 1762611 - [devtools] Load devtools DAMP modules using resource scheme r=perftest-reviewers,ochameau,Gijs,sparky
Differential Revision: https://phabricator.services.mozilla.com/D142750
2022-04-06 12:41:00 +00:00
Kagami Sascha Rosylight 3269d4c928 Bug 1703953 - Part 3: Apply mozilla/use-isInstance to devtools r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D142068
2022-04-06 11:57:57 +00:00
Kagami Sascha Rosylight 1409f37ca3 Bug 1703953 - Part 2: Apply mozilla/use-isInstance rules for .jsm files r=webdriver-reviewers,pip-reviewers,mhowell,Gijs,whimboo
This replaces all `instanceof` uses for DOM interfaces, since the operator in priviliged context works same as .isInstance().

Differential Revision: https://phabricator.services.mozilla.com/D141785
2022-04-06 11:57:57 +00:00
colin_czb d93d2c78e3 Bug 1514495 - [devtools] Add a button to clear filter input in JSON inspector r=Honza,Oriol
Differential Revision: https://phabricator.services.mozilla.com/D135428
2022-04-06 11:48:41 +00:00
Alexandre Poirot 2607e2017e Bug 1748222 - [devtools] Remove debugger's Resource API. r=bomsy
This has been mostly replaced by Redux's createSelector and its `resultEqualityCheck` argument.

Differential Revision: https://phabricator.services.mozilla.com/D142544
2022-04-06 07:17:41 +00:00
Alexandre Poirot 02c69d75ac Bug 1762215 - [devtools] Migrate source actors reducer to a Map (instead of Resource API). r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D142542
2022-04-06 07:17:40 +00:00
Alexandre Poirot b5b41d96e9 Bug 1762212 - [devtools] Migrate sources reducer to a Map (instead of Resource API). r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D142463
2022-04-06 07:17:40 +00:00
Gerald Squelart 04624c3d68 Bug 1750677 - processcpu: Remove mention of unneeded preview site - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D142921
2022-04-05 12:47:54 +00:00
Frederik Braun 30ca834b74 Bug 1752475 - Change nsICookie/CookieStruct to implicitly flip SameSite in getter func r=dveditz,dragana,freddyb
Given that we only support samesite lax/strict/none in our storage schema,
it's useful to introduce a default value, as required by the spec.
However, that would it hard to distinguish between none/lax when we switch
the default.
So, instead of doing that we use the peculiarities of our current schema
to our advantage: There's a "sameSite" attribute and a "rawSameSite"
attribute, where the latter is the literal value we received from the
server. With this patch, we'll interpret the "sameSite" attribute
based on the laxByDefault pref. This also has the advantage that various
front-end code (e.g., in DevTools) is always reading the "sameSite"
value of nsICookies.

Differential Revision: https://phabricator.services.mozilla.com/D137460
2022-04-05 08:20:25 +00:00
Nicolas Chevobbe 14ed677c3e Bug 1762849 - [devtools] Automatically generate DateTime rep stubs. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D142788
2022-04-05 07:47:48 +00:00
Mark Banner f3012297a4 Bug 1762601 - Migrate all of devtools from Cu.import to ChromeUtils.import. r=jdescottes,perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D142693
2022-04-04 13:41:02 +00:00
Alexandre Poirot efecaff737 Bug 1761368 - [devtools] Cover nameless eval and content script sources in the SourceTree test. r=bomsy
I'm also improving waitForSourcesInSourceTree to timeout faster and have an helpful error message,
clearly highlight the unexpected or missing sources.

In source tree test, it looks like adding named eval slow things down for the quick open.
So I tuned the related assertion to avoid intermittents.
We were having intermediate updates showing up named eval instead of the source with query string.

Differential Revision: https://phabricator.services.mozilla.com/D142340
2022-04-04 13:32:30 +00:00
Alexandre Poirot 88b1cb12ed Bug 1761368 - [devtools] Reuse integration test page for the source tree test. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D142005
2022-04-04 13:32:29 +00:00
Alexandre Poirot 713fe5ad8e Bug 1761368 - [devtools] Merge all tests against the SourceTree into a dedicated feature test. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D142004
2022-04-04 13:32:29 +00:00
Alexandre Poirot 6d2ea831a0 Bug 1761921 - [devtools] Clarify the integration test page with many comments. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D142318
2022-04-04 13:32:28 +00:00
Nicolas Chevobbe eb0de131a8 Bug 1762827 - [devtools] Remove old edit-and-resend-button rule. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D142781
2022-04-04 12:09:03 +00:00
Nicolas Chevobbe 703b2daf31 Bug 1762550 - [devtools] Cleanup webconsole stylesheet imports. r=bomsy.
Remove httpi.css that was only used by the console, and load the individual
CSS files instead.
Remove widgets.css, which is a relic of the old console.
Remove textActions.ftl import, which doesn't seem to have any effect.

Differential Revision: https://phabricator.services.mozilla.com/D142658
2022-04-04 06:04:17 +00:00
Nicolas Chevobbe b9f014222a Bug 1454419 - [devtools] Rename new-consoletable* to consoletable. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D142657
2022-04-04 06:04:17 +00:00
Nicolas Chevobbe 822125b4fa Bug 1454419 - [devtools] Cleanup webconsole.css. r=jdescottes.
This removes now unused rules (targetting element from the old webconsole), and
merge rules targetting similar elements.

Differential Revision: https://phabricator.services.mozilla.com/D142656
2022-04-04 06:04:16 +00:00
Claudia 71ead80661 Bug 1761991 - [devtools] Fix intermittent failure on custom HTTP panel tests r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D142543
2022-04-02 06:50:15 +00:00
David Shin 1fc2ad0158 Bug 1759621 - Migrate `<th>` `text-align` behaviour from presentation hint to UA CSS. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D142494
2022-04-01 22:57:05 +00:00
Nicolas Chevobbe 3e512a6918 Bug 1760590 - [devtools] Remove unhelpful console-message resource properties. r=ochameau.
- `category` isn't being used for console messages, so we can remove it
- `chromeContext` is only helpful when it's true, so we can omit it when it is not

We take this as an opportunity to test more properties and more message types
in browser_resources_console_messages.js.

Differential Revision: https://phabricator.services.mozilla.com/D141599
2022-04-01 13:03:56 +00:00
Emilio Cobos Álvarez b9e7c7653c Bug 1762088 - Implement parsing / serialization for container{,-type,-name} CSS properties. r=firefox-style-system-reviewers,layout-reviewers,boris
Two noteworthy details that may seem random otherwise:

 * Moving values around in nsStyleDisplay is needed so that the struct
   remains under the size limit that we have to avoid jumping allocator
   buckets.

 * All the test expectation churn is because tests depend on
   `container-type: size` parsing to run, and now they run. Tests for
   the relevant bits I implemented are passing, with the only exception
   of some `container-name-computed.html` failures which are
   https://github.com/w3c/csswg-drafts/issues/7181. Safari agrees with
   us there.

Other notes when looking at the spec and seeing how it matches the
implementation:

 * `container` syntax doesn't match spec, but matches tests and sanity:
   https://github.com/w3c/csswg-drafts/issues/7180

 * `container-type` syntax doesn't _quite_ match spec, but matches tests
   and I think it's a spec bug since the definition for the missing
   keyword is gone:
   https://github.com/w3c/csswg-drafts/issues/7179

Differential Revision: https://phabricator.services.mozilla.com/D142419
2022-03-31 22:56:20 +00:00
Norisz Fay c376790f3c Backed out 4 changesets (bug 1761921, bug 1761368) for causing dt failures on browser_dbg-features-source-tree.js CLOSED TREE
Backed out changeset f478fa1e3df3 (bug 1761368)
Backed out changeset 49ad1260f76d (bug 1761368)
Backed out changeset 0c34f0da19bc (bug 1761368)
Backed out changeset b6bb54ecd127 (bug 1761921)
2022-03-31 15:52:59 +03:00
Alexandre Poirot ca85b5c654 Bug 1761368 - [devtools] Cover nameless eval and content script sources in the SourceTree test. r=bomsy
I'm also improving waitForSourcesInSourceTree to timeout faster and have an helpful error message,
clearly highlight the unexpected or missing sources.

In source tree test, it looks like adding named eval slow things down for the quick open.
So I tuned the related assertion to avoid intermittents.
We were having intermediate updates showing up named eval instead of the source with query string.

Differential Revision: https://phabricator.services.mozilla.com/D142340
2022-03-31 11:20:54 +00:00
Alexandre Poirot 00bc34f43e Bug 1761368 - [devtools] Reuse integration test page for the source tree test. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D142005
2022-03-31 11:20:53 +00:00
Alexandre Poirot f37f3fcb33 Bug 1761368 - [devtools] Merge all tests against the SourceTree into a dedicated feature test. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D142004
2022-03-31 11:20:53 +00:00
Alexandre Poirot 06b128e3ee Bug 1761921 - [devtools] Clarify the integration test page with many comments. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D142318
2022-03-31 11:20:52 +00:00
Nicolas Chevobbe 9b19bbb814 Bug 1761510 - [devtools] Don't render indent element when it's not needed. r=bomsy.
We move the `data-indent` attribute to the message element so tests can still
query it.

Differential Revision: https://phabricator.services.mozilla.com/D142098
2022-03-31 06:55:10 +00:00
Nicolas Chevobbe 3c6288fe88 Bug 1761510 - [devtools] Remove extra element for console message location. r=bomsy.
we directly use what's returned from the `Frame` component. We allow to pass
an extra `className` prop to it so we can still add the `message-location` class
that is used in the console.

Differential Revision: https://phabricator.services.mozilla.com/D142097
2022-03-31 06:55:09 +00:00
Nicolas Chevobbe 50257b7a2b Bug 1761510 - [devtools] Remove frame-link-source-inner element in Frame component. r=bomsy.
This simplifies the markup a bit, and hopefully could contribute to improve
layout and styling performance in the console.

Differential Revision: https://phabricator.services.mozilla.com/D142096
2022-03-31 06:55:09 +00:00
Gijs Kruitbosch b76ad616d1 Bug 1753696 - go back to using add_task in files that have no other tasks at all, r=Standard8
Otherwise the framework complains that there are no tests/tasks.

Differential Revision: https://phabricator.services.mozilla.com/D142441
2022-03-30 16:16:43 +00:00
Gijs Kruitbosch 8e67201171 Bug 1753696 - Automatic rewrite: replace add_task(setup with add_setup in browser mochitest, r=Standard8,webcompat-reviewers,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D141437
2022-03-30 16:16:42 +00:00
wartmanm 3953e8b179 Bug 1728290 - don't connect devtools webextensions to ThreadActors r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D142017
2022-03-30 09:50:17 +00:00
Norisz Fay acdd6851cd Backed out 2 changesets (bug 1753696) for causing multiple dt and bc failures CLOSED TREE
Backed out changeset 67fd9edfbcea (bug 1753696)
Backed out changeset a9d957ea887b (bug 1753696)
2022-03-30 12:17:55 +03:00
Gijs Kruitbosch 27039e2946 Bug 1753696 - Automatic rewrite: replace add_task(setup with add_setup in browser mochitest, r=Standard8,webcompat-reviewers,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D141437
2022-03-30 08:18:51 +00:00
Nicolas Chevobbe aa604cdf0a Bug 1756341 - [devtools] Guard access to props in MenuList. r=Honza.
Differential Revision: https://phabricator.services.mozilla.com/D142312
2022-03-30 06:10:30 +00:00
Nicolas Chevobbe 864db511f6 Bug 1761500 - [devtools] Automatically generate CommentNode rep stub. r=bomsy.
Depends on D140641

Differential Revision: https://phabricator.services.mozilla.com/D142089
2022-03-29 16:05:17 +00:00
Claudia b20f70b87b Bug 1761223 - [devtools] Fix the error Fix header intermittent TypeError on custom HTTP panel test r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D142221
2022-03-29 13:41:18 +00:00
criss 4eec7e25a3 Backed out 3 changesets (bug 1703953) for causing multiple failures. CLOSED TREE
Backed out changeset 871a1fac289e (bug 1703953)
Backed out changeset 8151244bda18 (bug 1703953)
Backed out changeset eaf6d4c353be (bug 1703953)
2022-03-29 17:01:58 +03:00
Kagami Sascha Rosylight 14eb701efa Bug 1703953 - Part 3: Apply mozilla/use-isInstance to devtools r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D142068
2022-03-29 13:11:00 +00:00
Kagami Sascha Rosylight c8f12f94dc Bug 1703953 - Part 2: Apply mozilla/use-isInstance rules for .jsm files r=webdriver-reviewers,pip-reviewers,mhowell,Gijs,whimboo
This replaces all `instanceof` uses for DOM interfaces, since the operator in priviliged context works same as .isInstance().

Differential Revision: https://phabricator.services.mozilla.com/D141785
2022-03-29 13:11:00 +00:00
Julian Descottes 7f4ca3792c Bug 1761727 - Update MDN compat data (2022 mar) r=Honza,daisuke
Differential Revision: https://phabricator.services.mozilla.com/D142238
2022-03-29 07:52:09 +00:00