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

27924 Коммитов

Автор SHA1 Сообщение Дата
Yury Delendik d37cbf723c Bug 1885589 - Update wasmparser to version 5.11. r=devtools-reviewers,bomsy
Changes:
- implement exnref type and try_table opcode.
- fix text representation of some ref and relaxed_simd ops

Tests are provided in the upstream repository.

Differential Revision: https://phabricator.services.mozilla.com/D204785
2024-03-18 14:02:51 +00:00
Hubert Boma Manilla d1885ead35 Bug 1882060 - [devtools] Add gutter events for click and context menu r=devtools-reviewers,nchevobbe
With this patch
- The line gutter context menu will get displayed on right click of the gutter
- Clicking line gutter should set breakpoints

Note not covered in this patch:-
- Context menu feaures might not work
- Line breakpoints are not showing yet ( this is coming in a future patch)

Differential Revision: https://phabricator.services.mozilla.com/D203210
2024-03-18 09:51:29 +00:00
Hubert Boma Manilla 08862c3d57 Bug 1882060 - [devtools] Cleanup code which toggles the folder gutter visibility r=devtools-reviewers,nchevobbe
These mouseover/mouseout events are for showing & hiding  the code fold gutter.
This does not actually work, and not seem to useful.

Differential Revision: https://phabricator.services.mozilla.com/D203251
2024-03-18 09:51:28 +00:00
Hubert Boma Manilla c22ee17127 Bug 1882333 - [devtools] Update the editor toggle button size when the editior dimensions change r=devtools-reviewers,nchevobbe
This patch updates the size of the button (above the editor gutter) which toogles the sidebar for codemirror 6.
Note this was broken with the current codemirror as wel so fixed both.

Also adding the ability to attach an updateListener to the editor we can listen for editor changes.

Differential Revision: https://phabricator.services.mozilla.com/D202398
2024-03-18 09:51:27 +00:00
Hubert Boma Manilla 991d7c1b6f Bug 1884571 - [devtools] Catch and log the waterfall background error to the browser console r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D204865
2024-03-18 09:18:30 +00:00
Emilio Cobos Álvarez 0e321f79be Bug 232598 - Return null for unset attributes in XUL. r=smaug,devtools-reviewers,omc-reviewers,zombie,nchevobbe,settings-reviewers,application-update-reviewers,credential-management-reviewers,mossop,aminomancer,bytesized,issammani,sessionstore-reviewers,dao
I just got bit by this in bug 1873833, let's just fix it. There isn't
all that much stuff depending on it anymore.

Differential Revision: https://phabricator.services.mozilla.com/D204496
2024-03-18 09:15:07 +00:00
Nicolas Chevobbe 10ca03dc14 Bug 1862896 - [devtools] Preview support for CustomStateSet. r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D204597
2024-03-15 06:05:17 +00:00
Nicolas Chevobbe 342ce5957d Bug 1862896 - Expose CustomStateSet in DevTools sandbox. r=smaug,devtools-reviewers,ochameau.
This will be used in next patch to customize rendering of CustomStateSet in DevTools.

Differential Revision: https://phabricator.services.mozilla.com/D204596
2024-03-15 06:05:17 +00:00
Nicolas Chevobbe ead1d58895 Bug 1698260 - [devtools] Fix autocomplete for Infinity. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D204478
2024-03-15 05:59:56 +00:00
Nicolas Chevobbe fe43a5405b Bug 1884230 - [devtools] Revert Bug 1882964 to fix regression. r=devtools-reviewers,bomsy.
Since we're at the end of the cycle, let's fix the regression
by reverting getRuleText to use the JS lexer again.
A test case is added to prevent future regression when we'll
try to move this to an InspectorUtils method again.

Differential Revision: https://phabricator.services.mozilla.com/D204621
2024-03-14 15:26:31 +00:00
Nicolas Chevobbe 4716ff1d3b Bug 1885335 - [devtools] Update MDN compat data (5.5.15). r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D204634
2024-03-14 14:32:02 +00:00
Nicolas Chevobbe d9bc1a76d3 Bug 1884072 - [devtools] Make `getStyleSheetRuleCountAndAtRules` faster. r=layout-reviewers,devtools-reviewers,emilio,ochameau.
We were returning the whole list of rules for a given stylesheet, and then
picking the at-rules we wanted in JS.
This patch make it so that the InspectorUtils method will only return the
at-rules we want directly, so we're building a smaller array of rule in the end.
Since `getStyleSheetRuleCountAndAtRules` also need to return the total number
of rules, this adds a simple `InspectorUtils.getStyleSheetRulesCount` method that
does that.

Differential Revision: https://phabricator.services.mozilla.com/D203878
2024-03-14 10:57:05 +00:00
Anna Yeddi d1b5ec132f Bug 1885008 - [devtools] Remove fail-if expectations from Debugger tests that are passing a11y-checks. r=devtools-reviewers,nchevobbe
Since the bug 1879447 enabled AccessibilityUtils to exclude intervening generics from tab-in-tablist accessibility checks, there are 3 tests in Debugger devtools that are now passing the a11y-checks, thus we could remove the `fail-if` notations from their test manifest.

Differential Revision: https://phabricator.services.mozilla.com/D204463
2024-03-13 20:54:54 +00:00
Butkovits Atila 640d8aa060 Backed out changeset d1d9d57a9895 (bug 1865394) for causing failures at browser_net_har_copy_all_as_har.js. CLOSED TREE 2024-03-13 21:04:58 +02:00
dylan f01e37b32b Bug 1865394 - added urgency and incremental to request header in netmonitor. r=necko-reviewers,extension-reviewers,devtools-reviewers,valentin,robwu,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D201265
2024-03-13 17:03:22 +00:00
Florian Quèze ea2845147b Bug 1884383 - Support including markers from external sources in gecko profiles, r=canaltinova,profiler-reviewers.
Differential Revision: https://phabricator.services.mozilla.com/D204044
2024-03-13 16:27:45 +00:00
Alexandre Poirot f9b7f48a40 Bug 1884717 - [devtools] Expose function returns logging to webconsole :trace command. r=devtools-reviewers,fluent-reviewers,flod,bomsy
This was only exposed via the Debugger button.

Differential Revision: https://phabricator.services.mozilla.com/D204302
2024-03-13 13:48:55 +00:00
Alexandre Poirot 6f7135745f Bug 1884717 - [devtools] Only log "returns" when logging exit frames without tracing values. r=devtools-reviewers,bomsy
We were logging "returns undefined" everywhere.

Differential Revision: https://phabricator.services.mozilla.com/D204301
2024-03-13 13:48:54 +00:00
artem manushenkov ca9371a138 Bug 1763961 [devtools] Make unchecking "Pick an element from the page" in "Available Toolbox Buttons" disable hotkey for opening element picker/inspector r=jdescottes,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D203948
2024-03-13 12:47:28 +00:00
Cristian Tuns 889993801c Backed out changeset ae42893523cc (bug 1884072) for causing dt failures in browser_resources_stylesheets.js CLOSED TREE 2024-03-13 08:55:09 -04:00
Nicolas Chevobbe 18cbc7bb3b Bug 1884072 - [devtools] Make `getStyleSheetRuleCountAndAtRules` faster. r=layout-reviewers,devtools-reviewers,emilio,ochameau.
We were returning the whole list of rules for a given stylesheet, and then
picking the at-rules we wanted in JS.
This patch make it so that the InspectorUtils method will only return the
at-rules we want directly, so we're building a smaller array of rule in the end.
Since `getStyleSheetRuleCountAndAtRules` also need to return the total number
of rules, this adds a simple `InspectorUtils.getStyleSheetRulesCount` method that
does that.

Differential Revision: https://phabricator.services.mozilla.com/D203878
2024-03-13 11:02:37 +00:00
Alexandre Poirot 4a9c4cd103 Bug 1884194 - [devtools] Document the JavaScript tracer. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D203938
2024-03-11 22:34:52 +00:00
Mark Banner 43d2964f1b Bug 1884623 - Cleanup jsm references in ESLint files. r=mossop,devtools-reviewers,omc-reviewers,ochameau,aminomancer
Differential Revision: https://phabricator.services.mozilla.com/D204180
2024-03-11 15:26:27 +00:00
Tom Schuster 18b9825828 Bug 1848315 - CSP: Introduce new and more detailed error messages. r=freddyb,devtools-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D186143
2024-03-11 14:26:46 +00:00
Alexandre Poirot 361a2f9918 Bug 1883947 - [devtools] Expand netmonitor test coverage in the Browser Toolbox. r=devtools-reviewers,nchevobbe
Cover opening the details panel and verify that one header is displayed.

Differential Revision: https://phabricator.services.mozilla.com/D203956
2024-03-11 14:21:06 +00:00
Mark Banner bbdbfcc046 Bug 1884619 - Remove worker-loader.js reference to removed Promise-backend.js. r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D204179
2024-03-11 10:11:35 +00:00
pstanciu a9174773af Backed out 6 changesets (bug 1713093, bug 1691986) for turning Bug 1767717 into permafail. CLOSED TREE
Backed out changeset b0285f8abf2e (bug 1713093)
Backed out changeset 6532dbabf879 (bug 1713093)
Backed out changeset 2670f26f6bff (bug 1713093)
Backed out changeset a63d603a1973 (bug 1713093)
Backed out changeset 0118d0bc64ba (bug 1713093)
Backed out changeset e29a81bc7299 (bug 1691986)
2024-03-08 20:32:38 +02:00
Emilio Cobos Álvarez 3339329c08 Bug 1884294 - Fix a test snapshot.
MANUAL PUSH: Trivial orange fix CLOSED TREE
2024-03-08 14:47:06 +01:00
Emilio Cobos Álvarez 4db9f9713b Bug 1884294 - Move alert-small / info-small to devtools-shared-images. r=devtools-reviewers,nchevobbe
So that they can be loaded by the highlighters.

Differential Revision: https://phabricator.services.mozilla.com/D204014
2024-03-08 13:19:15 +00:00
Nicolas Chevobbe 58fe6be8d3 Bug 1883894 - [devtools] Fix contrast of rule location in Rules view. r=devtools-reviewers,bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D203752
2024-03-08 07:58:51 +00:00
Alexandre Poirot 76cd251659 Bug 1883947 - [devtools] Fix netmonitor on the browser toolbox. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D203844
2024-03-07 16:14:39 +00:00
Nicolas Chevobbe a669555962 Bug 1882497 - [devtools] Make StorageInspector VariableView scrollable. r=devtools-reviewers,bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D203739
2024-03-07 11:01:51 +00:00
Cosmin Sabou e68d7120c6 Bug 1767701 - Disable browser_dbg-features-breakable-lines.js on osx 10.15 opt for frequent failures. r=#intermittent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D203856
2024-03-06 23:52:09 +00:00
Gregory Pappas 9cd109f018 Bug 1878629 - part 2: Use EventTarget.addEventListener to add system group event listeners instead of nsIEventListenerService (devtools/) r=devtools-reviewers,ochameau
Depends on D201043

Differential Revision: https://phabricator.services.mozilla.com/D201044
2024-03-06 19:27:10 +00:00
Alexandre Poirot 53d931c380 Bug 1713093 - [devtools] Allow using waitForSource to retrieve source object asynchronously. r=devtools-reviewers,nchevobbe
waitForSource wasn't fully reliable to retrieve the source object.
Now that it is, we can remove a few useless usages of findSource following it.

Differential Revision: https://phabricator.services.mozilla.com/D203447
2024-03-06 13:43:49 +00:00
Alexandre Poirot 87250d4e53 Bug 1713093 - [devtools] Remove TargetMixin.attachThread. r=devtools-reviewers,nchevobbe
This code was only used for workers targets, which weren't passing breakpoints
from the server side via "sessionData" concept.
Instead, we were still relying on the frontend to pass them and only after that
manually requesting the thread to resume its execution.

Now, there is still a notion of "attach" around the thread actor.
While all the targets are immediately instantiating their related thread actor,
the thread actor isn't active by default.
It becomes active as soon as:
* SOURCE or THREAD_STATE resource is watched
* breakpoints are set via session data (breakpoint list actor)
* thread configuration are set via session data (thread configuration actor)
I had to do one of these things in order to keep test from working.
In the production code, we do most of these things by default on the toolbox startup.
We could revise this behavior by:
* always attaching the thread actor, but it may start pausing unexpectedly in some tests.
* decouple sources from breakpoints within the thread actor, so that watching for sources doesn't necessarily "attach" the thread actor and activate breakpoints/debugger statements.
* have a new thread configuration to explicitly enable the thread actor pausing features.

I'm often using thread configuration to enable pausing in tests.
This required to improve xpcshell test helpers to be able to use Watcher/Commands.

About browser_target_command_bfcache.js, the DevTools code is now so quick that the
back/forward requests at done too quickly one after the other and fail actually moving to
the other document.

Differential Revision: https://phabricator.services.mozilla.com/D166321
2024-03-06 13:43:48 +00:00
Alexandre Poirot 82fd6a1bfe Bug 1713093 - [devtools] Avoid exception while running browser_console.js r=devtools-reviewers,nchevobbe
The new DevToolsProcess JS Actor will read the `sharedData` during its instantiation.
We should rather flush/persist sharedData *before* the JS Process Actor registration.
(this also fixes test failure when applying the next changeset)

Differential Revision: https://phabricator.services.mozilla.com/D203102
2024-03-06 13:43:48 +00:00
Alexandre Poirot 48c5bdbde8 Bug 1713093 - [devtools] Ensure processing all the target actors in xpcshell tests. r=devtools-reviewers,nchevobbe
We were only processing the first one being registered.
Luckily we weren't testing session data enough in xpcshell to have trouble because of this.
(this changeset fixes test failure when applying the next one)

Differential Revision: https://phabricator.services.mozilla.com/D203101
2024-03-06 13:43:47 +00:00
Alexandre Poirot 4ed1f074a8 Bug 1713093 - [devtools] Fix intermittent with browser_inspector_command_findNodeFrontFromSelectors. r=devtools-reviewers,nchevobbe
When loading the tab, an about:blank document is loaded first.
The top level target front may refer to that document instead of the test page.
Ensure waiting for that test page's target front before running the assertions.

Differential Revision: https://phabricator.services.mozilla.com/D203100
2024-03-06 13:43:47 +00:00
Alexandre Poirot 867a1f34c6 Bug 1691986 - [devtools] Revisit worker attach on the server. r=devtools-reviewers,nchevobbe
We used to wait for the thread actor to be attached before resuming
the execution of the worker. But now that breakpoints are now
always available on the server side, we can automatically resume
once we processed the Session Data and so, registered all the breakpoints.

In this changeset, we also merge the legacy WorkerTargetActor's attach
method into its constructor, so that the ThreadActor is always ready.

browser_dbg-windowless-service-workers.js fails because `sessionData`
isn't passed to worker-connector's `connectToWorker`.
That's because service workers are still instantiated from the client.
We still instantiate a WorkerDescriptor which is unrelated to the Watcher
and can't have easy access to its SessionData (which is keyed per Watcher and
not per DevToolsServerConnection).

Differential Revision: https://phabricator.services.mozilla.com/D166318
2024-03-06 13:43:47 +00:00
Mark Banner 4f1d29d324 Bug 1883371 - Enable ESLint rule no-console on production code. r=mossop,webcompat-reviewers,devtools-reviewers,omc-reviewers,twisniewski,nchevobbe,aminomancer
Allow for console.error, console.warn and console.createInstance, but fail for everything else.

Differential Revision: https://phabricator.services.mozilla.com/D203456
2024-03-05 16:56:57 +00:00
Dave Townsend b8f4c2d785 Bug 1864896: Remove empty destructuring patterns (devtools). r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D202960
2024-03-05 14:21:15 +00:00
Dave Townsend 9e30d1f3f9 Bug 1864896: Autofix unused function arguments (devtools). r=profiler-reviewers,devtools-reviewers,nchevobbe,julienw
Differential Revision: https://phabricator.services.mozilla.com/D202959
2024-03-05 14:21:15 +00:00
Nicolas Chevobbe 33f8d5d3c0 Bug 1882964 - [devtools] Use `InspectorUtils.getRuleBodyTextOffsets` in `getRuleText`. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D203234
2024-03-05 08:36:23 +00:00
Joel Maher 2a0bfb5827 Bug 1881925 - standardize on more manifest conditions. r=aryx,credential-management-reviewers,devtools-reviewers,dom-storage-reviewers,omc-reviewers,nchevobbe,janv,issammani
Differential Revision: https://phabricator.services.mozilla.com/D202663
2024-03-05 02:14:17 +00:00
artem manushenkov 5df99ddb69 Bug 1619201 - Change Watch expressions input field placeholder from "Add watch expression" to "Add expression". r=nchevobbe,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D203438
2024-03-04 17:03:21 +00:00
Nicolas Chevobbe 89c06db655 Bug 1883305 - [devtools] Remove 123 backward compatibility code. r=ochameau,devtools-reviewers.
Differential Revision: https://phabricator.services.mozilla.com/D203395
2024-03-04 14:20:53 +00:00
Sean Feng 58b193c520 Bug 1483828 - [Part 3] Update the expected focusing behavior for some devtools tests r=smaug,devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D202505
2024-03-04 14:16:31 +00:00
Sean Feng 8f46bf2a0c Bug 1483828 - [Part 1] Disallow <tab> to move focus to root element r=smaug
Brings us on-par with Chrome and Safari

Differential Revision: https://phabricator.services.mozilla.com/D198436
2024-03-04 14:16:30 +00:00
Tooru Fujisawa 9fb2ad954d Bug 1881359 - Part 2: Use DebuggerObject.prototype.isSameNativeWithJitInfo in eager evaluation to support methods with GenericMethod native function. r=nchevobbe,devtools-reviewers
This reverts a part of bug Bug 1815381 change.

Differential Revision: https://phabricator.services.mozilla.com/D203058
2024-03-01 12:37:39 +00:00