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

24084 Коммитов

Автор SHA1 Сообщение Дата
Julian Descottes b993f77c16 Bug 1743617 - [devtools] Fix backward compat for getParentTarget with webextension targets in FF95 or older r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D132497
2021-11-30 17:28:22 +00:00
Anny Gakhokidze a2ec84dc5c Bug 1721217 - Part 5: Change the error code when we cancel loads due to another one starting, r=nika
This allows us to move away from using IsNavigating field in parent-controlled
paths.  Use a new distinct error code in cases when we cancel loads in
Canonical BC due to another load starting. This way, we know to not reset the
urlbar if we are doing another load.

See https://bugzilla.mozilla.org/show_bug.cgi?id=1721217#c10 for longer
explanation of what is going on here.

Differential Revision: https://phabricator.services.mozilla.com/D126845
2021-11-30 16:31:36 +00:00
Emilio Cobos Álvarez 44e44eaf46 Bug 1743310 - Remove paint flashing support from DevTools. r=nchevobbe,devtools-backward-compat-reviewers
It doesn't do anything useful except on a niche WebRender fallback code-path,
so it's confusing.

Differential Revision: https://phabricator.services.mozilla.com/D132311
2021-11-30 11:46:07 +00:00
Butkovits Atila 724754167c Backed out 2 changesets (bug 1580394) for causing failures at browser_dbg-paused-overlay-loading.js. CLOSED TREE
Backed out changeset 6d96da07e581 (bug 1580394)
Backed out changeset db068d3108a2 (bug 1580394)
2021-11-30 12:44:44 +02:00
nchevobbe 3a85747d5c Bug 1580394 - [devtools] Don't wait for document to be ready to show PausesDebuggerOverlay. r=ochameau.
We're using the new `force` parameter for `insertAnonymousContent` to force creating a container
for the anonymous content, and we add a new option to the CanvasAnonymousHelper so highlighter
can choose to not wait for the dom to load.
For now we only use it for the paused debugger overlay as the other highlighters might need
an inspector front, which may require the dom to be ready.
We enable the assertions in  browser_dbg-paused-overlay-loading.js to check that the
highlighter is visible.
This required a few changes in the highlighter test actor.
First, it was waiting for an inspector front in its initialize method, which was
waiting indefinitely in our test as the document is paused. As this was only done
to retrieve the inspector actorID, we simply remove it and retrieve the actorID
through the connection and the target form when it's needed (for the eye dropper).
Secondly, the isPausedDebuggerOverlayVisible method was returning true even when
the highlighter wasn't displayed, so we check a few additional attributes.

Depends on D132034

Differential Revision: https://phabricator.services.mozilla.com/D132116
2021-11-30 09:33:20 +00:00
Andreea Pavel 9818dd6ab2 Bug 1726270 - update disabling condition to include linux debug r=intermittent-reviewers,MasterWayZ DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D132305
2021-11-30 05:04:36 +00:00
Hubert Boma Manilla ab1612a464 Bug 1690450 - [devtools] Rename the getSourceId to getBlackboxRangeForSource r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D132138
2021-11-29 16:41:42 +00:00
Hubert Boma Manilla b61faccdb5 Bug 1690450 - [devtools] Add pref for blackboxing lines r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D132052
2021-11-29 16:41:42 +00:00
Hubert Boma Manilla 7d72a95487 Bug 1742829 - [devtools] Remove the original-blackbox feature flag r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D132050
2021-11-29 16:41:42 +00:00
Alexandre Poirot e3f02185b6 Bug 1709267 - [devtools] Add support for target switching in about:debugging. r=jdescottes
The challenges here are:
* xpcshell tests still don't support the watcher actor and server side targets. So we have to ensure still using client side target fetched via Descriptor.getTarget RDP request. (We still also need that for WebExtension)
* some tests weren't spawning the TargetCommand while querying TabDescriptor.getTarget. I tuned them to call TargetCommand.startListening so that we start instantiating server side targets, including the top level one retrieved via TabDescriptor.getTarget.

Otherwise, thanks to this patch a few check can now be moved from `if (isLocalTab)` to `if (isTabDescriptor)`.

Differential Revision: https://phabricator.services.mozilla.com/D130761
2021-11-26 16:36:33 +00:00
Alexandre Poirot 357e274350 Bug 1709267 - [devtools] Fix duplicated transports when detaching the top target. r=nchevobbe
We ended up having duplicated JSWindowActorTransport's when detaching the target.
This only reproduces in case of remote debugging, where we detach/destroy the top target
when closing the toolbox. And we later reuse the same DevToolsClient to spawn a new
WindowGlobalTargetActor, with a new Transport.
But as the old transport was still around, we ended up duplicating the packets.

In this patch, I'm also tuning WindowGlobalTargetActor.destroy to avoid crashing
if the target wasn't attached when we destroy it, and avoid trying to destroy
twice if destroy is reentrant.

Differential Revision: https://phabricator.services.mozilla.com/D131914
2021-11-26 16:36:33 +00:00
Alexandre Poirot b555d2142a Bug 1709267 - [devtools] Remove unused "target" query parameter from toolbox location. r=jdescottes
This wasn't used except for a test and wasn't working with server side targets.
Making this compatible with SST wasn't trivial, so I went for removing this.

Differential Revision: https://phabricator.services.mozilla.com/D130919
2021-11-26 16:36:32 +00:00
Narcis Beleuzu a322582a00 Backed out 11 changesets (bug 1721217) for bc failures on browser_scrollPositions.js . CLOSED TREE
Backed out changeset 750f4a84b30e (bug 1721217)
Backed out changeset c4eb4ad769ad (bug 1721217)
Backed out changeset 81af11d67439 (bug 1721217)
Backed out changeset 548f2441b7c6 (bug 1721217)
Backed out changeset cd584129321a (bug 1721217)
Backed out changeset f5f5291d1da8 (bug 1721217)
Backed out changeset 9ad66ceec1e2 (bug 1721217)
Backed out changeset 10b53a21bb23 (bug 1721217)
Backed out changeset 3755cfbe22fe (bug 1721217)
Backed out changeset 71436dc6c4c4 (bug 1721217)
Backed out changeset ecf33b73ae60 (bug 1721217)
2021-11-26 01:51:03 +02:00
Hubert Boma Manilla 5facb6d63a Bug 1737252 - [devtools] Escaping back tick signs r=nchevobbe
This patch escapes the back ticks properly. There may need to be further
thoughts on having seperate context menu items for powershell versus cmd.exe
enabling us to efficiently handles those differently.

Differential Revision: https://phabricator.services.mozilla.com/D131033
2021-11-25 21:54:15 +00:00
Emilio Cobos Alvarez efe2305b8d Bug 1742696 - Opt-in a bunch of about:pages to dark system colors / form controls. r=Gijs,preferences-reviewers,webcompat-reviewers,twisniewski
Privileged pages do this automatically via:

  https://searchfox.org/mozilla-central/rev/aa8c75b83f636948f708986173965c84cae8c25f/widget/nsXPLookAndFeel.cpp#1179-1183

So this makes everything more consistent. Known exceptions:

 * Pocket panels (as those don't seem to support dark mode)
 * about:reader (because it has its own dark mode handling)

Differential Revision: https://phabricator.services.mozilla.com/D132019
2021-11-25 21:24:43 +00:00
Anny Gakhokidze 5a620b3dd9 Bug 1721217 - Part 5: Change the error code when we cancel loads due to another one starting, r=nika
This allows us to move away from using IsNavigating field in parent-controlled
paths.  Use a new distinct error code in cases when we cancel loads in
Canonical BC due to another load starting. This way, we know to not reset the
urlbar if we are doing another load.

See https://bugzilla.mozilla.org/show_bug.cgi?id=1721217#c10 for longer
explanation of what is going on here.

Differential Revision: https://phabricator.services.mozilla.com/D126845
2021-11-25 20:40:58 +00:00
Markus Stange 116861e876 WIP: Bug 1742855 - Update profiler-get-symbols wasm to d1500c1e935db352eeb97170459d16a20bcddf08. r=canaltinova
This version aligns the FileHandle API with the new IOUtils SyncReadFile API, which saves a few lines of code.
It also fixes a panic which could occur if symbolication tried to do a large out-of-bounds file read.
This bad read range was computed due to incorrect parsing of the macOS 12 dyld shared cache format.

Depends on D132076

Differential Revision: https://phabricator.services.mozilla.com/D132077
2021-11-25 15:54:55 +00:00
Markus Stange 3a8e5688df Bug 1742855 - Report errors from the symbolication worker even if they don't propagate to the main await call. r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D132076
2021-11-25 15:54:55 +00:00
Nicolas Chevobbe 9cf2c0002f Bug 1741804 - [devtools] Fix getPropNamesFromObject + storage performance issues. r=jdescottes.
The function, which is only used from previewers.js to retrieve
the first then interesting properties of an object, has a special
case for (local|session)Storage so we loop through their entries
and not their properties.
We're using storage#key to achieve this, but the problem is that
the function is quite slow, and if the storage object has a lot
of entries, it can end up freezing Firefox.
In order to avoid such freeze, for storage object, we're not returning
an array but an iterable object, which most of the time will only be
called 10 times and prevent any perf issue.

Differential Revision: https://phabricator.services.mozilla.com/D131913
2021-11-25 15:03:19 +00:00
Claudia fad8547640 Bug 1731770 - [devtools] Persit expanded nodes state in the Response Panel. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D128190
2021-11-25 14:56:48 +00:00
Nicolas Chevobbe 3509ad57ad Bug 1605330 - [devtools] Enable context selector on Nightly. r=ochameau.
We take this opportunity to merge the browser toolbox and content toolbox preferences
into a single one.

Depends on D131600

Differential Revision: https://phabricator.services.mozilla.com/D131770
2021-11-25 13:05:39 +00:00
Nicolas Chevobbe 459fde3136 Bug 1742541 - [devtools] Don't try to show PausedDebuggerOverlay if document isn't ready. r=ochameau.
At the moment, the overlay can't be displayed if the DOM isn't loaded,
and we were waiting for that state before trying to show the overlay.
But we can't move forward in the document loading process until we resume,
which mean we could end up in weird state with the overlay, where the
page wasn't paused anymore, but we'd display it.
In this patch, we simply bail out if the document isn't ready.

Differential Revision: https://phabricator.services.mozilla.com/D131884
2021-11-25 06:24:12 +00:00
Cosmin Sabou f8f59c4e24 Backed out 2 changesets (bug 1742332, bug 1742541) for causing assertion failures on htmlparser/nsExpatDriver.cpp. CLOSED TREE
Backed out changeset 333fa37b4df2 (bug 1742332)
Backed out changeset 762649eb6709 (bug 1742541)
2021-11-25 11:26:14 +02:00
Christoph Kerschbaumer 4e687e9b41 Bug 1742786: Update test devtools/.../browser_resources_document_events.js to work with https-first enabled r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D132008
2021-11-25 07:23:18 +00:00
Nicolas Chevobbe 50f18c0c83 Bug 1742541 - [devtools] Don't try to show PausedDebuggerOverlay if document isn't ready. r=ochameau.
At the moment, the overlay can't be displayed if the DOM isn't loaded,
and we were waiting for that state before trying to show the overlay.
But we can't move forward in the document loading process until we resume,
which mean we could end up in weird state with the overlay, where the
page wasn't paused anymore, but we'd display it.
In this patch, we simply bail out if the document isn't ready.

Differential Revision: https://phabricator.services.mozilla.com/D131884
2021-11-25 06:24:12 +00:00
Julian Descottes 6cc1d8eb14 Bug 1590317 - [devtools] Fix keyboard navigation for about:profiling range inputs r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D131937
2021-11-24 13:50:52 +00:00
Cristian Tuns ac7a567f03 Backed out 4 changesets (bug 1741808, bug 1742541, bug 1605330, bug 1742332) for causing damp failures. CLOSED TREE
Backed out changeset fe65ddb40037 (bug 1605330)
Backed out changeset d5c4c10f70d9 (bug 1742332)
Backed out changeset 9f637151059d (bug 1741808)
Backed out changeset bd54eacb2d7c (bug 1742541)
2021-11-24 06:43:20 -05:00
Nicolas Chevobbe c0564bd019 Bug 1742392 - [devtools] Rename onBreakpointAvailable into onThreadStateAvailable. r=bomsy.
This better conveys what the function really does.

Differential Revision: https://phabricator.services.mozilla.com/D131792
2021-11-24 10:23:54 +00:00
Nicolas Chevobbe 59b28c6aa5 Bug 1605330 - [devtools] Enable context selector on Nightly. r=ochameau.
We take this opportunity to merge the browser toolbox and content toolbox preferences
into a single one.

Depends on D131600

Differential Revision: https://phabricator.services.mozilla.com/D131770
2021-11-23 18:56:55 +00:00
Nicolas Chevobbe a0e98abae5 Bug 1742541 - [devtools] Don't try to show PausedDebuggerOverlay if document isn't ready. r=ochameau.
At the moment, the overlay can't be displayed if the DOM isn't loaded,
and we were waiting for that state before trying to show the overlay.
But we can't move forward in the document loading process until we resume,
which mean we could end up in weird state with the overlay, where the
page wasn't paused anymore, but we'd display it.
In this patch, we simply bail out if the document isn't ready.

Differential Revision: https://phabricator.services.mozilla.com/D131884
2021-11-23 18:56:54 +00:00
Nicolas Chevobbe 72a01fca06 Bug 1741811 - [devtools] Make watchTargets take a single object param. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D131755
2021-11-23 13:23:35 +00:00
Narcis Beleuzu 81698c54eb Backed out changeset 9dfd5e6601a1 (bug 1505304) as requested by nchevobbe 2021-11-23 14:56:24 +02:00
Nicolas Chevobbe 5d77281fc2 Bug 1505304 - [devtools] Make watchTargets take a single object param. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D131755
2021-11-23 12:39:19 +00:00
Julian Descottes d86a582b80 Bug 1741797 - [devtools] Fix colorpicker click listener signature r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D131602
2021-11-23 11:50:47 +00:00
Sandor Molnar e524498137 Backed out 2 changesets (bug 1709267) for causing dt failures in browser_about-devtools-toolbox_reload. CLOSED TREE
Backed out changeset da9d3297348d (bug 1709267)
Backed out changeset ec5eb72262cc (bug 1709267)
2021-11-22 22:17:35 +02:00
Alexandre Poirot 8f7f5f4ad4 Bug 1709267 - [devtools] Add support for target switching in about:debugging. r=jdescottes
The challenges here are:
* xpcshell tests still don't support the watcher actor and server side targets. So we have to ensure still using client side target fetched via Descriptor.getTarget RDP request. (We still also need that for WebExtension)
* some tests weren't spawning the TargetCommand while querying TabDescriptor.getTarget. I tuned them to call TargetCommand.startListening so that we start instantiating server side targets, including the top level one retrieved via TabDescriptor.getTarget.

Otherwise, thanks to this patch a few check can now be moved from `if (isLocalTab)` to `if (isTabDescriptor)`.

Differential Revision: https://phabricator.services.mozilla.com/D130761
2021-11-22 18:57:32 +00:00
Alexandre Poirot 32ab65debf Bug 1709267 - [devtools] Remove unused "target" query parameter from toolbox location. r=jdescottes
This wasn't used except for a test and wasn't working with server side targets.
Making this compatible with SST wasn't trivial, so I went for removing this.

Differential Revision: https://phabricator.services.mozilla.com/D130919
2021-11-22 18:57:32 +00:00
Alexandre Poirot 003720c295 Bug 1741669 - [devtools] Implement a faster TargetCommand.getParentTarget. r=nchevobbe
The original intent was to do a synchronous implementation,
but this is hard to do while keeping backward compat.

Differential Revision: https://phabricator.services.mozilla.com/D131398
2021-11-22 18:55:55 +00:00
Alexandre Poirot ce06e78015 Bug 1741652 - [devtools] Expose `commands` to all protocol.js fronts. r=nchevobbe
This help any front to interact with commands, which is frequently useful.
In the long run, all fronts should be slowly converted to become commands.

Differential Revision: https://phabricator.services.mozilla.com/D131397
2021-11-22 18:55:55 +00:00
Nicolas Chevobbe 7333db7444 Bug 1742107 - [devtools] Don't ignore same-origin iframe in EventLoop#getAllDebuggees. r=bomsy.
This was causing some issues with PausedDebuggerOverlay with EFT:
As we weren't returning the window to preEnter, we weren't calling
suppressEventHandling on it, which in the end made the call we
have in the overlay to setSuppressedEventListener inoperant.
This wasn't caught by the browser_dbg-paused-overlay-iframe.js test
we have as the method we use to simulate clicking on the button
(highlighterTestFront.clickPausedDebuggerOverlayButton), ends ups calling
the handleEvent method of the highlighter actor directly, bypassing the
regular flow of events in a paused page.

Differential Revision: https://phabricator.services.mozilla.com/D131654
2021-11-22 13:38:44 +00:00
Nicolas Chevobbe afe2a8de21 Bug 1742329 - [devtools] Fix server chrome inspector test when EFT is enabled. r=ochameau.
We were always using the top level walker front, but as some tests are using iframes,
we need to use the node fronts dedicated walker front instead.
test_inspector-dead-nodes.html is purely skipped when EFT is enabled as it triggers
failures more frequently and it doesn't make much sense anyway (this test will be
migrated to a command test when we move walkerFront#children to a command).

Differential Revision: https://phabricator.services.mozilla.com/D131599
2021-11-22 13:38:44 +00:00
Nicolas Chevobbe 4ae1a542f9 Bug 1742331 - [devtools] Fix more frequent failures on browser_dbg-event-breakpoints-fission.js when EFT is enabled. r=bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D131598
2021-11-22 13:38:43 +00:00
Nicolas Chevobbe 7239e0e622 Bug 1742330 - [devtools] Make browser_resources_document_events.js handle EFT. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D131476
2021-11-22 13:38:43 +00:00
Andreea Pavel 93376ab546 Bug 1717330 - disable browser_touch_event_iframes.js for frequent failures r?#intermittent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D131574
2021-11-19 02:14:06 +00:00
Nazım Can Altınova fea7d30107 Bug 1741716 - Change the preset to Firefox when profiler popup is activated through web channel r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D131436
2021-11-19 13:49:35 +00:00
Ting-Yu Lin 5d4998ecf4 Bug 1741774 - Support scrollbar-gutter in the style system. r=emilio
This patch adds `scrollbar-gutter` property in CSS Overflow level 3 [1] to the
style system.

`devtools/shared/css/generated/properties-db.js` is generated by
`./mach devtools-css-db`.

[1] https://drafts.csswg.org/css-overflow-3/#scrollbar-gutter-property

Differential Revision: https://phabricator.services.mozilla.com/D131460
2021-11-19 01:48:07 +00:00
Alexandre Poirot c920bd8a93 Bug 1737194 - [devtools] Strengthen browser_target_command_various_descriptors.js. r=jdescottes
Fix two possible race conditions:
* short lived processes spawn by the test ends up breaking listAllWorkers where the listWorker request
  made against a content process target is throwing because its DevToolsServerConnection is closed.
* the worker created by the test may actually still be visible to WorkerDebuggerManager,
  so use a better technique to catch the WorkerDebugger's id.

Differential Revision: https://phabricator.services.mozilla.com/D131442
2021-11-18 21:43:20 +00:00
Eemeli Aro 453a3f26f0 Bug 1733496 - Migrate key-shortcuts.properties to Fluent. r=jdescottes,fluent-reviewers
This adds `Localization` to `builtin-modules.js` to make it accessible from
`definitions.js`. It's likely that the abstractions used in `definitions.js`
will need to be revisited when `startup.properties` is also migrated to Fluent.

Differential Revision: https://phabricator.services.mozilla.com/D131219
2021-11-18 16:40:03 +00:00
Nicolas Chevobbe b3f55dd1b1 Bug 1741808 - [devtools] Fix increased failures on browser_toolbox_backward_forward_navigation.js when EFT is enabled. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D131475
2021-11-18 13:22:35 +00:00
Nicolas Chevobbe 11bef8cace Bug 1741803 - [devtools] Fix browser_inspector_iframe-picker-bfcache-navigation with EFT. r=ochameau.
This required 2 changes:
- fixing WatcherActor notifyTargetAvailable so we get notified about the iframe
  target when doing a bfcache navigation (a test case is added in browser_target_command_bfcache.js as well)
- Checking is the target isn't destroyed in inspector onTargetSelected

Differential Revision: https://phabricator.services.mozilla.com/D131471
2021-11-18 13:22:35 +00:00