Commit Graph

25814 Commits

Author SHA1 Message Date
Julian Descottes
51f558b426 Bug 1790368 - [devtools] Expose the nsIChannel in NetworkObserver's onNetworkEvent r=bomsy
We need to expose the nsIChannel in order to retrieve all the information needed by BiDi

Differential Revision: https://phabricator.services.mozilla.com/D164147
2022-12-16 10:53:49 +00:00
Stanca Serban
501e1a40b6 Backed out 4 changesets (bug 1790368) for causing mochitests failures in browser_networkobserver_invalid_constructor.js. CLOSED TREE
Backed out changeset b04c179c53fb (bug 1790368)
Backed out changeset a50e9467f30b (bug 1790368)
Backed out changeset 8b438fe8bd72 (bug 1790368)
Backed out changeset 6df64c2927f1 (bug 1790368)
2022-12-16 12:11:47 +02:00
Julian Descottes
b7413706f3 Bug 1790368 - [devtools] Expose the nsIChannel in NetworkObserver's onNetworkEvent r=bomsy
We need to expose the nsIChannel in order to retrieve all the information needed by BiDi

Differential Revision: https://phabricator.services.mozilla.com/D164147
2022-12-16 09:30:38 +00:00
Barret Rennie
4ca3688497 Bug 1783100 - Remove osfile.jsm usage from DevToolsUtils.js r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D163500
2022-12-15 19:46:29 +00:00
Paul Adenot
2fb0e34b5c Bug 1797284 - Teach about:logging to start the Firefox Profiler, with the appropriate profiler preset for a particular logging preset. r=julienw,mossop,flod
This has some provision to continue working if the tab is closed or reloaded,
but it's not fool proof. Eventually we might want to move this to a service, but
it's already very useful as it is.

Differential Revision: https://phabricator.services.mozilla.com/D160213
2022-12-15 14:11:05 +00:00
Emilio Cobos Álvarez
a14c746228 Bug 1805415 - Use activateItem() rather than click() to activate menuitems. r=Gijs,extension-reviewers,pip-reviewers,search-reviewers
Bug 1805414 will move menu event handling to the DOM.

With that change the current synthetic click behavior of XUL menuitems
breaks. On current central, we rely on nsMenuFrame::HandleEvent not
getting called at all for synthetic clicks, and instead we just fire a
command event synchronously here:

  https://searchfox.org/mozilla-central/rev/a0d4f8f112c5c792ae272bf6ce50763ddd23ffa2/dom/xul/nsXULElement.cpp#1071

After my patch the command event is fired properly (potentially
asynchronously too) by the regular menu activation machinery, which is
preferable.

 * They fire a command event synchronously (even though on some
   platforms like macOS activating a context menu item is async).

 * They use a totally different codepath from what a user does.

 * They don't deal with native menus, etc.

We have a proper API for this (activateItem) which takes a much more
closer codepath to what users do, requires that the menu is shown, etc.
Use that API instead for testing.

As a benefit, tests now do not need to close the context menu manually
when clicking on a menu item (because we trigger the same code path as
users clicking the menu).

Differential Revision: https://phabricator.services.mozilla.com/D164567
2022-12-15 03:11:55 +00:00
Iulian Moraru
b94311c726 Backed out changeset af7353099e41 (bug 1783100) for causing dt failures on browser_dbg-features-source-text-content.js. CLOSED TREE 2022-12-15 06:14:25 +02:00
Barret Rennie
1d4cd81569 Bug 1783100 - Remove osfile.jsm usage from DevToolsUtils.js r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D163500
2022-12-15 02:35:36 +00:00
Cristian Tuns
b638ccfac9 Backed out 2 changesets (bug 1805415) for causing dt failures on browser_net_telemetry_throttle_changed.js CLOSED TREE
Backed out changeset 5056d7df9f1e (bug 1805415)
Backed out changeset e13513500184 (bug 1805415)
2022-12-14 08:52:21 -05:00
Sebastian Zartner
56c0b6b468 Bug 1764439 - Handled errors in custom formatters. r=nchevobbe
Errors in custom formatters are now logged to the web console to notify users so they can correct the errors.

Differential Revision: https://phabricator.services.mozilla.com/D162084
2022-12-14 10:33:28 +00:00
Emilio Cobos Álvarez
be1f057109 Bug 1805415 - Use activateItem() rather than click() to activate menuitems. r=Gijs,extension-reviewers,pip-reviewers,search-reviewers
Bug 1805414 will move menu event handling to the DOM.

With that change the current synthetic click behavior of XUL menuitems
breaks. On current central, we rely on nsMenuFrame::HandleEvent not
getting called at all for synthetic clicks, and instead we just fire a
command event synchronously here:

  https://searchfox.org/mozilla-central/rev/a0d4f8f112c5c792ae272bf6ce50763ddd23ffa2/dom/xul/nsXULElement.cpp#1071

After my patch the command event is fired properly (potentially
asynchronously too) by the regular menu activation machinery, which is
preferable.

 * They fire a command event synchronously (even though on some
   platforms like macOS activating a context menu item is async).

 * They use a totally different codepath from what a user does.

 * They don't deal with native menus, etc.

We have a proper API for this (activateItem) which takes a much more
closer codepath to what users do, requires that the menu is shown, etc.
Use that API instead for testing.

As a benefit, tests now do not need to close the context menu manually
when clicking on a menu item (because we trigger the same code path as
users clicking the menu).

Differential Revision: https://phabricator.services.mozilla.com/D164567
2022-12-14 10:25:17 +00:00
Nicolas Chevobbe
77c721a468 Bug 1803646 - [devtools] Pass storage-expires-session localized value to getStoreObjects. r=jdescottes,fluent-reviewers,flod.
We need the string in devtools/shared `naturalOrder`, but we can't directly retrieve
it from the fluent file as it lives on the client (and won't be available in the
server on Android).
As the client and server might have different locales, we can't move the string
to devtools/shared.
Since the function is used from the server to make sure the data is displayed
properly on the UI, we pass the localized string to `getStoreObjects` so it's
then available to `naturalOrder`.
Tests are updated to match the new signature.

Differential Revision: https://phabricator.services.mozilla.com/D164354
2022-12-14 09:50:15 +00:00
Tom Schuster
8ea328ae5c Bug 1804038 - CSP: Report a source sample to the console even without the report-sample keyword. r=freddyb
Differential Revision: https://phabricator.services.mozilla.com/D163817
2022-12-14 09:05:17 +00:00
Masayuki Nakano
7ac1460c9f Bug 1784847 - Disable the breakpoint tests of composition events until bug 1466596 or bug 1690827 is fixed r=bomsy
I think that fixing the crash bug requires a big design change to manage
delayed composition commit requests from a remote process and I don't have
much time to work on it but the intermittent failure frequency has spiked up.
Therefore, we need temporarily to comment out the block for now.

Differential Revision: https://phabricator.services.mozilla.com/D164532
2022-12-14 04:47:48 +00:00
Hubert Boma Manilla
ec475d5196 Bug 1769787 - [devtools] Make (target based) Source tree open tabs per url r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D150628
2022-12-13 23:11:20 +00:00
Hubert Boma Manilla
720cf1ca78 Bug 1769787 - [devtools] Make source id's no longer target specific r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D147265
2022-12-13 23:11:20 +00:00
Tooru Fujisawa
418f9387ad Bug 1797736 - Part 3: Add testcase for eager evaluation with InitAliasedLexical with hops == 0. r=nchevobbe
Depends on D161018

Differential Revision: https://phabricator.services.mozilla.com/D161019
2022-12-13 09:41:47 +00:00
Nicolas Chevobbe
61e4227eed Bug 1804232 - [devtools] Add test for network request HTML preview in webconsole. r=bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D164104
2022-12-13 07:32:50 +00:00
Nicolas Chevobbe
684503e92e Bug 1804888 - [devtools] Update webidl-deprecated-list.js. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D164343
2022-12-13 07:14:15 +00:00
Nicolas Chevobbe
e0cf3e7e85 Bug 1800832 - [devtools] Explicitly allow data urls in cleanupStyle. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D162990
2022-12-13 06:29:50 +00:00
Chris Peterson
ef0d94bcbc Bug 1804375 - Re-enable clang -Wnull-dereference warnings in gtest. r=firefox-build-system-reviewers,glandium
Bug 1324242 disabled clang's -Wnull-dereference warnings in gtest code, but this warning can be re-enabled because the current version of gtest doesn't trigger these warnings.

Differential Revision: https://phabricator.services.mozilla.com/D164027
2022-12-13 03:57:35 +00:00
Sandor Molnar
18b90e2c5a Backed out 9 changesets (bug 1796585, bug 1796152, bug 1797284, bug 1796554, bug 1800076, bug 1802349, bug 1797497) for causing mochitest failures in xpcom/base/nsTraceRefcnt.cpp. CLOSED TREE
Backed out changeset 6002e93434a2 (bug 1802349)
Backed out changeset 000cd664c157 (bug 1800076)
Backed out changeset e3534e639e2c (bug 1796554)
Backed out changeset 1d22428d764c (bug 1797497)
Backed out changeset b0dbe35d48be (bug 1797284)
Backed out changeset b415d4b85ab6 (bug 1796585)
Backed out changeset dc1c2ffbc38e (bug 1796554)
Backed out changeset c44bae1f03f5 (bug 1796152)
Backed out changeset 3eab5e71b1c7 (bug 1796152)
2022-12-13 01:52:06 +02:00
Emily McDonough
81ae4edc3d Bug 1787947 - pref on CSS named pages in Nightly r=dholbert
Also standardize having named pages enabled for css-page WPT

Differential Revision: https://phabricator.services.mozilla.com/D163638
2022-12-12 21:11:36 +00:00
Daniel Holbert
5c26733cab Bug 1804980: Remove the about:config pref for subgrid, layout.css.grid-template-subgrid-value.enabled, since it's been default-enabled for years. r=TYLin,tlouw
Differential Revision: https://phabricator.services.mozilla.com/D164389
2022-12-12 20:54:40 +00:00
Paul Adenot
3a9160e97d Bug 1797284 - Teach about:logging to start the Firefox Profiler, with the appropriate profiler preset for a particular logging preset. r=julienw,mossop,flod
This has some provision to continue working if the tab is closed or reloaded,
but it's not fool proof. Eventually we might want to move this to a service, but
it's already very useful as it is.

Differential Revision: https://phabricator.services.mozilla.com/D160213
2022-12-12 17:32:13 +00:00
Cosmin Sabou
88a6695b18 Backed out changeset 7cacd26eab2e (bug 1525624) for devtools failures on browser_webconsole_navigate_to_parse_error.js. CLOSED TREE 2022-12-12 22:52:59 +02:00
Tom Schuster
136fe541b3 Bug 1525624 - Group CSP warning messages in the console. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D163828
2022-12-12 16:01:06 +00:00
Alexandre Poirot
e6022f56a1 Bug 1801695 - [devtools] Rename SourceMapService to SourceMapLoader. r=bomsy
Also rename a few symbols to better identify SourceMapURLService.

Differential Revision: https://phabricator.services.mozilla.com/D162969
2022-12-12 13:15:53 +00:00
Alexandre Poirot
afbbe6b04b Bug 1801695 - [devtools] Remove Proxy on top of SourceMapLoader. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D162968
2022-12-12 13:15:52 +00:00
Alexandre Poirot
8fdcc84648 Bug 1801695 - [devtools] Remove applySourceMap proxy in favor of an event. r=bomsy
This will help get rid of the proxy entirely.

Differential Revision: https://phabricator.services.mozilla.com/D162967
2022-12-12 13:15:52 +00:00
Alexandre Poirot
5686dffbd0 Bug 1801695 - [devtools] Use regular devtools loader to load SourceMap modules. r=bomsy
Now that source-map-loader uses ChromeLoader, it doesn't need to be loaded
via the Browser Loader. It was mostly used to be able to access window.Worker symbol.

It was also exposing `fetch` global symbol. DevTools Loader wasn't exposing it.
I fixed that as this symbol is available in JSM/ESM.

Differential Revision: https://phabricator.services.mozilla.com/D162966
2022-12-12 13:15:52 +00:00
Alexandre Poirot
33808f7737 Bug 1801695 - [devtools] Store worker URL in their index.js module instead of callsite. r=bomsy
This simplify the frontend code/callsites by not having to know where the worker file is.

Differential Revision: https://phabricator.services.mozilla.com/D162965
2022-12-12 13:15:51 +00:00
Alexandre Poirot
4d279c19da Bug 1801695 - [devtools] Use ChromeWorker for devtools frontend workers. r=bomsy
This allows using a regular worker and no longer have to be related to any particular document.

Differential Revision: https://phabricator.services.mozilla.com/D162964
2022-12-12 13:15:51 +00:00
Hubert Boma Manilla
d6b5e71e2a Bug 1777800 - [devtools] Update the curl escape string for windows to no longer try to handle powershell r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D157712
2022-12-12 11:20:18 +00:00
Gijs Kruitbosch
bd7719e854 Bug 1803391 - update comments / text references to session store modules as 'jsm's, r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D164127
2022-12-12 10:08:03 +00:00
Nicolas Chevobbe
945a7bc8a7 Bug 1804384 - [devtools] Fix indent of messages in warning group. r=bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D164044
2022-12-09 07:08:47 +00:00
Nicolas Chevobbe
7e9ac8be05 Bug 1804680 - [devtools] Update compatibility data. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D164228
2022-12-08 21:04:59 +00:00
Nicolas Chevobbe
60a24410b8 Bug 1803360 - [devtools] Put pretty-fast library in tree. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D163560
2022-12-08 15:54:07 +00:00
Nicolas Chevobbe
335e435c11 Bug 1803508 - [devtools] Fix console stubs generation. r=jdescottes
All calls to `writeStubsToFile` were updated, but not the function signature itself,
which we do in this patch.
We also take this as an opportunity to fix the require calls in the stub file template.

Differential Revision: https://phabricator.services.mozilla.com/D163489
2022-12-08 14:54:02 +00:00
Paul Adenot
0a5a3ee289 Bug 1804687 - Allow https://example.com as a Firefox Profiler base_url. r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D164231
2022-12-08 14:52:43 +00:00
Jonathan Kew
fd19c53b62 Bug 1804492 - Remove 'font-palette' from the 'font' shorthand. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D164128
2022-12-08 10:16:34 +00:00
Cosmin Sabou
09c229f0eb Backed out changeset b276c24696ee (bug 1787947) for causing crashes @nsCSSFrameConstructor. 2022-12-08 02:24:48 +02:00
Emily McDonough
d1c00468a9 Bug 1787947 - pref on CSS named pages in Nightly r=dholbert
Also standardize having named pages enabled for css-page WPT

Differential Revision: https://phabricator.services.mozilla.com/D163638
2022-12-07 23:20:35 +00:00
Sandor Molnar
13937f6a9c Backed out changeset 6fb5de003d4a (bug 1787947) for breaking test. CLOSED TREE 2022-12-07 23:59:19 +02:00
Emily McDonough
ed70ca3f50 Bug 1787947 - pref on CSS named pages in Nightly r=dholbert
Also standardize having named pages enabled for css-page WPT

Differential Revision: https://phabricator.services.mozilla.com/D163638
2022-12-07 21:14:52 +00:00
Zachary Svoboda
0686f3870b Bug 1255839 - Configure themed color for json viewer errors r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D159547
2022-12-07 07:04:55 +00:00
Nicolas Chevobbe
58bc8e2d99 Bug 1803538 - [devtools] Add scrollend in debugger event breakpoint panel. r=bomsy.
The event is only supported when `apz.scrollend-event.content.enabled` is set to
true, so we only show it in the debugger when it's supported.

A test is added to ensure the event breakpoint does work as expected.

Differential Revision: https://phabricator.services.mozilla.com/D163910
2022-12-07 06:38:40 +00:00
Noemi Erli
dde37674cb Backed out 9 changesets (bug 1796585, bug 1797497, bug 1800076, bug 1796152, bug 1802349, bug 1797284, bug 1796554) for causing failures in browser_about_logging.js
Backed out changeset 5d578b36aea0 (bug 1802349)
Backed out changeset 749d5f1e7ccd (bug 1800076)
Backed out changeset 5963545fcfaf (bug 1796554)
Backed out changeset 1cc2eaf20d0b (bug 1797497)
Backed out changeset a308c6642faa (bug 1797284)
Backed out changeset 09d8640c34d7 (bug 1796585)
Backed out changeset e73defde7d21 (bug 1796554)
Backed out changeset 02da7a0c249c (bug 1796152)
Backed out changeset 83efe75fbac8 (bug 1796152)
2022-12-06 22:28:08 +02:00
Paul Adenot
83ae1bdd46 Bug 1797284 - Teach about:logging to start the Firefox Profiler, with the appropriate profiler preset for a particular logging preset. r=julienw,mossop,flod
This has some provision to continue working if the tab is closed or reloaded,
but it's not fool proof. Eventually we might want to move this to a service, but
it's already very useful as it is.

Differential Revision: https://phabricator.services.mozilla.com/D160213
2022-12-06 15:46:41 +00:00
Sandor Molnar
2b35e5d5d2 Backed out 9 changesets (bug 1802349, bug 1796585, bug 1796152, bug 1797284, bug 1800076, bug 1796554, bug 1797497) for causing bc failures in browser_about_logging CLOSED TREE
Backed out changeset 606868b3d7b0 (bug 1802349)
Backed out changeset 34978ba15643 (bug 1800076)
Backed out changeset aa2e24236a3c (bug 1796554)
Backed out changeset 07135b50717d (bug 1797497)
Backed out changeset 120ebd2d7def (bug 1797284)
Backed out changeset 97fc02919d57 (bug 1796585)
Backed out changeset 1e3b50d9b36c (bug 1796554)
Backed out changeset 206df9b05088 (bug 1796152)
Backed out changeset 5ffdf16c555d (bug 1796152)
2022-12-02 21:35:51 +02:00