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

25630 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez 4e978b56b5 Bug 1689816 - Implement <tabpanels> and <deck> without XUL layout. r=Gijs,Jamie,morgan,preferences-reviewers,mconley,TYLin
Gijs for front-end bits, layout for the new CSS properties and the
removal of nsDeckFrame / nsStackLayout, Jamie and Morgan for the a11y
changes.

As discussed in the bug, the main tricky part here is handling a11y
correctly. For <deck>, that's trivial (just use `visibility: hidden` to
hide the panels visually, while removing the unselected panels from the
a11y tree).

For <tabpanels> however we need to do something special. We do want to
hide stuff visually, but we want to preserve the contents in the a11y
tree.

For that, the easiest fix is introducing a new privileged CSS property
(-moz-subtree-hidden-only-visually), which takes care of not painting
the frame, but marks stuff offscreen in the accessibility tree. This is
not intended to be a property used widely.

Other than that, the changes are relatively straight-forward, though
some of the accessible/mac changes I could get a sanity-check on.

Differential Revision: https://phabricator.services.mozilla.com/D157875
2022-09-27 04:18:16 +00:00
Marian-Vasile Laza f54a464c90 Backed out changeset 2f74f8f2ed19 (bug 1689816) for causing reftest failures on skip-ink-multiline-position.html. 2022-09-26 23:24:03 +03:00
Emilio Cobos Álvarez f875681246 Bug 1689816 - Implement <tabpanels> and <deck> without XUL layout. r=Gijs,Jamie,morgan,preferences-reviewers,mconley,TYLin
Gijs for front-end bits, layout for the new CSS properties and the
removal of nsDeckFrame / nsStackLayout, Jamie and Morgan for the a11y
changes.

As discussed in the bug, the main tricky part here is handling a11y
correctly. For <deck>, that's trivial (just use `visibility: hidden` to
hide the panels visually, while removing the unselected panels from the
a11y tree).

For <tabpanels> however we need to do something special. We do want to
hide stuff visually, but we want to preserve the contents in the a11y
tree.

For that, the easiest fix is introducing a new privileged CSS property
(-moz-subtree-hidden-only-visually), which takes care of not painting
the frame, but marks stuff offscreen in the accessibility tree. This is
not intended to be a property used widely.

Other than that, the changes are relatively straight-forward, though
some of the accessible/mac changes I could get a sanity-check on.

Differential Revision: https://phabricator.services.mozilla.com/D157875
2022-09-26 17:40:30 +00:00
Alexandre Poirot 6c02e8d34c Bug 1786467 - [devtools] Sort debugger SourceTree in a meaningful way. r=bomsy
The main thread is always displayed first,
then we display all content process targets (sorted by PID number),
and we end up with worker targets (sorted alphabetically).

This should follow the same order as the js context selector.

Differential Revision: https://phabricator.services.mozilla.com/D155336
2022-09-26 16:42:30 +00:00
Alexandre Poirot daf85f8e0d Bug 1791969 - [devtools] Import all JSM in DevTools via ChromeUtils.import. r=jdescottes
Convert all imports but the one related to SessionDataHelper
as that's an hybrid module which is loaded as a JSM from the main thread,
but loaded as a common js module from the worker thread.

We will be able to drop this once we can migrate this JSM to ESM
once we support loading ESM from the worker thread.

Differential Revision: https://phabricator.services.mozilla.com/D158007
2022-09-26 13:01:33 +00:00
Alexandre Poirot 380a5b74ad Bug 1791969 - [devtools] Import all JSMs in DevTools with absolute URIs. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D158006
2022-09-26 13:01:33 +00:00
Alexandre Poirot 6781eae59e Bug 1791832 - [devtools] Convert devtools/startup JSM to ES Modules. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D157911
2022-09-26 10:48:05 +00:00
Alexandre Poirot 8020b268c4 Bug 1791828 - [devtools] Remove devtools lazyImporter in favor of ChromeUtils.defineModuleGetter. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D157910
2022-09-26 10:48:04 +00:00
Alexandre Poirot f2bc8a3148 Bug 1276347 - [devtools] Remove "reportError" from devtools module globals. r=jdescottes
This might have only be useful from the source actor.
In workers, you don't have access to Cu, so nor have access to Cu.reportError.
Otherwise from the main thread, you can safely use Cu.reportError.

In couple of places I'm removing the usage of reportError.
Hopefully throwing an exception is enough to get the error displayed!

Differential Revision: https://phabricator.services.mozilla.com/D157909
2022-09-26 10:48:04 +00:00
Ted Campbell 7a57865285 Bug 1790912 - Migrate js/ductwork/debugger to devtools/platform. r=ochameau
This gecko integration code is better managed with the other devtools platform
hook code. To simplify resolving the JSM and avoiding issues around restricted
use of eval in chrome, I also reset the DIST_SUBDIR config and run the xpcshell
tests without a firefox-appdir. The test works on Android these days, so
re-enable it on that platform.

Differential Revision: https://phabricator.services.mozilla.com/D157522
2022-09-25 09:03:34 +00:00
Ted Campbell 69dfb519c2 Bug 1790912 - Use globalThis instead of this with jsdebugger.jsm. r=jandem,ochameau
Use 'globalThis' instead of 'this' when trying to attach a debugger to the
current global to avoid subtle footguns with the varied definitions of 'this'.
The debugger interface needs a true GlobalObject so this is much clearer. In
particular, this is a problem in test_nativewrappers.js when the test runs in
strict mode since the 'this' in the test function is no long implicitly the
global.

Differential Revision: https://phabricator.services.mozilla.com/D157544
2022-09-25 09:03:33 +00:00
Alexandre Poirot 5bae281ff6 Bug 1791055 - [devtools] Migrate to CommandsFactory to instantiate all descriptors. r=jdescottes,perftest-reviewers,AlexandruIonescu
This help factorise all code trying to instantiate a server and a client everywhere.
This will also help migrate from descriptor to commands in Toolbox constructor.

A good way to track all leftover manual instantiation of descriptors is to look for mainRoot.get*.
There should only be tests now, and descriptor-from-url, which I would to convert once
we migrate toolbox constructor from descriptor to commands.

Differential Revision: https://phabricator.services.mozilla.com/D157737
2022-09-24 07:14:58 +00:00
Emilio Cobos Álvarez cb0b3ab372 Bug 1791972 - Simplify dialog stack and rdm styles. r=Gijs,devtools-reviewers,jdescottes
.browserContainer is relatively positioned, so we can position the
tab-modal dialogs absolutely inside it instead of making them part of
the browser stack.

While at it, make the rdm toolbar part of the regular browserContainer,
just like the regular devtools toolbox is. That way there's no need to
do ResizeObserver shenanigans to be able to let it grow. Keep it also
absolutely positioned tho, because we need to overlay the whole
container when the device modal is opened. That's somewhat gross.

This should in general be simpler to understand than the current set-up,
and more performant to since it avoids the dialog stack from forming
part of the browser element's flow.

Differential Revision: https://phabricator.services.mozilla.com/D157912
2022-09-23 22:23:37 +00:00
Jan Odvarko 455a50c929 Bug 1761367 - Firefox DevTools User Docs mention removed Web Developer submenu r=jdescottes,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D157789
2022-09-23 12:06:14 +00:00
nchevobbe 4b82f36d86 Bug 1791405 - [devtools] Block key events in source editor for u0000 keys. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D157738
2022-09-23 01:30:36 +00:00
Paul Adenot 271ca51499 Bug 1791870 - Add BackgroundThreadPool to the media preset. r=julienw DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D157861
2022-09-22 17:41:02 +00:00
Julian Descottes ee708d7ab9 Bug 1791640 - [devtools] Do not use custom zoom keys when the toolbox is hosted in a tab r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D157830
2022-09-21 17:49:38 +00:00
Jan Odvarko 6dca238bf4 Bug 1789150 - Keyboard shortcuts missing most of shortcuts for Style Editor r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D157709
2022-09-20 13:35:24 +00:00
Alexandre Poirot 8010ef0166 Bug 1789980 - [devtools] Stop exposing `indexedDB` to all DevTools modules. r=jdescottes
This symbol is specific to documents and isn't available in JSM/ESM.
So it will be best to keep it manually crafter from the modules.
It appears that only async-storage depends on the overloaded indexedDB
object created by devtools/shared/indexed-db.

Differential Revision: https://phabricator.services.mozilla.com/D157424
2022-09-20 12:52:27 +00:00
Alexandre Poirot 8c0ef6b298 Bug 1789980 - [devtools] Migrate all callsites using require("chrome") to use Components.* global symbols. r=jdescottes,perftest-reviewers,AlexandruIonescu
This will help transition to ES Modules as we won't be able to expose a magic "chrome" ESM.
Also, most of these symbols are exposed as global already.
All but:
* `components` which is `Components`,
* `CC` which is `Components.Constructor`,
* `Cm` which is `Components.manager`.

$ sed -ie "/require(.chrome.)/d" $(git grep -l 'require("chrome")' devtools/)
+ manual edits for all three exceptions

Differential Revision: https://phabricator.services.mozilla.com/D156936
2022-09-20 12:52:27 +00:00
Alexandre Poirot c7d60e285f Bug 1789980 - [devtools] Stop exposing require("chrome"), instead expose Components.* as globals. r=jdescottes
This will actually make commonjs module behave like JSM/ESM.
Where you have access to Components, Cc, Ci, Cu and Cr as globals.

This patch is based on the usage of Sandbox's wantComponents,
which will expose all these globals for us.
Then, I'm handling the special cases of Services and ChromeWorker,
which have nothing to do with Components.* APIs.

Differential Revision: https://phabricator.services.mozilla.com/D156935
2022-09-20 12:52:26 +00:00
Alexandre Poirot 3ce07c3d24 Bug 1789980 - [devtools] Import "wantGlobalProperties" symbols from the module Sandbox. r=jdescottes
That, instead of involving the "debuggerSandbox", which is only meant
for exposing the "Debugger" symbol.

Differential Revision: https://phabricator.services.mozilla.com/D156934
2022-09-20 12:52:26 +00:00
Jan Odvarko 8d87ce546f Bug 1790578 - Fix links pointing to examples repos r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D157704
2022-09-20 08:33:11 +00:00
Dana Keeler bdb75eecd3 Bug 1790451 - remove now-unnecessary QueryInterface(Ci.nsITransportSecurityInfo) calls r=jschanck,webdriver-reviewers,necko-reviewers,application-update-reviewers,nalexander,valentin
Differential Revision: https://phabricator.services.mozilla.com/D157166
2022-09-20 03:58:50 +00:00
Nicolas Chevobbe d125d4d87d Bug 1790595 - [devtools] Fix performance regression in _getMediaRules. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D157206
2022-09-19 11:51:59 +00:00
Marian-Vasile Laza 853e5e4873 Backed out changeset c2224b54c672 (bug 1790595) for causing mochitest failures on test_styles-applied.html. CLOSED TREE 2022-09-19 11:37:39 +03:00
Nicolas Chevobbe 672cdef00f Bug 1790595 - [devtools] Fix performance regression in _getMediaRules. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D157206
2022-09-19 07:51:21 +00:00
Joel Maher f668f1c655 Bug 1790868 - clean up 32 bit annotations for tests that don't run on 32 bit, and general cleanup. r=aryx
Differential Revision: https://phabricator.services.mozilla.com/D157352
2022-09-16 12:40:13 +00:00
criss 49eaaa607e Backed out 2 changesets (bug 1667090, bug 1788605) for causing Xpcshell failures on test_css-properties-db.js. CLOSED TREE
Backed out changeset cee98ae67ea4 (bug 1788605)
Backed out changeset 404e0b4bcd0f (bug 1667090)
2022-09-15 12:13:28 +03:00
Frederic Wang fe1762c548 Bug 1667090 - Implement CSS font-size: math and math-depth properties. r=emilio
The font-size math keyword is implemented. It behaves as a font-size: 1em
with the extra fixup due to math-level change (and other legacy MathML
attributes). After that change, the CSS for math-level / font-size: math
is behaving as per the specification, so the math-depth is turned in
nightly.

The adjusting function for font-size: math is modified so that it's
executed only if both font-size: math (otherwise the spec says no scale
should apply) and math-depth (otherwise the scale is 1 and function exists
early anyway) are set on the element. Also checking if the current node
has a scriptsizemultiplier rule applied to use MathML3's scaling is
incorrect. Instead this is changed to check if a non-default
scriptsizemultiplier is set.

Differential Revision: https://phabricator.services.mozilla.com/D91744
2022-09-15 08:14:49 +00:00
Alexandre Poirot 7e5e4979c4 Bug 1780912 - [devtools] Make the local web extension toolbox be always on top. r=nchevobbe,eemeli
This allows to keep the DevTools visible while interacting with the Firefox
window where the extension is running.

This behavior is enabled by default, but can be disable on-demand via a button
in the top toolbar.
Note that it requires to close and reopen the window/toolbox as platform APIs
disallow changing this behavior "live" on a given window.

Differential Revision: https://phabricator.services.mozilla.com/D155843
2022-09-15 07:31:31 +00:00
Alexandre Poirot c44d50f08a Bug 1780912 - [devtools] Open toolboxes for local WebExtension in dedicated window. r=jdescottes
This should hopefully help debug addons displaying panels/popups.

Differential Revision: https://phabricator.services.mozilla.com/D155393
2022-09-15 07:31:31 +00:00
Julian Descottes d97d7ca5d8 Bug 1790889 - Use width and height properties for splitters in the Storage Inspector and StyleEditor r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D157375
2022-09-15 07:26:22 +00:00
Julian Descottes 272b4e18e5 Bug 1790898 - [devtools] Remove gap in the storage editor navigation sidebar r=nchevobbe
This was added in the original landing of the TreeWidget.
Nowadays this is only used by the storage inspector and I haven't seen any bad side effect.

Differential Revision: https://phabricator.services.mozilla.com/D157368
2022-09-15 05:33:13 +00:00
Ryan VanderMeulen 083930f0c5 Bug 1790929 - Update protobuf to version 21.6. r=markh
Differential Revision: https://phabricator.services.mozilla.com/D157391
2022-09-15 01:33:24 +00:00
Julian Descottes 87ef6aa2ff Bug 1790753 - [devtools] Track all devtools sockets in DevToolsSocketStatus r=ochameau,Gijs
The DevToolsSocketStatus could be misleading for any usage other than the current one from browser.js since it misses browser toolbox sockets

This patch allows the singleton to track all sockets but changes the API to allow consumers to exclude browser toolbox sockets.

Differential Revision: https://phabricator.services.mozilla.com/D157300
2022-09-14 19:11:22 +00:00
Julian Descottes 94456f0f52 Bug 1790821 - [devtools] Fix resizing side-docked toolbox using the splitter r=ochameau,emilio
Adding a test explicitly resizing the toolbox by manipulating the splitter in both horizontal and vertical configurations

Differential Revision: https://phabricator.services.mozilla.com/D157339
2022-09-14 19:04:57 +00:00
Marian-Vasile Laza e8b90ffd2f Backed out changeset a50d707b3bbc (bug 1769534) for causing debugger frame failures. CLOSED TREE 2022-09-14 17:05:11 +03:00
Pierre de La Morinerie 5211456a86 Bug 1769534 - preserve NBSP when copying HTML content. r=hsivonen
To workaround the historical lack of 'white-space: pre', when an user
wants to compose HTML text with several consecutive spaces, WYSIWYG
HTML editors insert an alternating pattern of SPACE and NBSP to avoid
spaces being collapsed.

This is why browsers, when copying HTML content, usually strip all NBSP
from the copied text.

This commit changes the copying behavior, to strip only NBSP that were
potentially generated by an editor (and preserve the others).

The heuristic used is "An NBSP adjacent to a regular space doesn't make
sense, and can be replaced by a regular space". This detects the
alternating pattern of SPACE/NBSP, but also a space followed by a long
sequence of NBSP (because a line break would occur anyway in that case).

NB: included is a change that makes devtools use regular spaces
(rather than NBSPs) to indent stacktrace frames. This prevent NBSPs from
appearing in the clipboard when copying a stacktrace.

Attribution: the actual nsPlainTextSerializer changes were written by
Rachel Martin <rachel@betterbird.eu>, as a part of Betterbird.

Differential Revision: https://phabricator.services.mozilla.com/D149644
2022-09-14 13:13:51 +00:00
Evgenii Simakin a530884ea9 Bug 1595119 - Fix wrong slicing of displayed WebSocket messages in devtools when 'Keep all future messages' is enabled r=Honza
In addition to that, this will fix minor styles issues with 'truncated messages' box.

Differential Revision: https://phabricator.services.mozilla.com/D155763
2022-09-14 08:40:48 +00:00
Alexandre Poirot 768d312e90 Bug 1790013 - [devtools] Fix browser_net_har_copy_all_as_har.js intermitent. r=bomsy
When reloading twice, we weren't waiting for the two reload requests.

Differential Revision: https://phabricator.services.mozilla.com/D157093
2022-09-14 08:37:06 +00:00
Henrik Skupin 0a815d2001 Bug 1790559 - [devtools] Update MDN compat data (2022 September 13th week) r=devtools-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D157191
2022-09-13 11:59:38 +00:00
Emilio Cobos Álvarez f2c192212d Bug 1790299 - Make XUL splitter use height property rather than attribute. r=jdescottes,tnikkel
Existing splitter and DevTools tests keep passing with this.

Differential Revision: https://phabricator.services.mozilla.com/D157062
2022-09-13 10:02:05 +00:00
Nicolas Chevobbe 5bfeb8f498 Bug 1788601 - [devtools] Fix ESLint consistent-return failures in devtools/client/framework. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D156159
2022-09-12 17:41:33 +00:00
Nicolas Chevobbe fa06502ad1 Bug 1788594 - [devtools] Fix ESLint consistent-return failures in devtools/client/debugger/. r=bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D156156
2022-09-12 17:41:33 +00:00
Mark Banner 186d63f202 Bug 1479515 - Add an ESLint rule to check for valid property accesses on Services. r=Gijs
This is manually run and requires a full build. MOZ_OBJDIR needs to be set to point to the object directory.

Differential Revision: https://phabricator.services.mozilla.com/D156426
2022-09-12 16:38:44 +00:00
Alexandre Poirot 58aaf052d7 Bug 1789256 - [devtools] Fix displaying sources when reloading a web extension. r=bomsy
I think we have a special edge case here, where we do have a navigation,
but no new top level target is notified.
In regular devtools/webpages, we should have a new top level target notified to the debugger.

Differential Revision: https://phabricator.services.mozilla.com/D156467
2022-09-12 11:44:46 +00:00
Hubert Boma Manilla dab890653a Bug 1789363 - [devtools] Support specifying the source actor to the load the source text r=ochameau
This patch enables specifying a source actor to load the source text content

Differential Revision: https://phabricator.services.mozilla.com/D154778
2022-09-12 10:32:03 +00:00
Nicolas Chevobbe 0f42f58871 Bug 1789973 - [devtools] Remove unused RemoteSettings script and update documentation. r=jdescottes.
Now that the script is run on automation, there's no need to have
a (different) version in tree.
The documentation is also updated to explain the current setup.

Differential Revision: https://phabricator.services.mozilla.com/D156930
2022-09-09 14:20:27 +00:00
Mariana Picolo 5e049236e4 Bug 1621919 - Update constant for format bytes. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D66917
2022-09-09 11:32:02 +00:00
Alexandre Poirot 3c1d82f3c1 Bug 1789595 - [devtools] Migrate require to new devtools/server's ESM to ChromeUtils.importESModule. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D156827
2022-09-09 10:13:15 +00:00
Alexandre Poirot 393e94ddf0 Bug 1789595 - [devtools] Convert devtools/server JSM to ES Modules. r=nchevobbe
This is the result of:
$ ./mach esmify devtools/server/

Differential Revision: https://phabricator.services.mozilla.com/D156826
2022-09-09 10:13:15 +00:00
Alexandre Poirot 573f380baf Bug 1789202 - [devtools] Expose ChromeUtils as a global to all DevTools modules. r=perftest-reviewers,nchevobbe,AlexandruIonescu
This will help transition to ES Modules as this symbol is exposed to them.

$ sed -ie "/require(.ChromeUtils.)/d" $(git grep -l 'require("ChromeUtils")' devtools/)
$ sed -ie "/loader.lazyRequireGetter(this, .ChromeUtils./d" $(git grep -l 'loader.lazyRequireGetter(this, "ChromeUtils"' devtools/)
+ the edition of builtin-modules.js + eslintrc.js + manual eslint fixes

Differential Revision: https://phabricator.services.mozilla.com/D156402
2022-09-09 07:22:51 +00:00
Alexandre Poirot 7f9229d43d Bug 1789201 - [devtools] Expose Services as a global to all DevTools modules. r=perftest-reviewers,nchevobbe,julienw,AlexandruIonescu
This will help transition to ES Modules as this symbol is exposed to them.

$ sed -ie "/require(.Services.)/d" $(git grep -l 'require("Services")' devtools/)
$ sed -ie "/loader.lazyRequireGetter(this, .Services./d" $(git grep -l 'loader.lazyRequireGetter(this, "Services"' devtools/)
+ the edition of builtin-modules.js + eslintrc.js
+ manual eslint fixes
+ removal of devtools-services in the debugger, except for jest tests

Differential Revision: https://phabricator.services.mozilla.com/D156401
2022-09-09 07:22:51 +00:00
justchen1369 4743055749 Bug 1789765 - Fix broken links to 'Fluent for Firefox Developers' page. r=firefox-source-docs-reviewers,marco DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D156761
2022-09-08 19:03:25 +00:00
Hubert Boma Manilla 954bd93334 Bug 1780544 - Increase the storage size limit for the resent request r=jdescottes
This patch switches to using indexedDB to for more space.
Some cleanups.

Differential Revision: https://phabricator.services.mozilla.com/D155239
2022-09-08 10:51:43 +00:00
Emilio Cobos Álvarez a11c622dc7 Bug 1786147 - Remove layout.css.webkit-line-clamp.enabled, and add a new pref to apply line-clamp to all BFCs. r=dholbert
It's always true, so remove it.

Add another pref to allow -webkit-line-clamp to work on all blocks
rather than just legacy -webkit-boxes, which seems something we should
try to look into, eventually.

Depends on D155181

Differential Revision: https://phabricator.services.mozilla.com/D155182
2022-09-07 23:57:18 +00:00
Noemi Erli 539bbccc5d Backed out 2 changesets (bug 1780912) for causing failures in browser_aboutdebugging_addons_debug_console.js CLOSED TREE
Backed out changeset d2360a2a3d70 (bug 1780912)
Backed out changeset 21f1e9031be0 (bug 1780912)
2022-09-08 01:59:18 +03:00
Alexandre Poirot 80c9c861dd Bug 1780912 - [devtools] Make the local web extension toolbox be always on top. r=nchevobbe,eemeli
This allows to keep the DevTools visible while interacting with the Firefox
window where the extension is running.

This behavior is enabled by default, but can be disable on-demand via a button
in the top toolbar.
Note that it requires to close and reopen the window/toolbox as platform APIs
disallow changing this behavior "live" on a given window.

Differential Revision: https://phabricator.services.mozilla.com/D155843
2022-09-07 21:00:17 +00:00
Alexandre Poirot 8792e1fba5 Bug 1780912 - [devtools] Open toolboxes for local WebExtension in dedicated window. r=jdescottes
This should hopefully help debug addons displaying panels/popups.

Differential Revision: https://phabricator.services.mozilla.com/D155393
2022-09-07 21:00:17 +00:00
Julian Descottes 96bfe17dfd Bug 1778977 - [devtools] Rename stylesheet-enabled to stylesheet-toggle r=nchevobbe
Depends on D156082

Now that the toggle itself can be disabled, the classname felt too confusing

Differential Revision: https://phabricator.services.mozilla.com/D156656
2022-09-07 15:23:07 +00:00
Julian Descottes 283a19424b Bug 1778977 - [devtools] Disable the visibility toggle button on system stylesheets in Style Editor r=nchevobbe,fluent-reviewers,flod
Depends on D156655

system stylesheets cannot be disabled, apply a dedicated classname on the summary and disable the visibility toggle

Differential Revision: https://phabricator.services.mozilla.com/D156082
2022-09-07 15:23:06 +00:00
Julian Descottes cbd1e77ab4 Bug 1789580 - [devtools] StyleEditor should use a different icon when the stylesheet is disabled r=nchevobbe
Only modified the provided SVGs to have fill-context & fill-stroke for colors.

Differential Revision: https://phabricator.services.mozilla.com/D156655
2022-09-07 15:23:06 +00:00
Olli Pettay 93acdfad59 Bug 1777574, automate CC zone handling, r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D155084
2022-09-07 11:22:51 +00:00
lyavor c4dd970059 Bug 1709150 - Consider linter rule to make https the default for all kind of tests we add. r=Standard8,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D149394
2022-09-07 08:45:12 +00:00
Emilio Cobos Álvarez 8b0dab364d Bug 1789125 - Explicitly position statuspanel vertically. r=dao
Right now, the vertical position of the status panel is the "auto"
position, which ends up working out, but mostly by chance, and relies on
behavior that's different from the standard flexbox, see bug 1789165.

Instead of using `position: fixed` and relying on not having any
sidebars or other content to the inline-end (otherwise the [mirror] rule
would be incorrect), explicitly position it against the
.browserContainer.

Differential Revision: https://phabricator.services.mozilla.com/D156384
2022-09-06 19:05:54 +00:00
Alexandre Poirot e26a356c6b Bug 1788032 - [devtools] Convert devtools/client JSM to ES Modules. r=bomsy
This is the result of:
$ ./mach esmify devtools/client/

Differential Revision: https://phabricator.services.mozilla.com/D156181
2022-09-06 18:37:10 +00:00
Alexandre Poirot 285338d43e Bug 1788032 - [devtools] Remove unused AbstractTreeItem.jsm. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D156180
2022-09-06 18:37:10 +00:00
Nicolas Chevobbe d94a74f52d Bug 1788030 - [devtools] Display nested media queries in media sidebar. r=jdescottes.
In StyleSheetsManager _getMediaRules, we were only looping
over document.cssRules, and as a result were missing potential
nested media queries.
For each rule, we now go other its potential cssRules, recursively,
to gather all media query rules.
Test cases are added for the client to make sure that those nested
rules do show up in the StyleEditor media queries sidebar.

Differential Revision: https://phabricator.services.mozilla.com/D156277
2022-09-06 08:06:45 +00:00
Rob Wu f88bf80d5b Bug 1789245 - [devtools] Mark openDevTools as nullable for installTemporaryAddon r=devtools-backward-compat-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D156458
2022-09-05 17:06:16 +00:00
Julian Descottes 79b87a7b80 Bug 1789052 - [devtools] Fix storage inspector sorting logic r=nchevobbe
Two issues fixed:
- when sorting on one column, other column content should be re-arranged
- natural order sort was not symmetrical for dates and led to inconsistent sorting

Differential Revision: https://phabricator.services.mozilla.com/D156420
2022-09-05 13:00:15 +00:00
Sylvestre Ledru a37ab669ff Bug 1530945 - doc: remove an old and unused doc r=Honza DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D156431
2022-09-05 12:50:13 +00:00
Alexandre Poirot 15211b3be5 Bug 1783821 - [devtools] Manual rewrites r=bomsy
In md files and code comments and mostly from common js files.

I'm moving away from require to load sys.mjs files so that we are closer
to what we do in mozilla-central.

Differential Revision: https://phabricator.services.mozilla.com/D154073
2022-09-05 12:29:57 +00:00
Alexandre Poirot 10e8296ed1 Bug 1783821 - [devtools] Load Launcher.sys.mjs via ChromeUtils.importESModule. r=perftest-reviewers,bomsy,arai,sparky
This is the result of:
$ ./mach esmify --imports . --prefix=devtools/client/framework/browser-toolbox

Differential Revision: https://phabricator.services.mozilla.com/D154072
2022-09-05 12:29:57 +00:00
Alexandre Poirot 5a25092464 Bug 1783821 - [devtools] Convert Launcher JSM to an ES Module. r=bomsy
This is the result of:
$ ./mach esmify devtools/client/framework/browser-toolbox/Launcher.jsm

Differential Revision: https://phabricator.services.mozilla.com/D154071
2022-09-05 12:29:56 +00:00
Henrik Skupin b87f7d7ff8 Bug 1788168 - [devtools] Remove Firefox 104 backward compat fallback code. r=jdescottes,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D156329
2022-09-05 11:37:48 +00:00
Hubert Boma Manilla 3f9dcc016d Bug 1777716 - [devtools] Add back the 'Resend' context menu to send quick requests without editing r=nchevobbe
This patch adds reverts back to having distint context menu items for 'Resend' and 'Edit and Resend'
but this is using the new http custom request functionality.

Differential Revision: https://phabricator.services.mozilla.com/D155159
2022-09-05 09:39:35 +00:00
Nicolas Chevobbe b15de410c8 Bug 1499653 - [devtools] Display @supports condition on top of rules. r=jdescottes.
Since we already had a test case for nested at-rules in
browser_rules_container-queries.js, I'm moving it to a
new test where we can test all the different at-rules that
can be nested (including `@supports`).

Differential Revision: https://phabricator.services.mozilla.com/D156313
2022-09-02 18:00:27 +00:00
Julian Descottes c4cabfb565 Bug 1783885 - [devtools] StyleEditor should lazily prettify editor content r=nchevobbe,ochameau
Depends on D155479

Differential Revision: https://phabricator.services.mozilla.com/D155481
2022-09-02 10:48:24 +00:00
Alexandre Poirot f962367d28 Bug 1788536 - [devtools] Use descriptorType instead of a type decipher from toolbox URL. r=jdescottes
This helps having the right type, even if we open the toolbox without any search params
in about:devtools-toolbox URL.

Differential Revision: https://phabricator.services.mozilla.com/D156134
2022-09-02 09:10:01 +00:00
Alexandre Poirot bd186cfb62 Bug 1788536 - [devtools] Expose `descriptorType` on all Descriptor fronts. r=jdescottes
This will help differentiate all the various context debugged by devtools.

Differential Revision: https://phabricator.services.mozilla.com/D156133
2022-09-02 09:10:00 +00:00
Nicolas Chevobbe 43824310d4 Bug 1787685 - [devtools] Fix ChromeDebugToolbar styling in Windows High Contrast mode. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D156274
2022-09-02 08:09:44 +00:00
nchevobbe 234ae43d37 Bug 1483662 - [devtools] Use `ChromeUtils.dateNow()` for timestamp of evaluation result packets. r=jdescottes,devtools-backward-compat-reviewers.
`ChromeUtils.dateNow()` has a higher precision than `Date.now()`, which is useful for ordering
of messages in the console output.

Differential Revision: https://phabricator.services.mozilla.com/D155548
2022-09-02 04:58:29 +00:00
nchevobbe 80001e9281 Bug 1483662 - [devtools] Use microSecondTimeStamp to build timeStamp for console-related resources. r=jdescottes.
We can get a higher precision timestamp from microSecondTimeStamp, which will be consumed
in the console client to re-order messages.
This fixes an issue where different type of resources (console-messages and error-messages)
emitted during the same timestamp would not appear in the order they should be in.
A test is added to make sure the fix is effective.

Differential Revision: https://phabricator.services.mozilla.com/D155546
2022-09-02 04:58:28 +00:00
Nicolas Chevobbe cd8a9fc464 Bug 1788095 - [devtools] Fix devtools-bundle failure. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D156041
2022-09-01 12:24:40 +00:00
Alexandre Poirot 91bbed2ced Bug 1787999 - [devtools] Show pseudo locale settings only in the browser toolbox. r=nchevobbe
Note that it will also stop showing locale and popup settings for remote browser toolboxes.
Toolbox.isBrowserToolbox being false for this usecase.

Differential Revision: https://phabricator.services.mozilla.com/D155956
2022-09-01 08:41:51 +00:00
Alexandre Poirot 09181ce3b3 Bug 1787409 - [devtools] Allow to open DevTools when installing an add-on remotely. r=nchevobbe,devtools-backward-compat-reviewers
I'm folding the helper_addons file as this is used only by this one test.

Differential Revision: https://phabricator.services.mozilla.com/D155686
2022-09-01 08:41:50 +00:00
Alexandre Poirot 8672b789df Bug 1787409 - [devtools] Resolve toolbox's opening only once the meatball menu is updated. r=nchevobbe
_buildTabs/_setInitialMeatballState wasn't awaited for.
So that preference front request might be pending when closing the toolbox too quickly in tests.

We should wait for all RDP requests to be completed before resolving Toolbox.open.

Differential Revision: https://phabricator.services.mozilla.com/D155872
2022-09-01 08:41:50 +00:00
Alexandre Poirot dff3ebe085 Bug 1787992 - [devtools] Expose gDevTools.showToolboxForWebExtension to open a webext toolbox in a dedicated window. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D155950
2022-09-01 08:41:49 +00:00
Nicolas Chevobbe 3074bcadc6 Bug 1787389 - [devtools] Fix ESLint consistent-return failures in devtools/client/debugger/src/actions. r=bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D155824
2022-08-31 11:40:15 +00:00
Nicolas Chevobbe 7198dabfab Bug 1787514 - [devtools] Fix failing webconsole mocha tests. r=ochameau.
It looks like there was some (hardware?) changes on TRY
which caused the test to run in Coordinated Universal Time
timezone, when one test expect it to be CEST.
We force the timezone in the test command so it will
always be CEST.

Differential Revision: https://phabricator.services.mozilla.com/D155818
2022-08-30 16:08:58 +00:00
Nicolas Chevobbe 1749c2acb4 Bug 1787514 - [devtools] Fix failing Reps jest tests. r=ochameau.
A couple test were failing because we're now using :is() in CSS,
which wasn't supported by the older version of jsdom we had.
Updating jsdom seems to fix the issue. It required to mock
TextEncoder and TextDecoder for jest tests.

Differential Revision: https://phabricator.services.mozilla.com/D155813
2022-08-30 16:08:57 +00:00
Nicolas Chevobbe 07966cbe9d Bug 1787514 - [devtools] Fix failing framework jest tests. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D155808
2022-08-30 16:08:57 +00:00
Nicolas Chevobbe f06515815a Bug 1787513 - [devtools] Fix failing debugger jest tests. r=bomsy.
This consist mostly of switching from undefined to
null for some expected values, because of the work
on eslint-consistent-return rule for the debugger.

Differential Revision: https://phabricator.services.mozilla.com/D155717
2022-08-30 16:08:56 +00:00
Alexandre Poirot f9089faa85 Bug 1787990 - [devtools] Remove devtools.toolbox.sideEnabled r=jdescottes
This has been added many years ago when introducing side hosts.
We should now consider this a builtin feature.

Differential Revision: https://phabricator.services.mozilla.com/D155392
2022-08-30 06:57:05 +00:00
Nicolas Chevobbe 4f4c8e0e84 Bug 1786830 - [devtools] Display container queries on top of rules. r=jdescottes.
This is a first basic implementation that we might extend in the future
(for example by adding a way to select the container node when clicking
on the container name).

A test is added to ensure we display container queries as expected, even
when dealing with unknown containers, or with nested layer/media/container rules.

Depends on D155602

Differential Revision: https://phabricator.services.mozilla.com/D155469
2022-08-30 05:53:57 +00:00
Nicolas Chevobbe ac589ea41d Bug 1787113 - [devtools] Move createGripMapEntry to reps test helper. r=ochameau.
The function is only used in tests, there's no
need for it to be in the Rep.

Differential Revision: https://phabricator.services.mozilla.com/D155562
2022-08-29 09:11:21 +00:00
Alexandre Poirot 6402fc721c Bug 1693686 - [devtools] Display the navigation buttons in WebExtension toolboxes. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D155563
2022-08-29 08:54:00 +00:00
Nicolas Chevobbe 4be5a19397 Bug 1688009 - [devtools] Make Netmonitor Performance Analysis panel more accessible. r=bomsy.
The data were presented in a table-like fashion, but weren't using accessible
elements for this, making it impossible to understand when using a screenreader.
We switch to use `<table>` and proper internal elements.

The pie-chart wasn't accessible at all, so we create groups and adds proper role
to items, and wrap slices in an interactive element so they can be interacted with
through the keyboard. This allow us to remove the fail-if annotation on the browser_net_statistics-02.js test.

Some items were missing, both in the table and the pie-chart, to make the panel
cleaner. The downside is that it was hard for a keyboard-only user to understand
the whole thing. So now, we do put all the data in the DOM, and label them with
'aria-label' attribute when needed..

Finally, we take this opportuniy to cleanup the implementation a bit, removing
unnecessary CSS and properties.

Differential Revision: https://phabricator.services.mozilla.com/D155364
2022-08-29 06:56:25 +00:00
Eemeli Aro fc7b79586e Bug 1786055 - Migrate styleeditor DTD localization to Fluent. r=nchevobbe,fluent-reviewers,flod
After the preceding change, the editMenuOverlay strings are only used by the styleeditor.
Therefore it makes sense to migrate them here specifically to its localization file.

Differential Revision: https://phabricator.services.mozilla.com/D155449
2022-08-26 16:31:40 +00:00
Nicolas Chevobbe 234d235b4f Bug 1786738 - [devtools] Rename grip-map-entry.js to grip-entry.js. r=ochameau.
The file now handles entries for other object types (Header, FormData, URLSearchParams)

Differential Revision: https://phabricator.services.mozilla.com/D155549
2022-08-26 14:51:56 +00:00
Nicolas Chevobbe e3dc5f6eaa Bug 1786805 - [devtools] Disable instant evaluation for top-level await expressions. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D155687
2022-08-26 14:35:12 +00:00
Mark Banner c83937cb5a Bug 1786197 - Turn on ESLint rule for prefer-boolean-length-check for devtools. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D155167
2022-08-26 13:39:34 +00:00
Hubert Boma Manilla 529cf4bac7 Bug 1785269 - Stop removing source based on the source thread instead use the source actor thread r=ochameau
This patch stops removing sources based on the `source.thread` property,
instead this should based of the source actors thread. This enables us to remove
the `source.thread` property which would be wrong when the breakpoints per url
work D150628 is done.

Differential Revision: https://phabricator.services.mozilla.com/D154904
2022-08-25 14:30:12 +00:00
Nicolas Chevobbe 65f7672999 Bug 1786699 - [devtools] Fix ESLint consistent-return failures in devtools/client/debugger/src/selectors. r=bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D155452
2022-08-25 11:00:10 +00:00
Kagami Sascha Rosylight 102bd338be Bug 1695435 - Part 2: Add more words to the chrome script heuristic in use-isInstance r=preferences-reviewers,Gijs,webdriver-reviewers,whimboo,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D110932
2022-08-24 22:47:42 +00:00
Daisuke Akatsuka 22973ccbbc Bug 1783877: Disable inspector quick action if already opening. r=daleharvey,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D155191
2022-08-24 22:02:44 +00:00
colin_czb bdb2150374 Bug 1778269 - [devtools] Preview support for FormData objects r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D155412
2022-08-24 12:29:26 +00:00
Alexandre Poirot d8144d7f8b Bug 1786516 - [devtools] Rename session-data to session-data-processors. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D155387
2022-08-24 08:49:17 +00:00
Alexandre Poirot 8cb0495890 Bug 1786516 - [devtools] Merge all resource notify callback into a unique one. r=jdescottes
This will help apply more transformations to all these notifications in the following patch.

Differential Revision: https://phabricator.services.mozilla.com/D154493
2022-08-24 08:49:16 +00:00
Nicolas Chevobbe dfb1d40244 Bug 1786241 - [devtools] Fix ESLint consistent-return failures in devtools/client/debugger/src/workers. r=bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D155196
2022-08-23 12:18:13 +00:00
Alexandre Poirot e76144cd1f Bug 1687461 - [devtools] Enable SOURCE resource on all targets r=nchevobbe,devtools-backward-compat-reviewers,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D103376
2022-08-23 10:03:18 +00:00
Nicolas Chevobbe 6a505585d0 Bug 1784222 - [devtools] Use Maps and Sets in getMode. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D154364
2022-08-23 06:42:38 +00:00
Nicolas Chevobbe 752ba9394b Bug 1783858 - [devtools] Directly pass text and mode when creating a new CodeMirror document in the debugger. r=ochameau.
We used to create the document, then set the text and the mode, which seemed to
trigger unecessary updates in CodeMirror.
Since CodeMirror document can take an initial value and mode, we make this a possibility
in the source editor, and use it from the debugger codebase.

We take this as an opportunity to move the `getMode` function to `source-document.js` as
it's only used from there, and put the logic to not highlight big files there.
The unit test for the function are moved to the same folder the function now lives in,
and are adapted to the new signature.

Differential Revision: https://phabricator.services.mozilla.com/D154096
2022-08-23 06:42:37 +00:00
Julian Descottes a3df09eb95 Bug 1786321 - [devtools] Update MDN compat data (2022 August 22nd week) r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D155230
2022-08-23 06:31:49 +00:00
Emilio Cobos Álvarez 9df7e6bca8 Bug 1782596 - Propagate preferred color-scheme to non-top frames. r=jwatt
The ColorSchemeMode::Preferred change doesn't make a difference (that
is, always use the preferred one), since when we only propagate from
top's embedder the embedder is chrome, which always has the preferred
color-scheme.

Differential Revision: https://phabricator.services.mozilla.com/D154931
2022-08-22 14:23:09 +00:00
Pat McGhen 69fb388a9e Bug 1743334 - [devtools] Add check for Android devices, allow for version number without sub version. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D154657
2022-08-22 14:16:59 +00:00
Hubert Boma Manilla 2f089e563b Bug 1782672 - [devtools] Make sure codemirror document still exists during component update/unmount r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D153456
2022-08-22 12:12:12 +00:00
Sylvestre Ledru 128c74caac Bug 1785451 - Ride along: Fix some typos r=linter-reviewers,fluent-reviewers,geckoview-reviewers,extension-reviewers,keeler,rpl,calu,ahal,flod DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D154946
2022-08-18 07:29:08 +00:00
Boris Chiou ac0a5cdfb4 Bug 1785329 - Enable animation-composition on Nightly. r=hiro
It seems that making animation shorthand supports animation-composition may be
very tricky, so it's unlikely to include animation-composition into the
shorthand for now, per spec issue:
https://github.com/w3c/csswg-drafts/issues/6946.

WebKit also supports the longhand only on STP (Safari Technology Preview), so
it should be fine to enable the longhand property only on Firefox Nightly,
for experiemental testing.

Differential Revision: https://phabricator.services.mozilla.com/D154934
2022-08-17 23:39:55 +00:00
Alexandre Poirot d27ee059ff Bug 1783813 - [devtools] Unify debugger initialization and thread selection. r=bomsy
We are updating more things when selecting a thread than when opening the debugger.
Let's use a unique codepath when it comes to handle a new top level target.

Differential Revision: https://phabricator.services.mozilla.com/D151552
2022-08-17 16:13:35 +00:00
Cosmin Sabou 1b5339504f Bug 1784520 - Mark browser_accessibility_relation_navigation.js as passing on a11y-checks after being fixed in bug 1688007. r=jdescottes,bomsy DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D154598
2022-08-17 02:36:02 +00:00
Andreas Farre e6bdbb5f03 Bug 1595491 - Part 2: Adapt test files to <embed> and <object> behaving more like <iframe>. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D148118
2022-08-16 16:42:59 +00:00
Mark Banner 53b35796e0 Bug 1784699 - Add more ESLint worker annotations to test files. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D154601
2022-08-15 16:50:31 +00:00
Mark Banner f0ab56decf Bug 1784699 - Ignore ESLint no-undef warnings in xpcshell-tests where functions are processed in other scopes. r=arai,necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D154600
2022-08-15 16:50:30 +00:00
Luke Swiderski f018493dd7 Bug 1764248 - Add composition event-listener breakpoints r=bomsy
Add compositionstart, compositionupdate and compositionend
to keyboard event-listener-breakpoints.
Add mochitests for each.
Add comment to mochitest.

Differential Revision: https://phabricator.services.mozilla.com/D153627
2022-08-15 06:42:00 +00:00
Emilio Cobos Álvarez a7401488af Bug 1784265 - Drop support for flex attribute values other than 0 and 1. r=dholbert,mconley,preferences-reviewers
This makes it easier to get parity between legacy and regular flex
without having to either have tons of arbitrary attribute selectors in
the xul sheet, nor adding attribute lookup hacks to the html flexbox
layout.

Also, reimplement the remaining supported flex attribute-values (0 and 1)
purely in terms of CSS rules in xul.css (regardless of whether
emulate-moz-box-with-flex is enabled).

In practice these are pretty uncommon and the style attribute does the
trick in every case I've tried.

Add a debug-only assertion to ensure we preserve behavior for now.

Add a new test with another behavior difference between flexbox
emulation and old xul layout because the old reftest now passes. Use
replaced elements, which in modern flex are treated differently.

Differential Revision: https://phabricator.services.mozilla.com/D154394
2022-08-12 23:13:41 +00:00
Marian-Vasile Laza 7f5e2711c6 Backed out 3 changesets (bug 1784265) for causing reftest failures on flex-emulation-1.xhtml. CLOSED TREE
Backed out changeset 415da4b53bdd (bug 1784265)
Backed out changeset e27b21c54b1f (bug 1784265)
Backed out changeset fcb1a053fbe2 (bug 1784265)
2022-08-13 01:14:13 +03:00
Emilio Cobos Álvarez a2ec6564f3 Bug 1784265 - Drop support for flex attribute values other than 0 and 1. r=dholbert,mconley,preferences-reviewers
This makes it easier to get parity between legacy and regular flex
without having to either have tons of arbitrary attribute selectors in
the xul sheet, nor adding attribute lookup hacks to the html flexbox
layout.

Also, reimplement the remaining supported flex attribute-values (0 and 1)
purely in terms of CSS rules in xul.css (regardless of whether
emulate-moz-box-with-flex is enabled).

In practice these are pretty uncommon and the style attribute does the
trick in every case I've tried.

Add a debug-only assertion to ensure we preserve behavior for now.

Add a new test with another behavior difference between flexbox
emulation and old xul layout because the old reftest now passes. Use
replaced elements, which in modern flex are treated differently.

Differential Revision: https://phabricator.services.mozilla.com/D154394
2022-08-12 19:34:34 +00:00
Nicolas Chevobbe 22f3a599f5 Bug 1783373 - [devtools] Pass isPrivate property to Downloads.createDownload. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D154528
2022-08-12 16:53:15 +00:00
Sandor Molnar 8aada8ee04 Backed out 2 changesets (bug 1595491) for causing build bustages in docshell/base/BrowsingContext.cpp CLOSED TREE
Backed out changeset 3687b7153c44 (bug 1595491)
Backed out changeset 91d87de145e3 (bug 1595491)
2022-08-12 19:50:20 +03:00
Andreas Farre f50b89fd60 Bug 1595491 - Part 2: Adapt test files to <embed> and <object> behaving more like <iframe>. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D148118
2022-08-12 15:48:27 +00:00
Hubert Boma Manilla 90178fe177 Bug 1779359 - Update Content-Length when message body changes r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D153477
2022-08-12 15:47:28 +00:00
Nicolas Chevobbe 450f0ae918 Bug 1784467 - [devtools] Add icon for select node in accessibility tree. r=jdescottes.
Since the select node in inspector simply re-use the inspector icon,
we're doing here, using a sized-down version of the a11y panel icon.

Differential Revision: https://phabricator.services.mozilla.com/D154509
2022-08-12 13:10:05 +00:00
Nicolas Chevobbe 484afc4d26 Bug 1688007 - [devtools] Add localized inspectIconTitle prop in Accessible.js . r=jdescottes.
This will add proper titles to the icons we display in the accessibility
panel to select a node in the Accessibility Tree or in the inspector (if it's
a dom node).
Assertions are added in tests to ensure we don't regress.

Differential Revision: https://phabricator.services.mozilla.com/D154406
2022-08-12 13:10:04 +00:00
Nicolas Chevobbe 39880dc213 Bug 1784073 - [devtools] Fix ESLint consistent-return failures in devtools/client/debugger/src/utils/. r=bomsy.
Depends on D154244

Differential Revision: https://phabricator.services.mozilla.com/D154245
2022-08-12 07:00:36 +00:00
Nicolas Chevobbe a77c3be794 Bug 1784071 - [devtools] Remove debugger specific eslint override for consistent-return rule. r=bomsy.
Instead, we put all the failing file into devtools eslintrc.js.

Differential Revision: https://phabricator.services.mozilla.com/D154244
2022-08-12 07:00:36 +00:00
Emilio Cobos Álvarez ff538cab0e Bug 1784349 - Don't use -moz-bool-pref for flexbox -moz-box emulation. r=dholbert,perftest-reviewers,sparky
Use a bool pref media query which allows dynamic changes to get
reflected instantly.

Differential Revision: https://phabricator.services.mozilla.com/D154449
2022-08-11 23:22:52 +00:00
Alexandre Poirot 137fce8f67 Bug 1772155 - [devtools] Move all session data entry processing into a dedicated module. r=nchevobbe
This will help keep target-actor-mixin generic and move each data entry processing
to a dedicated module.

Differential Revision: https://phabricator.services.mozilla.com/D147881
2022-08-11 21:27:00 +00:00
Alexandre Poirot 57effca3b9 Bug 1779284 - [devtools] Stop maintaining a duplicate of the target list in the debugger frontend. r=bomsy
Instead we can fully rely on TargetCommand.

This fixes duplicated calls made to top level thread actor.
This was only happening with toolbox not using the Watcher Actor.
i.e. the non-multiprocess Browser Toolbox, Browser Content Toolbox and may be worker toolboxes from about:debugging.

Differential Revision: https://phabricator.services.mozilla.com/D151643
2022-08-11 15:05:41 +00:00
Alexandre Poirot e123b2fef7 Bug 1782364 - [devtools] Test files with encoded characters in the debugger. r=bomsy
This at least ensure that the sources display with the right display in the Source Tree.

Differential Revision: https://phabricator.services.mozilla.com/D154082
2022-08-11 15:01:49 +00:00
Cristian Tuns 22cace401e Backed out changeset 1b9afbfab196 (bug 1783858) for causing devtools failures on browser_dbg-features-wasm.js CLOSED TREE 2022-08-11 10:18:26 -04:00
Nicolas Chevobbe 4a3e629847 Bug 1783858 - [devtools] Directly pass text and mode when creating a new CodeMirror document in the debugger. r=ochameau.
We used to create the document, then set the text and the mode, which seemed to
trigger unecessary updates in CodeMirror.
Since CodeMirror document can take an initial value and mode, we make this a possibility
in the source editor, and use it from the debugger codebase.

We take this as an opportunity to move the `getMode` function to `source-document.js` as
it's only used from there, and put the logic to not highlight big files there.
The unit test for the function are moved to the same folder the function now lives in,
and are adapted to the new signature.

Differential Revision: https://phabricator.services.mozilla.com/D154096
2022-08-11 12:48:49 +00:00
Julian Descottes 3296472cd1 Bug 1782979 - [devtools] Remove unused method getBlockingEndTime from har-builder.js r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D153606
2022-08-11 11:44:48 +00:00
colin_czb dfc111cbd0 Bug 1778268 - [devtools] Preview support for Headers objects r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D153893
2022-08-11 06:27:20 +00:00
Alexandre Poirot 3e81a727d3 Bug 1775503 - [devtools] Prevent showing content process request when the browser toolbox focuses on the parent process. r=bomsy
This is still one blind spot with privileged request done by content processes.
They aren't related to any BrowsingContext/WindowGlobal and there isn't any
attribute on channel/loadInfo which helps knowing they originates from a content process.

Differential Revision: https://phabricator.services.mozilla.com/D150014
2022-08-10 20:18:02 +00:00
Emilio Cobos Álvarez e23e2a0212 Bug 1783934 - Add a chrome-only -moz-box-layout: legacy | flex, and use that to implement flexbox emulation. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D154153
2022-08-10 19:46:37 +00:00
Julian Descottes 6bed5799c5 Bug 1783893 - [devtools] Changes view should rely on the computed property name r=nchevobbe
Similar to the fix done for values in Bug 1590031, now focused on property names.

Differential Revision: https://phabricator.services.mozilla.com/D154124
2022-08-10 16:18:53 +00:00
Alexandre Poirot bb70a506eb Bug 1783670 - [devtools] Avoid performance regression of Front.watchFronts API. r=nchevobbe
The Front.watchFronts API is sparsly used whereas we always instantiate
two EventEmitter and emit two events for all the Fronts.
We can avoid doing that unless we start using this API only on a couple of fronts.

Differential Revision: https://phabricator.services.mozilla.com/D153957
2022-08-09 11:38:15 +00:00
Julian Descottes 77b3b7923d Bug 1783606 - [devtools] Avoid unnecessary markupview updates for the unavailable children feature r=nchevobbe
We had false positives due to false != undefined comparisons.
Make sure to convert relevant form values to booleans

Differential Revision: https://phabricator.services.mozilla.com/D153931
2022-08-08 19:59:01 +00:00