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

27809 Коммитов

Автор SHA1 Сообщение Дата
Gijs Kruitbosch 3f42fcd65b Bug 1780071 - turn on no-comparison-or-assignment-inside-ok for xpcshell and browser tests, r=mossop,devtools-reviewers,fxview-reviewers,sclements,ochameau
I'll split up the autofix commits separately assuming we're all happy to go ahead with this.

Differential Revision: https://phabricator.services.mozilla.com/D198594
2024-02-20 12:40:07 +00:00
Alexandre Poirot f3effea66c Bug 1853899 - [devtools] Introduce a new Menu Button dedicated to source maps. r=devtools-reviewers,nchevobbe
It allows
* toggling Source Map support entirely
* open the source map URL (when a bundle file is currently selected)
* open the mapped source (original or bundle)
* toggle the "open original source by default" setting
* show source map status (source map error, is it original or bundle file, is this a regular source?)

Differential Revision: https://phabricator.services.mozilla.com/D187577
2024-02-20 11:14:33 +00:00
Tooru Fujisawa 923797dc01 Bug 1875639 - Part 2: Explicitly use contextual loader in files loaded into DevTools global. r=ochameau,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D199467
2024-02-20 04:49:57 +00:00
Tooru Fujisawa 40b6a3b4ae Bug 1875639 - Part 1: Use global option instead of loadInDevToolsLoader option. r=ochameau,devtools-reviewers
global option supercedes loadInDevToolsLoader, with omitting the
implicit contextual loader behavior.
In order to make the API less error-prone, use global option, with requireing
global option in DevTools global, to choose from shared global or explicit
contextual loader.

Differential Revision: https://phabricator.services.mozilla.com/D199466
2024-02-20 04:49:57 +00:00
Gijs Kruitbosch ff17e7fc68 Bug 1780071 - Manual fixes/disabling of no-comparison-or-assignment-inside-ok for exceptional cases, r=Standard8,devtools-reviewers,anti-tracking-reviewers,places-reviewers,dom-storage-reviewers,pbz,asuth,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D198979
2024-02-19 23:30:40 +00:00
Hubert Boma Manilla 8a75fef89b Bug 1879322 - [devtools] Switch to more accurate check on the source content r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D201824
2024-02-19 21:19:57 +00:00
Emilio Cobos Álvarez 47165ebb0f Bug 1868316 - Remove user-find, make inert not findable. r=dholbert
As per the HTML spec.

Differential Revision: https://phabricator.services.mozilla.com/D201906
2024-02-16 20:18:06 +00:00
Nicolas Chevobbe f49ecf937b Bug 1880428 - [devtools] Make line highlight background color semi-transparent so text selection is visible. r=ochameau,devtools-reviewers.
The background color of the line highlight was opaque, hiding any
text selection that could be on that line.
Using a color with some transparency makes the selection visible.
We take this as an opportunity to fix and refactor the CSS for
line highlight.

Differential Revision: https://phabricator.services.mozilla.com/D201941
2024-02-15 17:20:19 +00:00
Iulian Moraru cf648b9f1b Backed out changeset 5e0067938b95 (bug 1880428) for causing devtools failures on browser_parsable_css.js. 2024-02-15 17:39:36 +02:00
Nicolas Chevobbe b86b87b46f Bug 1880428 - [devtools] Make line highlight background color semi-transparent so text selection is visible. r=ochameau,devtools-reviewers.
The background color of the line highlight was opaque, hiding any
text selection that could be on that line.
Using a color with some transparency makes the selection visible.
We take this as an opportunity to fix and refactor the CSS for
line highlight.

Differential Revision: https://phabricator.services.mozilla.com/D201941
2024-02-15 14:13:03 +00:00
Nicolas Chevobbe e5fbaa5d69 Bug 1247751 - [devtools] Add InspectorUtils.getRuleIndex. r=emilio,devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D201383
2024-02-15 14:04:32 +00:00
Nicolas Chevobbe fcb8172819 Bug 1878615 - [devtools] Restrict impact of CSS variable autocomplete in rules view. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D201740
2024-02-15 13:46:18 +00:00
Alexandre Poirot 5454e37e9b Bug 1877090 - [devtools] Fix selected row color on the storage panel. r=devtools-reviewers,nchevobbe
This rule overrides the expected color set by light/dark-theme.css.

Differential Revision: https://phabricator.services.mozilla.com/D201733
2024-02-13 22:47:30 +00:00
Alexandre Poirot 8a6a53b629 Bug 1879575 - [devtools] Add source items in the right position instead of sorting the whole array. r=devtools-reviewers,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D201386
2024-02-13 16:11:57 +00:00
Markus Stange 0a40c64546 Bug 1879981 - Update profiler-get-symbols wasm to 390b8c4be82c720dd3977ff205fb34bd7d0e00ba. r=canaltinova,profiler-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D201654
2024-02-13 14:33:33 +00:00
Greg Stoll 6b9e711a99 Bug 1871135 - Add content analysis support to clipboard operations r=edgar,nika,masayuki,devtools-reviewers
When content analysis is on, pastes will be checked by the CA
agent while tab input is blocked. The synchronous nsIClipboard.getData()
method must block until the analysis result is received, so this
requires doing a SpinEventLoopUntil.

Differential Revision: https://phabricator.services.mozilla.com/D196997
2024-02-13 11:26:48 +00:00
Sandor Molnar 19a1b85b6c Backed out changeset 57ab9d9420d9 (bug 1879575) for causing devtools failures at devtools/client/debugger/test/mochitest/browser_dbg-features-browser-toolbox-source-tree.js 2024-02-13 12:44:14 +02:00
Alexandre Poirot 1a7d65a472 Bug 1879575 - [devtools] Add source items in the right position instead of sorting the whole array. r=devtools-reviewers,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D201386
2024-02-13 09:51:43 +00:00
Alexandre Poirot 29799bf50d Bug 1867547 - [devtools] Fix accessibility node picker when zooming the page. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D196458
2024-02-13 09:49:29 +00:00
Alexandre Poirot cac78cdc3c Bug 1832135 - [devtools] Split JavaScript tracer test in many tests. r=devtools-reviewers,nchevobbe
Doing all the tests in one-go would go over the timeout in debug builds.

Differential Revision: https://phabricator.services.mozilla.com/D201588
2024-02-13 09:38:50 +00:00
Alexandre Poirot 77158d8ec9 Bug 1852028 - [devtools] Log function return in javascript tracer. r=devtools-reviewers,nchevobbe
For now, we were only logging when we enter a function call, but not when we exit.

Differential Revision: https://phabricator.services.mozilla.com/D200173
2024-02-13 09:38:50 +00:00
Mark Banner 8e8cc1684d Bug 1879811 - Avoid re-enabling ESLint rules when they are already enabled by ESLint's recommended configuration, or mozilla-central's one. r=Gijs,webcompat-reviewers,extension-reviewers,devtools-reviewers,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D201361
2024-02-12 18:46:28 +00:00
dylan ab3210c5ce Bug 1870580 - added fileChannel observer to netmonitor to display file urls. r=devtools-reviewers,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D191317
2024-02-10 00:19:45 +00:00
Gregory Pappas c056a64e2e Bug 1873137 - Remove dom.animations-api.getAnimations.enabled pref r=webidl,emilio,firefox-animation-reviewers,devtools-reviewers,nchevobbe,boris
Differential Revision: https://phabricator.services.mozilla.com/D201162
2024-02-09 22:00:23 +00:00
Cristian Tuns 73e74628dc Backed out changeset ccc6ced28d4d (bug 1873137) for causing reftest failures in crashtests.list CLOSED TREE 2024-02-09 13:43:10 -05:00
Gregory Pappas 4a8b2cd0aa Bug 1873137 - Remove dom.animations-api.getAnimations.enabled pref r=webidl,emilio,firefox-animation-reviewers,devtools-reviewers,nchevobbe,boris
Differential Revision: https://phabricator.services.mozilla.com/D201162
2024-02-09 17:57:16 +00:00
Hubert Boma Manilla 7b87092ca3 Bug 1878644 - [devtools] Add feature pref for new codemirror implementation r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D200671
2024-02-09 10:16:02 +00:00
Nicolas Chevobbe 98fe2b2dd4 Bug 1879086 - [devtools] Fix browser_webconsole_custom_formatters_errors.js failure on beta. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D201114
2024-02-09 06:28:52 +00:00
Narcis Beleuzu 84b36fa4bc Backed out changeset 242972a790a3 (bug 1824726) for dt failure on browser_webconsole_message_categories.js . CLOSED TREE 2024-02-09 04:00:40 +02:00
Narcis Beleuzu c5b3a44ea3 Backed out changeset 749f10073ff4 (bug 1853899) for dt failure on browser_dbg-sourcemaps-bogus.js CLOSED TREE 2024-02-09 03:56:22 +02:00
Alexandre Poirot 25bbec4417 Bug 1853899 - [devtools] Introduce a new Menu Button dedicated to source maps. r=devtools-reviewers,nchevobbe
It allows
* toggling Source Map support entirely
* open the source map URL (when a bundle file is currently selected)
* open the mapped source (original or bundle)
* toggle the "open original source by default" setting
* show source map status (source map error, is it original or bundle file, is this a regular source?)

Differential Revision: https://phabricator.services.mozilla.com/D187577
2024-02-08 16:43:59 +00:00
Jules Simplicio fff4b05f22 Bug 1875396 - Avoid using `font-weight: 300` and `font-weight: lighter` r=kcochrane,desktop-theme-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,translations-reviewers,dao,mtigley,hjones,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D199953
2024-02-08 15:45:07 +00:00
Nicolas Chevobbe ce3defc7e2 Bug 1878605 - [devtools] Use CodeMirror 6 in Event Tooltip. r=devtools-reviewers,bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D200605
2024-02-08 14:39:42 +00:00
Nicolas Chevobbe 39fd633713 Bug 1877989 - [devtools] Add CodeMirror 6 in tree. r=devtools-reviewers,bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D200305
2024-02-08 14:39:41 +00:00
Alexandre Poirot e40b810077 Bug 1824726 - [devtools] Throttle all resources from the server side. r=devtools-reviewers,nchevobbe,perftest-reviewers,sparky
This helps accumulate RDP packets related to resources being available/updated/destroyed
and emit less and larger RDP packets instead or more and smaller.
This appears to reduce the overhead of DevTools transport and JSWindowActor layers.

The issue in browser_markup_events_toggle.js is interesting.
It highlights that a resource notified before a call to WatcherActor.watchResources,
may be emitted during the call to watchResources.
This makes ignoreExistingResources flag a bit brittle as that resource should be
considered as an existing/past one.
We should probably flush past resource and probably introduce a more explicit
way of handling "existing" resources on the server side.

The fix in document-events.js relates to failures in browser_net_offline_mode.js.
This test was passing thanks to late dom-complete event emitted on the previous WindowGlobal.
Surprisingly, when reloading the page in offline mode, the previous, already existing WindowGlobal
triggered the WebProgressListener and we were emitting dom-complete event.
Because of throttling, this resource is no longer transfered to the client as the related target
actor is already destroyed on reload.
But at the end, the issue was the missing dom-interactive and dom-complete events for the error page.

Regarding browser_net_ws-sse-persist-columns.js, it looks like this test was properly waiting
for the WebSocket table to update. We were really lucky it was working without frequent intermittent!

Similarly to the client side, DOCUMENT_EVENT's will-navigate is special
and has to be emitted synchronously in order to prevent clearing things out of order.
This is also true for NETWORK_EVENT_STACKTRACE which is expected to be received
*before* related NETWORK_EVENT. NETWORK_EVENT_STACKTRACE is fired from the content
process while NETWORK_EVENT is fired from the parent process.
For now, it is easier to synchronously emit those resources rather than trying
to do cross process coordination.
We may revisit this choice once we start doing throttling from the parent process
and may be once D143409 lands.

About browser_resources_clear_resources.js, it is surprising it wasn't already failing.

Differential Revision: https://phabricator.services.mozilla.com/D197772
2024-02-08 14:24:17 +00:00
Noemi Erli 12ded93c6e Backed out 2 changesets (bug 1870580, bug 1870582) for causing devtools failures
Backed out changeset 5608a954442b (bug 1870580)
Backed out changeset 687b59c68abe (bug 1870582)
2024-02-07 18:17:19 +02:00
dylan 2a7b560d98 Bug 1870580 - added fileChannel observer to netmonitor to display file urls. r=devtools-reviewers,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D191317
2024-02-07 15:15:37 +00:00
Julian Descottes 5a4cb38af6 Bug 1878651 - [devtools] Update localization note for inactive CSS tooltips r=devtools-reviewers,fluent-reviewers,nchevobbe,flod
Differential Revision: https://phabricator.services.mozilla.com/D200927
2024-02-07 13:43:36 +00:00
Mark Banner 3b17329c5f Bug 1878553 - Define *.config.(m)js files as node based for ESLint. r=mossop,devtools-reviewers,omc-reviewers,nchevobbe,aminomancer
Differential Revision: https://phabricator.services.mozilla.com/D200582
2024-02-07 08:55:29 +00:00
Cristian Tuns 77f2a39423 Backed out 11 changesets (bug 1878554, bug 1878553, bug 1878556) for causing node failures in aboutwelcome CLOSED TREE
Backed out changeset 425f70fa7e5a (bug 1878556)
Backed out changeset 2ab3a28f5c04 (bug 1878556)
Backed out changeset fb2e02682c8c (bug 1878556)
Backed out changeset 2fc5e630568e (bug 1878554)
Backed out changeset 78839d5841b4 (bug 1878554)
Backed out changeset e0ab31d2de1b (bug 1878554)
Backed out changeset 4eb59e4ebafa (bug 1878554)
Backed out changeset ab1e077d3f84 (bug 1878554)
Backed out changeset ef999f293e3e (bug 1878553)
Backed out changeset cf49920cb1ad (bug 1878553)
Backed out changeset 95f0fce63726 (bug 1878553)
2024-02-07 01:26:39 -05:00
Mark Banner 239ead3884 Bug 1878553 - Define *.config.(m)js files as node based for ESLint. r=mossop,devtools-reviewers,omc-reviewers,nchevobbe,aminomancer
Differential Revision: https://phabricator.services.mozilla.com/D200582
2024-02-06 22:32:51 +00:00
Nicolas Chevobbe 8970e59465 Bug 1878490 - [devtools] Expose devtools.inspector.rule-view.focusNextOnEnter in settings panel. r=devtools-reviewers,fluent-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D200611
2024-02-06 06:07:08 +00:00
Nicolas Chevobbe 1cbc69dbcf Bug 1877759 - [devtools] Control StyleSheetsManager MediaQueryList change events with an AbortController. r=devtools-reviewers,ochameau.
We set up a Map keyed by resourceId, whose value is an AbortController that
controls the MediaQueryList change event listeners that we set on a given stylesheet.

We also take care of aborting the existing abort controller before setting new
event listeners on a stylesheet, to avoid leaks.

Differential Revision: https://phabricator.services.mozilla.com/D200180
2024-02-06 06:02:32 +00:00
Tooru Fujisawa 719b4a8853 Bug 1878457 - Part 3: Remove JSM section from performance-new README. r=julienw,profiler-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D200560
2024-02-05 23:23:33 +00:00
Tooru Fujisawa 402e1f9063 Bug 1878457 - Part 2: ESMify consumers of performance-new modules. r=julienw,profiler-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D200559
2024-02-05 23:23:32 +00:00
Tooru Fujisawa ac9978df07 Bug 1878457 - Part 1: ESMify performance-new modules. r=julienw,profiler-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D200558
2024-02-05 23:23:32 +00:00
Tooru Fujisawa 603e42f5e4 Bug 1878512 - Part 3: Bump TypeScript version for performance-new to 5.3.3. r=julienw,profiler-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D200573
2024-02-05 23:23:32 +00:00
Tooru Fujisawa 924d06b9d6 Bug 1878512 - Part 2: Add explicit base type for template parameter. r=julienw,profiler-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D200572
2024-02-05 23:23:31 +00:00
Tooru Fujisawa f7894a7ac7 Bug 1878512 - Part 1: Make error handling explicit about the type. r=julienw,profiler-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D200571
2024-02-05 23:23:31 +00:00
Hubert Boma Manilla d2bf12b0de Bug 1878061 - [devtools] Remove parserWorker.hasSyntaxError r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D200358
2024-02-05 13:16:48 +00:00