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

24881 Коммитов

Автор SHA1 Сообщение Дата
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
Hubert Boma Manilla 4556e925d4 Bug 1759502 - [devtools] Fix intermittent when trying to remove breakpoint from GCed source r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D142092
2022-03-29 07:32:41 +00:00
Nicolas Chevobbe 26d741c71f Bug 1755220 - [devtools] Fix add test second param in browser_storage_cookies_add.js.
Differential Revision: https://phabricator.services.mozilla.com/D142309
2022-03-29 05:37:50 +00:00
Julian Descottes d049bb7498 Bug 1609100 - [devtools] Remove unused about:devtools page r=devtools-reviewers,fluent-reviewers,flod,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D141464
2022-03-28 11:12:06 +00:00
Norisz Fay 66797d7700 Backed out 5 changesets (bug 1609100) for causing mochitest failures on browser_check_identity_state.js CLOSED TREE
Backed out changeset 521cbbae0914 (bug 1609100)
Backed out changeset e22daee724f0 (bug 1609100)
Backed out changeset e5c4afe5dd66 (bug 1609100)
Backed out changeset e6ae2c01908e (bug 1609100)
Backed out changeset 3e59351660ab (bug 1609100)
2022-03-28 13:11:58 +03:00
Nicolas Chevobbe 4518679cad Bug 1755220 - [devtools] Observe private-cookie-changed in storage actor. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D141970
2022-03-28 09:27:43 +00:00
Julian Descottes db5d601b00 Bug 1609100 - [devtools] Remove unused about:devtools page r=devtools-reviewers,fluent-reviewers,flod,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D141464
2022-03-28 08:57:36 +00:00
Rob Wu 5b0e505389 Bug 1761072 - Replace use of ExtensionParent in devtools' ExtensionsBackgroundScriptStatusWatcher r=rpl,jdescottes
ExtensionParent.jsm cannot be loaded without a profile, as explained at
https://bugzilla.mozilla.org/show_bug.cgi?id=1761072#c5.

But ExtensionsBackgroundScriptStatusWatcher would try to (lazily) load
the module before a profile was ready, in order to subscribe to future
changes. To avoid loading this whole ExtensionParent.jsm module, I have
replaced the event propagation mechanism with observers.

Differential Revision: https://phabricator.services.mozilla.com/D142065
2022-03-25 22:24:11 +00:00
Nicolas Chevobbe 55bc665ed2 Bug 1758666 - [devtools] Automatically generate Window rep stub. r=bomsy
`ownPropertyLength` is different from platform to platform, so we reassign it
the existing value to avoid making the test failing.

Depends on D140354

Differential Revision: https://phabricator.services.mozilla.com/D140641
2022-03-25 15:54:18 +00:00
Emilio Cobos Álvarez 0010cb6fc4 Bug 1761356 - Remove devtools auto theme notification. r=jdescottes
I think it's fair to say that this is not a new feature anymore. This avoids
showing the notification every time a developer uses devtools on a local build
or so (with a clean profile).

Differential Revision: https://phabricator.services.mozilla.com/D142000
2022-03-25 03:38:08 +00:00
Iulian Moraru 6720cb7921 Bug 1759502 - disable browser_dbg-worker-scopes.js on linux_18.04_64_opt for frequent failures. r=intermittent-reviewers,MasterWayZ DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D142007
2022-03-25 02:14:40 +00:00
Alexandre Poirot 799f3778e3 Bug 1719615 - [devtools] Merge existing wasm tests into a unique "features" test. r=bomsy,yury
The sourcemaps one was disabled.
In the new test, I'm now trying to assert the intermediate behavior of the debugger
when we haven't reloaded the page yet.
The test now also assert much more things about the content being displayed.
And also check for breakable lines.

Differential Revision: https://phabricator.services.mozilla.com/D141334
2022-03-24 21:03:42 +00:00
Alexandre Poirot 8072e8c62b Bug 1719615 - [devtools] Enable 'observeWasm' only once the debugger is opened. r=yury,bomsy
Because WASM debugging triggers different machine code with debugging instruction,
the memory usage very significantly increase.
So avoid enabling it until the debugger is opened.

Differential Revision: https://phabricator.services.mozilla.com/D140069
2022-03-24 21:03:41 +00:00
Yury Delendik b8128f1562 Bug 1719615 - Add observeWasm in addition to observeAsmJS. r=lth
Differential Revision: https://phabricator.services.mozilla.com/D123626
2022-03-24 21:03:41 +00:00
Claudia 291e4034b3 Bug 1750245 - [devtools] Adds test for basic functionality of the new HTTP Custom request panel r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D138659
2022-03-24 09:43:32 +00:00
Butkovits Atila 029877bddb Bug 1750199 - disable browser_dbg-breakpoints-popup.js on Linux_64_debug for frequent failures. r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D141928
2022-03-24 04:17:14 +00:00
Julian Descottes cfc887ddba Bug 1760992 - [devtools] Prevent picking UA shadowRoot elements by default r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D141844
2022-03-24 01:31:10 +00:00
Butkovits Atila 84d4ef5c42 Backed out changeset aaf04c8ba59a (bug 1760992) for causing failures at browser_inspector_picker-useragent-widget.js.CLOSED TREE 2022-03-24 02:23:00 +02:00
Julian Descottes 7641e81228 Bug 1760992 - [devtools] Prevent picking UA shadowRoot elements by default r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D141844
2022-03-23 23:11:34 +00:00
amy churchwell 13ecbc516a Bug 1754268 - Eliminate preprocessor %includes from toolkit in-content stylesheets. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D141071
2022-03-23 18:23:55 +00:00
Alexandre Poirot 70cb60e146 Bug 1759987 - [devtools] Better assert paused line and column. r=bomsy
In _assertDebugLine, we weren't really asserting the actual paused column in CodeMirror.
And for both line and column, we weren't asserting the line and column passed
to assertPausedAtSourceAndLine. Instead it was using selector's values.

browser_browser_toolbox_debugger.js was having issues with the new assertion.
The column markers were set at wrong positions.
I simplified the test script to workaround this.
But I tracked it down to Debugger's Script.getOffsetMetadata returning buggy offsets.

Differential Revision: https://phabricator.services.mozilla.com/D141435
2022-03-23 18:17:51 +00:00
Alexandre Poirot 862f8ae873 Bug 1759987 - [devtools] Drop assertDebugLine in favor of assertPausedAtSourceAndLine. r=bomsy
I'm keeping the method as it is part of assertPausedAtSourceAndLine,
but make it a private helper that should only be used within shared-head.js.

Differential Revision: https://phabricator.services.mozilla.com/D141434
2022-03-23 18:17:50 +00:00
Alexandre Poirot 0df77da252 Bug 1759987 - [devtools] Drop assertPausedLocation in favor of assertPausedAtSourceAndLine. r=bomsy
The previous method wasn't really asserting the paused location.
In only ensured that reducer state was matching CodeMirror state.

Differential Revision: https://phabricator.services.mozilla.com/D141355
2022-03-23 18:17:50 +00:00
Emilio Cobos Álvarez 79f3fe026d Bug 1759962 - Don't return the DPI override in devicePixelRatio to privileged code. r=nchevobbe,webdriver-reviewers
Chrome code should be able to rely on CSS pixel * devicePixelRatio =
device pixel.

Chrome code that cares about the override should use
BrowsingContext.overrideDPPX. We were exposing the no-override value in
WindowUtils but that's unneeded now.

Differential Revision: https://phabricator.services.mozilla.com/D141323
2022-03-23 17:03:04 +00:00
Emilio Cobos Álvarez b75c39ad35 Bug 1760734 - Put overflow: -moz-hidden-unscrollable behind a pref on Nightly. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D141759
2022-03-23 08:41:51 +00:00
Nicolas Chevobbe 3c144d6712 Bug 1760541 - [devtools] Don't reuse longString actors for same string.r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D141575
2022-03-23 06:11:30 +00:00
Nicolas Chevobbe 3306e6a5c1 Bug 1760540 - [devtools] Remove unused `forPreview` parameters. r=ochameau.
Looks like this is a leftover from WebReplay.

Differential Revision: https://phabricator.services.mozilla.com/D141573
2022-03-23 06:11:29 +00:00
smolnar e8a0c58bd0 Backed out 3 changesets (bug 1759666, bug 1760541, bug 1760540) for causing talos damp failures. CLOSED TREE
Backed out changeset ec2f5253456e (bug 1759666)
Backed out changeset d0c9fc3a8d87 (bug 1760541)
Backed out changeset 30f81a7041c7 (bug 1760540)
2022-03-22 23:45:28 +02:00
Nicolas Chevobbe 69473c897a Bug 1760541 - [devtools] Don't reuse longString actors for same string.r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D141575
2022-03-22 17:23:49 +00:00
Nicolas Chevobbe 9b260c53e3 Bug 1760540 - [devtools] Remove unused `forPreview` parameters. r=ochameau.
Looks like this is a leftover from WebReplay.

Differential Revision: https://phabricator.services.mozilla.com/D141573
2022-03-22 17:23:48 +00:00
Nicolas Chevobbe 4948379183 Bug 1760745 - [devtools] Prepare mocha for virtualization patch. r=jdescottes.
This is adding the private methods babel plugin and
defining a mock for Cu.

Differential Revision: https://phabricator.services.mozilla.com/D141714
2022-03-22 16:50:50 +00:00
Julian Descottes 359e0f9289 Bug 1756763 - [devtools] Regenerate DevTools worker bundles r=ochameau
Depends on D141231

Differential Revision: https://phabricator.services.mozilla.com/D141234
2022-03-22 11:43:00 +00:00
Julian Descottes 99bedf483e Bug 1756763 - [devtools] Update validation for sourcemap resources fetching r=dveditz,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D141231
2022-03-22 11:43:00 +00:00
wartmanm 4c2becb657 Bug 1748224 - Replace uses of makeShallowQuery with reselect r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D135620
2022-03-22 09:39:56 +00:00
Julian Descottes babd0375eb Bug 1760260 - [devtools] Skip debugger and console test suites on ASAN because of OOM when creating tabs r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D141459
2022-03-18 13:33:55 +00:00
Nicolas Chevobbe 025c64adbb Bug 1752701 - [devtools] Fix error when expanding object with private getter. r=bomsy.
In PrivatePropertiesiteratorFront#_onResult, we were always
passing privateproperty.descriptor.value to getAdHocFrontOrPrimitiveGrip,
which was causing an error when dealing with getters.
This is fixed by doing the same thing we do in PropertyIteratorFront, i.e.
checking the multiple possible properties on the property descriptor.
The existing test around object with private properties is updated to
reflect this use case.

Differential Revision: https://phabricator.services.mozilla.com/D141224
2022-03-18 06:51:34 +00:00
Julian Descottes 656ac23d4d Bug 1723949 - [devtools] Improve high contrast mode with about:debugging r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D141354
2022-03-17 18:00:42 +00:00
Doug Thayer 7e635a0223 Bug 1752925 - Suppress new script notifications for smart breakpoints r=arai
Profiles of code executing with conditional breakpoints or log points are
dominated by calls to onNewScript. This suppresses those.

Differential Revision: https://phabricator.services.mozilla.com/D138610
2022-03-17 17:02:24 +00:00
Nicolas Chevobbe e4193f399b Bug 1757581 - [devtools] Don't handle Ctrl/Cmd+U in JSTerm. r=jdescottes.
The shortcut is already used to open view-source and we want to let it through.
CodeMirror is using Ctrl+U for its undoSelection command, but it doesn't seem
like an important feature, so we can simply drop it.

Differential Revision: https://phabricator.services.mozilla.com/D141229
2022-03-17 15:51:27 +00:00
Iulian Moraru d7c65853a6 Backed out changeset a4fa7289d582 (bug 1750199) for causing multiple dt failures. CLOSED TREE 2022-03-17 14:22:59 +02:00
Nicolas Chevobbe 572629b423 Bug 1750199 - [devtools] Fix browser_dbg-breakpoints-popup.js intermittent. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D141238
2022-03-17 10:02:14 +00:00
Alexandre Poirot f43adbd031 Bug 1759822 - [devtools] Group to the top of shared-head all intructions before all function definitions. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D141223
2022-03-16 19:11:59 +00:00
Alexandre Poirot e8ba71090d Bug 1759822 - [devtools] Move checkPoolChildrenSize to the one test using this helper. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D141192
2022-03-16 19:11:58 +00:00
Alexandre Poirot 132536a105 Bug 1759822 - [devtools] Use shared waitUntilScreenshot method. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D141191
2022-03-16 19:11:58 +00:00
Alexandre Poirot 570f8b932b Bug 1759822 - [devtools] Move waitForTitleChange to the one test using this. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D141190
2022-03-16 19:11:58 +00:00
Alexandre Poirot 3272cdee66 Bug 1759822 - [devtools] Move lookupPath to helper_markup_accessibility_navigation.js. r=jdescottes
As that's the only place where it is used.

Differential Revision: https://phabricator.services.mozilla.com/D141189
2022-03-16 19:11:57 +00:00
Alexandre Poirot f9c0659b22 Bug 1759822 - [devtools] Move getSupportedToolIds to framework test helper. r=jdescottes
As this is only used by this folder.

Differential Revision: https://phabricator.services.mozilla.com/D141188
2022-03-16 19:11:57 +00:00
Alexandre Poirot a226f04b9d Bug 1759741 - [devtools] Remove shared-redux-head being redundant with shared-head.js r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D141139
2022-03-16 19:11:57 +00:00
Alexandre Poirot 2fc4b0e5fb Bug 1759741 - [devtools] Start using shared-head by a first xpcshell test. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D141138
2022-03-16 19:11:56 +00:00
Luca Greco 6c2b9571fb Bug 1748529 - Show extensions non-persistent background script status changes in about:debugging. r=jdescottes,mixedpuppy,fluent-reviewers,devtools-backward-compat-reviewers,flod,ochameau
Depends on D140379

Differential Revision: https://phabricator.services.mozilla.com/D139701
2022-03-16 15:17:42 +00:00
Luca Greco 60977ffe23 Bug 1748529 - Allow developer to forcefully terminate non-persistent background script from about:debugging. r=jdescottes,mixedpuppy,fluent-reviewers,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D140379
2022-03-16 15:17:42 +00:00
Alexandre Poirot 6ae637e5d7 Bug 1757937 - [devtools] Fix race condition when toggling expand all context menu. r=bomsy
We weren't waiting for the context menu to hide when clicking on the menu entry.

Differential Revision: https://phabricator.services.mozilla.com/D141186
2022-03-16 12:56:57 +00:00
Alexandre Poirot d18ce9479c Bug 1757937 - [devtools] Assert limited debugging of asm.js code before reloading the page. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D140195
2022-03-16 12:56:56 +00:00
Norisz Fay 075ac31448 Bug 1721743 - [devtools] Fix lint failure r=fix CLOSED TREE 2022-03-16 11:55:26 +02:00
Julian Descottes b91575de7f Bug 1721743 - [devtools] Wait for ruleview property in browser_rules_preview-tooltips-sizes.js r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D141106
2022-03-16 09:00:38 +00:00
Julian Descottes 5bb2a7a008 Bug 1737387 - [devtools] Add option to wait for devices list in openRDM r=ochameau
Depends on D141021

Differential Revision: https://phabricator.services.mozilla.com/D141088
2022-03-15 23:22:23 +00:00
Alexandre Poirot d2bd129d14 Bug 1759146 - [devtools] Avoid unexpected GC while running testSourceTextContent. r=bomsy
This test assert that the debugger doesn't get unexpected request while debugging a page.
But for that, we should open the page while the debugger is opened.
Otherwise the page resources might be GC-ed, forcing the debugger to fetch some content again.

Differential Revision: https://phabricator.services.mozilla.com/D141078
2022-03-15 21:58:29 +00:00
Alexandre Poirot 134f0a9934 Bug 1757064 - [devtools] Fix browser_dbg-inspector-integration.js intermittents. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D141079
2022-03-15 16:11:37 +00:00
Nicolas Chevobbe 2eebde76b0 Bug 1759136 - [devtools] Fix Reps TODOs for mode PropType. r=Honza.
Differential Revision: https://phabricator.services.mozilla.com/D140836
2022-03-15 13:47:54 +00:00
Nicolas Chevobbe 3deb67ed8a Bug 1759135 - [devtools] Create distinct set of Reps for JSONViewer. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D140835
2022-03-15 13:47:53 +00:00
Julian Descottes 7708693811 Bug 1737387 - [devtools] Destroy the RDM frame before disconnecting it from the parent document r=ochameau
Depends on D140959

Differential Revision: https://phabricator.services.mozilla.com/D141021
2022-03-15 13:06:25 +00:00
Julian Descottes c07be8b65b Bug 1737387 - [devtools] Use shared helpers to open/close RDM in tests r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D140959
2022-03-15 13:06:25 +00:00
Alexandre Poirot 09db0fe46f Bug 1759224 - [devtools] Better cover garbaged HTML page in browser_dbg-features-source-text-content.js. r=bomsy
The HTML page was sometime GC-ed, but not always.
This led to intermittent.
Now the test always ensure that we open the debugger when
both the HTMl and the JS script are GC-ed.

Differential Revision: https://phabricator.services.mozilla.com/D140985
2022-03-15 10:34:00 +00:00
Claudia 10881177f1 Bug 1759202 - [devtools] Adds test for persistence of content on Custom request panel r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D140873
2022-03-15 08:04:43 +00:00
Nicolas Chevobbe 2c30298ecd Bug 1759414 - [devtools] Move Export Visible Messages context menu actions outside of their submenu. r=jdescottes.
We take this opportunity to rename the actions so they're
more consistent with the other entries.

Depends on D140804

Differential Revision: https://phabricator.services.mozilla.com/D140943
2022-03-15 06:26:39 +00:00
Emilio Cobos Álvarez f6a744bbef Bug 1759130 - Fix/annotate some tests.
MANUAL PUSH: Orange fixup CLOSED TREE.
2022-03-14 15:24:59 +01:00
Hubert Boma Manilla 2c299b35aa Bug 1728587 - [devtools] Fix to stop duplicating breakpoints on remote iframe reload r=ochameau
The issue here was that we only cleanup resources relating to all the targets
on NAVIGATE which fires on the top-level document on reload / navigate. This
is not done for the resources relating to the specific target i.e when reloading
a specific remote iframe. This patch fixes tries to fix that.

In this patch, the thread information is stored for brekpoints, tabs, sources
and source actors, to eanble easy removal when the target is removed.

Differential Revision: https://phabricator.services.mozilla.com/D139268
2022-03-14 12:57:16 +00:00
Martin Robinson c7ed0eb07c Bug 1759130 - Add support for parsing the `content-visibility` property from the CSS Contain specification r=emilio
Add initial parsing support for the CSS `content-visibility` attribute.
Currently these parsed values have no effect.

Differential Revision: https://phabricator.services.mozilla.com/D140834
2022-03-14 12:33:55 +00:00
Nicolas Chevobbe eaddd18b10 Bug 1758986 - [devtools] Remove Select All context menu entry. r=jdescottes.
This action provides little value since we have a "Export to clipboard" action
that goes a step further.
Removing it will also help with virtualization as it will be one less thing to
take care of.

Differential Revision: https://phabricator.services.mozilla.com/D140804
2022-03-14 06:52:08 -04:00
criss b2a966847b Backed out changeset 0135c148f748 (bug 1758986) for causing bc failures. CLOSED TREE 2022-03-14 11:14:17 +02:00
Hikota Nakatani 8679454e14 Bug 1758725 Remove dark theme specific selectors from devtools/client/debugger/src/components/shared/ResultList.css r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D140927
2022-03-14 07:30:59 +00:00
Nicolas Chevobbe 71b2b190dc Bug 1643066 - [devtools] Wait for layout to stabilize when setting scrollTop in tests. r=jdescottes.
This fixes browser_webconsole_scroll.js.

Differential Revision: https://phabricator.services.mozilla.com/D140837
2022-03-14 06:48:12 +00:00
Nicolas Chevobbe 0e54020389 Bug 1757694 - [devtools] Turn `getPropertiesForRuleIndex` into an async function. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D140842
2022-03-14 06:12:04 +00:00
Nicolas Chevobbe 5e16dbad1e Bug 1758986 - [devtools] Remove Select All context menu entry. r=jdescottes.
This action provides little value since we have a "Export to clipboard" action
that goes a step further.
Removing it will also help with virtualization as it will be one less thing to
take care of.

Differential Revision: https://phabricator.services.mozilla.com/D140804
2022-03-14 06:10:44 +00:00
Claudia 50a79212a7 Bug 1745414 - [devtools] Sync the URL parameters when the URL input is updated r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D140078
2022-03-12 11:46:48 +00:00
Nicolas Chevobbe 486cb31190 Bug 1758624 - [devtools] Make Object previewers faster. r=bomsy.
- Accessing DebuggerObject.class is showing up in profile as it's a getter, so we
cache it before calling the previewers, and pass it as an extra argument.
- Remove object destructuring in some function signatures as it's
doing extra work we might end up not needing if the previewer isn't the one
that should be used for the object.
- For some previewers, add Sets for className to match so the lookup is faster
- Avoid checking `isWorker` upfront as it has some overhead

Test for Restricted grip is updated to check that we do get the url in preview.

Differential Revision: https://phabricator.services.mozilla.com/D140603
2022-03-11 17:55:14 +00:00
Nicolas Chevobbe 918e34cb42 Bug 1758638 - [devtools] Speedup ConsoleAPIListener#isMessageRelevant. r=jdescottes.
Store the window `innerWindowId` instead of retrieving it for each message.
Refactor `getWorkerType` to not use Array method.

Differential Revision: https://phabricator.services.mozilla.com/D140627
2022-03-11 17:55:14 +00:00
Nicolas Chevobbe 3d61547b02 Bug 1758625 - [devtools] Only include ownSymbols(Length)/privateProperties(Length) in grip when there are some in the object. r=ochameau.
This should help save some cycle in JSActor communication when logging objects.
The client handles those propery only when they are not falsy, so we don't need
to do anything there with this change.

Differential Revision: https://phabricator.services.mozilla.com/D140604
2022-03-11 17:55:14 +00:00
Alexandre Poirot 497528097e Bug 1758973 - [devtools] Upgrade DevTools's reselect to 4.1.5 r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D140738
2022-03-11 17:16:36 +00:00
Mark Banner 8bb4667fae Bug 1758474 - Implement an ESLint rule to disallow passing {} as the target parameter for ChromeUtils.import. r=Gijs,mossop,perftest-reviewers,preferences-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D140517
2022-03-11 16:41:29 +00:00
Olli Pettay b1160879b5 Bug 1701097, stabilize layout in browser_webconsole_filter_scroll.js before quering scroll position, r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D140823
2022-03-11 10:59:15 +00:00
Alexandre Poirot a736d67240 Bug 1754407 - [devtools] Use a distinct reducer for source text content and make source objects immutables. r=perftest-reviewers,devtools-reviewers,bomsy,AlexandruIonescu
This helps working on debugger performance as source objects are now immutable
and so won't trigger selector updates.

This also stop updating the object/map that contains all the text contents.

Differential Revision: https://phabricator.services.mozilla.com/D138261
2022-03-11 10:23:33 +00:00
Alexandre Poirot 3976d30b56 Bug 1754407 - [devtools] Cover fetching source text content with a mochitest. r=bomsy
This replaces a jest test with some real usecases.

Differential Revision: https://phabricator.services.mozilla.com/D140067
2022-03-11 10:23:32 +00:00
Alexandre Poirot 55a47e51aa Bug 1754407 - [devtools] Only support ADD_SOURCES options. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D138260
2022-03-11 10:23:32 +00:00
Butkovits Atila 2e1573cc98 Backed out changeset 8be44ea054ca (bug 1758666) for causing dt failures at browser_reps_stubs.js. CLOSED TREE 2022-03-11 11:54:21 +02:00
Julian Descottes 1c52152e37 Bug 1758792 - [devtools] Remove private browsing lock from performance front end r=julienw,devtools-backward-compat-reviewers
Depends on D140753

Differential Revision: https://phabricator.services.mozilla.com/D140754
2022-03-11 09:32:23 +00:00
Julian Descottes e5a462eb3c Bug 1758792 - [devtools] Remove media and mediaText from style-rule front r=nchevobbe
Depends on D140752

Differential Revision: https://phabricator.services.mozilla.com/D140753
2022-03-11 09:32:23 +00:00
Julian Descottes be067626d8 Bug 1758792 - [devtools] Remove backward compatibility code from blackbox command r=bomsy
Depends on D140687

Differential Revision: https://phabricator.services.mozilla.com/D140752
2022-03-11 09:32:22 +00:00
Julian Descottes 3d2aeacb3e Bug 1758792 - [devtools] Remove unused isOOP from webextension descriptor r=nchevobbe
Depends on D140686

Not directly related to backward compat cleanup, but I spotted this unused code.
No trace of any test checking isOOP in the codebase, so I think it's safe to remove.

Differential Revision: https://phabricator.services.mozilla.com/D140687
2022-03-11 09:32:22 +00:00
Julian Descottes f7c994af16 Bug 1758792 - [devtools] Fix backward compat comment in webextension descriptor actor r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D140686
2022-03-11 09:32:22 +00:00
Nicolas Chevobbe c5d4cb480c Bug 1758666 - [devtools] Automatically generate Window rep stub. r=bomsy
Depends on D140354

Differential Revision: https://phabricator.services.mozilla.com/D140641
2022-03-11 08:50:46 +00:00
Alexandre Poirot c0f34702c3 Bug 1757951 - [devtools] Implement "Root" Resources in order to be able to watch for context-less resources in the parent process. r=jdescottes,devtools-backward-compat-reviewers
This is equivalent to the ResourceCommand, but isn't related to any context/descriptor.
This helps listen to things right away when connecting to a RDP server.
That, without having to instantiate any descriptor/watcher actor.
It works right away via the root actor which is instantiated by default.

Differential Revision: https://phabricator.services.mozilla.com/D140206
2022-03-10 22:43:48 +00:00
Claudia eb959d8afc Bug 1758351 - [devtools] Change the name of the pref "devtools.netmonitor.features.newEditAndResendState" to "devtools.netmonitor.customRequest" r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D140493
2022-03-10 18:30:15 +00:00
Alexandre Poirot 5443aeb1ca Bug 1755991 - [devtools] Use a sourcemap test with compressed generated sources. r=bomsy
This helps cover sourcemap logic to update breakpoint locations with columns.

This patch also shuffle tests around to introduce "integration tests".
We start running the same test scripts with two distinct environment:
* uncompressed source maps bundles (the bundles are multilines and sources format is the same as the original files)
* compressed source mapss bundles (the bundles are compressed into a unique line)

Differential Revision: https://phabricator.services.mozilla.com/D139065
2022-03-10 16:54:05 +00:00
smolnar e89faa903f Backed out changeset 5018856d8fee (bug 1758474) for causing node eslint failure. CLOSED TREE 2022-03-10 11:58:45 +02:00
Mark Banner fe937b78bd Bug 1758474 - Implement an ESLint rule to disallow passing {} as the target parameter for ChromeUtils.import. r=Gijs,mossop,perftest-reviewers,preferences-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D140517
2022-03-10 09:25:28 +00:00
colin_czb 2e0db4918d Bug 1661921 - [devtools] Console Instant Value no refresh after page refresh r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D139770
2022-03-10 07:50:59 +00:00
Sai Hemanth B 89abef6e8a Bug 1757816 - Use rule parameter in inspector EditingSession:getPropertyIndex. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D140439
2022-03-09 22:35:35 +00:00
Alexandre Poirot dcc87f7fec Bug 1758110 - [devtools] Better assert the actual content of the source tree. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D140327
2022-03-09 13:51:30 +00:00
Claudia eb82038342 Bug 1755464 - [devtools] Adds test for clear button of the new HTTP Custom request panel r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D139753
2022-03-09 13:45:36 +00:00
Hubert Boma Manilla 8efc93a06d Bug 1740202 - [devtools] Test for breakpoints in same files in different targets r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D138648
2022-03-09 11:33:11 +00:00
Nicolas Chevobbe 33f58eb9d1 Bug 1758140 - [devtools] Automatically generate Attribute rep stub. r=bomsy.
The other auto-generated stubs were generated again, this time without the autolint-fix
so they will stay in the same shape.

Differential Revision: https://phabricator.services.mozilla.com/D140354
2022-03-09 06:01:14 +00:00
Chris Peterson 809cd2a13e Bug 1598759 - Remove support for Large-Allocation HTTP header. r=nika,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D140459
2022-03-09 03:18:04 +00:00
Mark Banner 8824cac727 Bug 1758106 - Stop using ChromeUtils.import(..., null) for importing modules in devtools/. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D140320
2022-03-08 16:59:18 +00:00
Sai Hemanth B 0e1c12c055 Bug 1419412 - Hide box model guide when point is NaN. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D139784
2022-03-07 08:03:10 +00:00
nchevobbe e43696e781 Bug 1756941 - Rename getOwnPropertiesLength into getOwnPropertyNamesLength. r=jandem
Depends on D139709

Differential Revision: https://phabricator.services.mozilla.com/D140309
2022-03-04 15:45:18 +00:00
Alexandre Poirot ec21853e04 Bug 1757401 - [devtools] Simplify source selectors thanks to thread attribute on sources. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D140079
2022-03-04 09:14:21 +00:00
Nicolas Chevobbe a002fca482 Bug 1756822 - [devtools] Don't include unnecessary properties in console message resource. r=jdescottes.
Don't clone the whole message we receive as a result of a console API call, but select
properties that are being used on the client.
As a result, we're not sending some properties anymore (`functionName`, `addonId`, `workerType`),
and we also don't include some properties when they are falsy and wouldn't bring
any benefit (`counter`,`timer`, `private`, `prefix`, `stacktrace`)

Hopefully this helps save some cycle since we're not cloning an object, but also in the
JSActor communication since the packet we need to send is smaller.

We do similar changes to the webconsoleActor method, which is still used in non
fission scenarios, and remove WebConsoleUtils.cloneObject which is no longer used.

Differential Revision: https://phabricator.services.mozilla.com/D139686
2022-03-04 07:05:06 +00:00
nchevobbe 7189e9cf74 Bug 1756941 - Add DebuggerObject#getOwnPropertiesLength. r=mgaudet.
This new method is being used in DevTools code to replace the usage
that was made of `getOwnPropertyNames` only to retrieve the length
property of the returned array.

Differential Revision: https://phabricator.services.mozilla.com/D139709
2022-03-04 05:58:42 +00:00
Sean Feng 2b99a38b76 Bug 1741671 - Remove browser_navigateEvents.js test r=ochameau
This test does a bunch of assertions for a series of events which
is complex and not reliable. It also becomes overly complicated when
Fission is enabled. Looks like this test isn't really needed, so
we are removing it.

Differential Revision: https://phabricator.services.mozilla.com/D139604
2022-03-03 19:13:48 +00:00
Nicolas Chevobbe e954c570c9 Bug 1757552 - [devtools] Generate actor-less reps stubs.r=bomsy.
This patch is introducing the machinery to automatically generate/check some
stubs used by Reps.
We're focusing on stubs that shouldn't be represented by a front as it's easier
to deal with; we should then have follow up and incremental patches for each
stubs.

Some data can't be retrieved after being serialized/deserialized (`-0`, unsafe int, …),
and in such case the associated test was modified to directly pass the object.

Differential Revision: https://phabricator.services.mozilla.com/D139933
2022-03-03 16:16:50 +00:00
Narcis Beleuzu 4d7efa7f94 Backed out 1 changesets (bug 1757552) for lint failure on browser_dummy.js . CLOSED TREE
Backed out changeset 652aee2a723c (bug 1757552)
2022-03-03 17:19:56 +02:00
Nicolas Chevobbe 283e703931 Bug 1757552 - [devtools] Generate actor-less reps stubs.r=bomsy.
This patch is introducing the machinery to automatically generate/check some
stubs used by Reps.
We're focusing on stubs that shouldn't be represented by a front as it's easier
to deal with; we should then have follow up and incremental patches for each
stubs.

Some data can't be retrieved after being serialized/deserialized (`-0`, unsafe int, …),
and in such case the associated test was modified to directly pass the object.

Differential Revision: https://phabricator.services.mozilla.com/D139933
2022-03-03 14:47:41 +00:00
Alexandre Poirot c7ed2ebfbc Bug 1756490 - [devtools] Use browserId to identify remote tabs in about:debugging. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D139312
2022-03-03 12:36:09 +00:00
smolnar a387ae3a47 Bug 1686344 - Fix es lint failure. a=lint-fix CLOSED TREE 2022-03-03 06:29:47 +02:00
Nick Alexander aa53849520 Bug 1686344 - Add test for `--backgroundtask --jsdebugger --wait-for-jsdebugger`. r=devtools-reviewers,jdescottes
This version is as simple as I can make it.  It simply expects the JS
debugger to stop on the breakpoint added automatically by the
backgroundtask debugger command line processing (using
`setBreakpointOnLoad`) and disconnects, expecting the task to continue
execution and exit with exit code 0.

In the future, we'd like to interact with the task environment, for example to:

1. stop on the automatic breakpoint
2. continue
3. stop on a `debugger;`
4. set the task's exit code from a failure code to exit code 0
5. continue
6. verifies the tasks's exit code is 0.

Sadly my attempts to do this fail intermittently in automation.

Differential Revision: https://phabricator.services.mozilla.com/D139156
2022-03-03 03:38:40 +00:00
Nick Alexander d917365044 Bug 1686344 - Support `--backgroundtask --jsdebugger` (and `--wait-for-jsdebugger`). r=mossop,jdescottes
Background task mode is roughly equivalent to `xpcshell`, but inside
the regular browser startup flow.  There is no browser window (no
`Window` at all) and there should be no content processes.  It's
sufficient to treat it like `xpcshell`, with its own stripped-down
actor and a few tweaks to the integration points.

The structural changes in this commit keep `--backgroundtask` mode
slim in the regular case when the Devtools are *not* requested.  This
is reflected in the small changes needed to the
`browser_xpcom_graph_wait.js` test: loading the Devtools
unconditionally causes a huge amount of code to be loaded.  In order
to load the Devtools framework conditionally, we check for
Devtools-specific command line flags and delegate to Devtools when
appropriate.  In order to check the command line flags, we turn the
`BackgroundTasksManager` into an XPCOM service, which allows it to be
instantiated by XPCOM in order to handle the command line.

One final note: this leaves two XPCOM components, "backgroundtasks"
and "backgroundtasksmanager".  Why not combine them?  This is
technically possible but not attractive: we really do want a natural
place for native/C++ code ("backgroundtasks") and JavaScript code
("backgroundtasksmanager").

Differential Revision: https://phabricator.services.mozilla.com/D129771
2022-03-03 03:38:39 +00:00
Nick Alexander 353a6ca92a Bug 1686344 - Pre: Prefix child process output lines with PID>. r=devtools-reviewers,jdescottes
We may get multiple lines or incomplete lines from the pipe, so we
need to split the data and keep the leftover.  This simply makes
debugging a little more pleasant.

Differential Revision: https://phabricator.services.mozilla.com/D139155
2022-03-03 03:38:39 +00:00
Nick Alexander b415214de0 Bug 1741978 - Clean up at shutdown after `--start-debugger-server`. r=devtools-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D139152
2022-03-03 03:38:39 +00:00
Julian Descottes a9045a9bb2 Bug 1757744 - [devtools] Show custom toolbox title for XPCShell debugging r=nchevobbe
Note that XPCShell debugging is usually done via an about:devtools-toolbox tab, so most of the time there will be no title like this.
But we could enable BrowserToolbox xpcshell debugging via https://bugzilla.mozilla.org/show_bug.cgi?id=1620942 and in the meantime this will make it easier to spot configuration issues.

Differential Revision: https://phabricator.services.mozilla.com/D140063
2022-03-02 16:50:13 +00:00
Julian Descottes 8dd0df41aa Bug 1757659 - [devtools] Remove unused methods for parent process codepath in root actor r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D139994
2022-03-02 16:28:46 +00:00
Nicolas Chevobbe cec6a9a43d Bug 1755266 - [devtools] Fix isFrameWithChildTarget for frame element. r=jdescottes.
We do create dedicated targets for frame documents, but
in isFrameWithChildTarget, we were only checking if the
passed element was an iframe, making some area of the code
not behaving correctly (e.g. using the node picker, or
the Inspect Element context menu entry).
This patch fixes this and add a test case to make sure we
don't regress.

Differential Revision: https://phabricator.services.mozilla.com/D140041
2022-03-02 15:39:54 +00:00
Claudia 3339cabe9d Bug 1757382 - [devtools] Change the title to "Resend" on the Headers panel r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D139820
2022-03-02 11:53:48 +00:00
Daisuke Akatsuka f9369c4811 Bug 1757603: Update MDN compat data. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D140037
2022-03-02 10:45:52 +00:00
Julian Descottes 3a20d1909c Bug 1755434 - [devtools] Regenerate debugger and source-map bundles r=bomsy
Depends on D138763

Differential Revision: https://phabricator.services.mozilla.com/D139737
2022-03-01 19:55:40 +00:00
Julian Descottes 758798d070 Bug 1755434 - [devtools] Replace netmonitor duplicated worker-utils with shared worker-utils r=bomsy
Depends on D138759

Differential Revision: https://phabricator.services.mozilla.com/D138763
2022-03-01 19:55:39 +00:00
Julian Descottes 527157b59c Bug 1755434 - [devtools] Remove debugger devtools-utils package r=bomsy
No significant gain to expect as we are mostly moving things around, but this could reduce the confusion around the debugger.

Differential Revision: https://phabricator.services.mozilla.com/D138759
2022-03-01 19:55:39 +00:00
Cristian Tuns 1a0b214ad9 Backed out 2 changesets (bug 1741671) for causing wpt failures on back-forward-cache/events.html CLOSED TREE
Backed out changeset 7fffe4e20ea8 (bug 1741671)
Backed out changeset fc9c97d475c2 (bug 1741671)
2022-03-01 14:44:53 -05:00
Sean Feng eafc8c6311 Bug 1741671 - Remove browser_navigateEvents.js test r=ochameau
This test does a bunch of assertions for a series of events which
is complex and not reliable. It also becomes overly complicated when
Fission is enabled. Looks like this test isn't really needed, so
we are removing it.

Differential Revision: https://phabricator.services.mozilla.com/D139604
2022-03-01 18:50:46 +00:00
Nicolas Chevobbe 0bcb746065 Bug 1756533 - [devtools] Only store what's needed in devtools.inspector.compatibility.target-browsers. r=jdescottes.
We only need to store the id and status of the selected browsers
for the inspector.
Functions from compatibility-user-settings are renamed to better
convey what they are actually doing, and JSDoc is added to make
everything more explicit.

Differential Revision: https://phabricator.services.mozilla.com/D139394
2022-03-01 15:20:23 +00:00
Nicolas Chevobbe 2894b6c434 Bug 1756620 - [devtools] Remove devtools/shared/compatibility/dataset/browsers.json. r=jdescottes.
The file is not used anymore since we switched to RemoteSettings
to store this dataset.

Differential Revision: https://phabricator.services.mozilla.com/D139392
2022-03-01 15:20:23 +00:00
Nicolas Chevobbe baf0a36e00 Bug 1639020 - [devtools] Re-enable filter-editor-04 and filter-editor-06. r=Honza.
Differential Revision: https://phabricator.services.mozilla.com/D139839
2022-03-01 11:59:36 +00:00
Cameron McCormack 844fb17be9 Bug 1607913 - Use Consolas instead of Courier New in Windows monospace font prefs. r=jfkthame
A number of tests (and expectations) are updated here to either avoid
accidentally relying on the size of Courier New on Windows, or to
explicitly use Courier New instead of monospace, where it's harder to
work out how to rewrite the test correctly.

Differential Revision: https://phabricator.services.mozilla.com/D87222
2022-03-01 11:03:42 +00:00
Claudia 961a73bfd0 Bug 1756200 - [devtools] Changes multi-line text area feature to use mostly CSS r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D139140
2022-03-01 08:27:54 +00:00
Mattias de los Rios Rogers d400f88399 Bug 1708356 - [devtools] Notify users when a XSSI string has been removed. r=bomsy
This changeset adds a NotificationBox to the ResponsePanel that notifies
users that a XSSI string was removed. This NotificationBox is only
displayed when the user is viewing parsed JSON using properties view.
Furthermore, when XSSI stripped characters are detected the ResponsePanel
will default to raw view.

Depends on D115442

Differential Revision: https://phabricator.services.mozilla.com/D115573
2022-02-28 18:25:22 +00:00
Mattias de los Rios Rogers 79e2fe263b Bug 1708356 - [devtools] Only strip true XSSI prevention sequences while formatting JSON. r=bomsy
This fix makes sure that only valid XSSI prevention sequences are removed
from JSON payloads. Before, any string prepending the JSON payload was
removed which meant malformed JSON could still be displayed in properties
view as if it was valid which confused users.

Differential Revision: https://phabricator.services.mozilla.com/D115442
2022-02-28 18:25:21 +00:00
Alexandre Poirot abdf9aa97b Bug 1757397 - [devtools] Enable consistant return eslint rule in the debugger. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D139844
2022-02-28 17:59:32 +00:00
Alexandre Poirot 26c5ba2c1a Bug 1757397 - [devtools] Enable strict eslint rule in the debugger. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D139843
2022-02-28 17:59:32 +00:00
criss 8bd0bafa53 Backed out changeset d1e6410ead1d (bug 1514495) for causing failures on browser_jsonview_filter_clear.js. CLOSED TREE 2022-02-28 16:50:10 +02:00
criss 9bebbe01a2 Backed out 2 changesets (bug 1756620, bug 1756533) for causing failures on browser_rules_css-compatibility-check-add-fix.js
Backed out changeset 4984bcaf64cf (bug 1756533)
Backed out changeset 86305783882c (bug 1756620)
2022-02-28 16:49:03 +02:00
colin_czb 039c4abdd1 Bug 1514495 - [devtools] Add a button to clear filter input in JSON inspector r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D135428
2022-02-28 14:01:47 +00:00
Hubert Boma Manilla 4dd5809afa Bug 1757379 - [devtools] Add a function to unifying the shape of the breakpoint r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D139811
2022-02-28 12:59:34 +00:00
Hubert Boma Manilla 308b9eb863 Bug 1757375 - [devtools] Add thread information to some debugger resources r=ochameau
This adds thread information to sources (generated, original and pretty-printed-original), tabs and breakpoints
as its already done with source actors. This will make it easy to apply retrieve and cleanup these resources
based on their thread info without having to do a lot of work.  Might help improve perfomance is some of
the complex selectors.

Differential Revision: https://phabricator.services.mozilla.com/D139810
2022-02-28 12:59:34 +00:00
Nicolas Chevobbe 4fe958191e Bug 1756533 - [devtools] Only store what's needed in devtools.inspector.compatibility.target-browsers. r=jdescottes.
We only need to store the id and status of the selected browsers
for the inspector.
Functions from compatibility-user-settings are renamed to better
convey what they are actually doing, and JSDoc is added to make
everything more explicit.

Differential Revision: https://phabricator.services.mozilla.com/D139394
2022-02-28 10:51:56 +00:00
Nicolas Chevobbe 17e5050429 Bug 1756620 - [devtools] Remove devtools/shared/compatibility/dataset/browsers.json. r=jdescottes.
The file is not used anymore since we switched to RemoteSettings
to store this dataset.

Differential Revision: https://phabricator.services.mozilla.com/D139392
2022-02-28 10:51:56 +00:00
Csoregi Natalia d4c94b197f Backed out 2 changesets (bug 1756533, bug 1756620) for failures on browser_rules_css-compatibility-check-add-fix.js. CLOSED TREE
Backed out changeset 47550f255778 (bug 1756533)
Backed out changeset 40e9d05f7fa1 (bug 1756620)
2022-02-25 18:19:50 +02:00
Nicolas Chevobbe 11c571c6bd Bug 1756533 - [devtools] Only store what's needed in devtools.inspector.compatibility.target-browsers. r=jdescottes.
We only need to store the id and status of the selected browsers
for the inspector.
Functions from compatibility-user-settings are renamed to better
convey what they are actually doing, and JSDoc is added to make
everything more explicit.

Differential Revision: https://phabricator.services.mozilla.com/D139394
2022-02-25 15:05:50 +00:00
Nicolas Chevobbe d10863169f Bug 1756620 - [devtools] Remove devtools/shared/compatibility/dataset/browsers.json. r=jdescottes.
The file is not used anymore since we switched to RemoteSettings
to store this dataset.

Differential Revision: https://phabricator.services.mozilla.com/D139392
2022-02-25 15:05:49 +00:00
Julian Descottes 7051c8315a Bug 1757143 - [devtools] Show the settings to toggle the new performance panel on all channels r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D139688
2022-02-25 12:48:56 +00:00
Alexandre Poirot 0b1f923f0b Bug 1756757 - [devtools] Use waitFor instead of waitUntilPredicate. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D139483
2022-02-25 12:10:53 +00:00
Alexandre Poirot 560fbd9491 Bug 1756757 - [devtools] Use wait instead of waitForTime. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D139482
2022-02-25 12:10:53 +00:00
Alexandre Poirot d1792a86b7 Bug 1756757 - [devtools] Remove assertEmptyLines being redundant with browser_dbg-breakable-lines.js test. r=bomsy
There was this unique check against non-breakable lines.
browser_dbg-breakable-lines.js now test this much more in depth.
This old unique assertion is not worth keeping.

Differential Revision: https://phabricator.services.mozilla.com/D139481
2022-02-25 12:10:52 +00:00
Alexandre Poirot 49326a059d Bug 1756757 - [devtools] Stop using isPaused from debugger test and clarify existing pause/resume helpers. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D139480
2022-02-25 12:10:52 +00:00