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

17548 Коммитов

Автор SHA1 Сообщение Дата
Julian Descottes d7ae84a6e5 Bug 1670191 - [devtools] Remove mentions about remote debugging in target-mixin r=nchevobbe
Remote debugging in those method names and comments refered to e10s.
Nowadays remote debugging is rather used to talk about remote "browser" debugging, via about:debugging.
The comments give the false impression that those events are only used for about:debugging, which is not true.

Differential Revision: https://phabricator.services.mozilla.com/D93063
2020-10-09 12:22:28 +00:00
Emilio Cobos Álvarez 4d89ea6d7c Bug 1654866 - Make style inspector account for UA/chrome sheets and quirks properly. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D92633
2020-10-09 11:56:18 +00:00
Itiel 98722ba7f7 Bug 1668624 - Fix the arrow part of the Profiler panel not being colored the same as the header when the info section is expanded r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D92126
2020-10-08 20:32:59 +00:00
Sylvestre Ledru cad53f4804 Bug 1588458 - Replace dxr links by searchfox in the code/test r=kats,sparky
Differential Revision: https://phabricator.services.mozilla.com/D92792
2020-10-08 14:02:40 +00:00
Kershaw Chang 883455945d Bug 1668851 - Try to write data to socket directly without waiting r=necko-reviewers,dragana,remote-protocol-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D92442
2020-10-08 13:26:03 +00:00
Christoph Kerschbaumer faf05f7d19 Bug 1552168: Remove pref security.data_uri.unique_opaque_origin. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D92087
2020-10-08 16:55:25 +00:00
Cosmin Sabou 4c74d16c6b Backed out changeset 553b8374fcc2 (bug 1668265) for devtools failures on browser_keybindings_01.js. CLOSED TREE 2020-10-09 00:44:02 +03:00
Razvan Caliman 0bf9df40be Bug 1668265 - [devtools] Ensure node picker reacts to inspector fronts as they become available or destroyed r=ochameau
When a page is refreshed, the inspector fonts associated with targets within are destroyed and recreated.

The node picker didn't observe for this behavior. When a page was refreshed, it kept picking against dead fronts and ignored the newly created fronts, thus leaving users confused. This is an issue in popular web dev workflows like Hot Module Reloading, where the page may end up being refreshed. See [Bug1352121#c4](https://bugzilla.mozilla.org/show_bug.cgi?id=1352121#c4)

This patch makes the node picker listen for targets and inspector fronts as they become available or get destroyed. If node picking isn't explicitly stopped by either clicking a node or pressing the Escape key, node picking continues onto the refreshed page or to new page (same behavior as in Firefox Release).

Differential Revision: https://phabricator.services.mozilla.com/D92779
2020-10-08 12:51:06 +00:00
Farooq AR 69ce838809 Bug 1668985 - Incorrect order of message columns in Response Panel. r=Honza
With more tests in `browser_net_ws-sse-persist-columns.js`

Differential Revision: https://phabricator.services.mozilla.com/D92882
2020-10-08 11:33:07 +00:00
Razvan Caliman 9ff9f666b0 Bug 1667368 - [devtools] Prevent accidentally creating multiple highlighter instances r=jdescottes
When requesting a highlighter instance, the inspector front returns one from its cache if present, otherwise it sends a request to the server create a new one.

But if multiple requests come in very quickly before the server responds to the original request, the cache is still empty so the front fires a few more requests. How many? It's arbitrary. As many as fit before the original request's promise resolves and the cache is set. This is the root cause for the issue of seeing duplicate highlighters.

The issue is more pronounced when there is congestion: many microtasks in the queue, for example when loading a heavy tool like the Inspector on a complex page.

To solve this, we store the unsettled promise to create a highlighter and explicitly wait for it to resolve while ignoring subsequent requests.

Differential Revision: https://phabricator.services.mozilla.com/D92802
2020-10-07 20:30:44 +00:00
Julian Descottes 1d736794aa Bug 1669353 - [devtools] Tweak about:debugging main process test to check no target is created r=ochameau
Depends on D92499
Tweak an existing mock in the main process about:debugging test to check that we are not creating any target.

Differential Revision: https://phabricator.services.mozilla.com/D92553
2020-10-07 10:54:16 +00:00
Alexandre Poirot a73761a538 Bug 1669353 - [devtools] Stop instantiating main process target front from about:debugging. r=jdescottes
We can let about:devtools-toolbox instantiate it, as we do for most other target types.

Differential Revision: https://phabricator.services.mozilla.com/D92499
2020-10-07 21:22:32 +00:00
Alexandre Poirot 68f928fc97 Bug 1669353 - [devtools] Remove unused processId attribute from about:debugging on process targets. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D92498
2020-10-07 21:22:24 +00:00
Alexandre Poirot c6c98b8cbc Bug 1669592 - [devtools] Cleanup debugger/package.json dependencies list r=jdescottes
This changeset focuses on dependencies, but surprisingly, it has an impact on bundles.
Looks like one dependency uses another revision.

Differential Revision: https://phabricator.services.mozilla.com/D92736
2020-10-07 15:51:36 +00:00
Alexandre Poirot 6bc39d4810 Bug 1669592 - [devtools] Cleanup debugger/package.json. r=jdescottes
This changeset focus on devDependencies, but a similar work can probably be done on dependencies.
Many dependencies are justifies solely because of jest.
In order to run flow, we only need flow, and we need very few things for bin/bundle.
For me, the three things to keep working are:
* flow
* jest
* bin/bundle to rebuild vendors, reps, worker modules
The debugger frontend itself (src/ folder) is built without involving yarn/package.json.

Differential Revision: https://phabricator.services.mozilla.com/D92735
2020-10-07 15:51:05 +00:00
Brad Werth 5f931bfe75 Bug 1669628: Restrict a timing test to optimized builds, to avoid intermittency. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D92769
2020-10-07 14:45:23 +00:00
Alexandre Poirot a91d0c0801 Bug 1667737 - [devtools] Avoid registering resource listener twice on target switching from netmonitor. r=Honza
We should register the resource listeners only once.
ResourceWatcher will automatically handle re-registering the per-target listener for us.

Differential Revision: https://phabricator.services.mozilla.com/D92550
2020-10-07 13:39:43 +00:00
Razvan Maries f56817ceee Backed out changeset da4cf62e21fb (bug 1668851) for perma failures on browser_cdp.js. CLOSED TREE 2020-10-07 15:08:01 +03:00
Kershaw Chang 003f18dacb Bug 1668851 - Try to write data to socket directly without waiting r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D92442
2020-10-07 08:00:56 +00:00
Brad Werth e94c96647a Bug 1665091: [devtools] Relax timing restrictions to test to prevent intermittency. r=jdescottes
This changes the test from using a single threshold value of 300ms and testing
whether an event happens quicker or slower than that value, to instead use an
upper limit for instant events and a lower limit for delayed events. It also
disables the timer smoothing preferences and improves the error messages.

Differential Revision: https://phabricator.services.mozilla.com/D92478
2020-10-06 17:12:26 +00:00
Gabriel Luong b5c3417177 Bug 1669129 - [devtools] Enable devtools.overflow.debugging.enabled. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D92364
2020-10-06 12:01:08 +00:00
Bogdan Tara 0ddec45053 Backed out changeset 33ba7de82d52 (bug 1657567) for browser_markup failures CLOSED TREE 2020-10-06 13:45:14 +03:00
Razvan Caliman 6fcbba2296 Bug 1657567 - Prevent shifting focus within a markup container when already selected. r=gl
This is a speculative fix. Open to suggestions if there's a better approach.

## Context

When clicking a node in the Markup view, the `MarkupContainer` for that node will shift focus to the [first editor](https://searchfox.org/mozilla-central/rev/d54210d490ef335b13fc1fcac817525120c8c46b/devtools/client/inspector/markup/views/markup-container.js#777-786) for that node's attributes. This is good for accessibility and for keyboard navigation. But when the Markup view is narrow, the effect is shifting the horizontal scroll in order to bring the editor into view.

As a mouse user, if I want to double click a node attribute to edit it, the focus shifts as soon as I click first.
This is particularly annoying for attributes at the far end of the node. I can't edit the attribute because it shifts away as the focus moves to the first editor.

A workaround is to tab through the attribute editors until I get to the desired one

Video of the effect and workaround:

{F2424060}


## Proposed fix

The proposed fix is to keep the original behavior on first click on a `MarkupContainer` (focus the first editor, shift scroll if the viewport is too narrow).
But on second click, i.e. the `MarkupContainer` is already selected, skip moving focus and allow the user to edit node attributes.

Video of the effect with the patch applied

{F2424065}

Differential Revision: https://phabricator.services.mozilla.com/D87869
2020-09-28 12:12:13 +00:00
Gabriel Luong 18a75c17f7 Bug 1660973 - [devtools] Return a disconnectedNodeArray for getOverflowCausingElements. r=jdescottes,devtools-backward-compat-reviewers
The problem with `getOverflowCausingElement`s seems to be that it returned an array
of nodes that weren't properly attached to their parents.

To mitigate this, we call `attachElements` on the entire list of nodes and
return a `disconnectedNodeArray` which ensures that the returned nodes
are properly attached and therefore has all their parent node information
when calling `showNode`.

Differential Revision: https://phabricator.services.mozilla.com/D92360
2020-10-05 15:58:21 +00:00
Julian Descottes 1dba3124c8 Bug 1669113 - [devtools] Add a test for double click on scrollable badge r=gl
Depends on D92356

Adding a test for the previous changeset

Differential Revision: https://phabricator.services.mozilla.com/D92373
2020-10-05 13:29:47 +00:00
Gabriel Luong b039c0a1f3 Bug 1669113 - [devtools] Prevent the markup tree from expanding when a scrollable badge is clicked. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D92356
2020-10-05 08:51:02 +00:00
Ted Campbell 144a4531e5 Bug 1668808 - Add "JS Helper" threads to profiler settings r=julienw
These threads are used by SpiderMonkey for (some) parsing, jit compilation,
and GC tasks.

Differential Revision: https://phabricator.services.mozilla.com/D92230
2020-10-05 13:34:57 +00:00
Alexandre Poirot fa2ab74326 Bug 1620280 - [devtools] Explicitely wait for toolbox destruction in a few tests. r=jdescottes
Without that, we are closing the toolbox by destroying its tab or window.
This prevent correctly waiting for toolbox full destruction and was causing leaks
in debug builds on browser_webconsole_trackingprotection_errors.js and browser_aboutdebugging_devtools.js.

Differential Revision: https://phabricator.services.mozilla.com/D91917
2020-10-05 08:29:14 +00:00
Alexandre Poirot 2c5b9717e7 Bug 1620280 - [devtools] Prevent showing/hiding highlighters when the panels are already destroyed. r=jdescottes
browser_animation_animation-target_select.js was failing on debug builds because of exception during test ends.

Differential Revision: https://phabricator.services.mozilla.com/D91892
2020-10-05 08:29:12 +00:00
Alexandre Poirot 2a6162be5b Bug 1620280 - [devtools] Fix duplicated SET_BREAKPOINT action handling. r=jdescottes
With bug 1620280's patches, browser_dbg-windowless-workers-early-breakpoint.js started failing
because of a removed breakpoint being re-added after being removed!
This relates to the usage of `PROMISE` in the action object,
which triggers the promise middleware, itself making the action being emitted twice.
One time immediately, and another time after the promise is resolved.
So that the reducer was adding the breakpoint twice.

Differential Revision: https://phabricator.services.mozilla.com/D91720
2020-10-05 08:29:10 +00:00
Alexandre Poirot 376a975078 Bug 1620280 - [devtools] Bypass SourceQueue as it should be made redundant with ResourceWatcher throttling. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D90430
2020-10-05 08:29:02 +00:00
Alexandre Poirot e6a3461075 Bug 1620280 - [devtools] Wait for source actor when fetching frames. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D90429
2020-10-05 08:29:00 +00:00
Alexandre Poirot 09ffba351a Bug 1620280 - [devtools] Simplify things around sourceLoading promise. r=jdescottes
This was relevant before as we were calling "ThreadActor.getSources"/"StyleSheets.getStyleSheets",
and by the time these requests resolved, we would have navigated to a new URL and need to ignore their response.
I think it is safe to drop this now as these requests may still be pending if we use legacy listeners,
but the call to unwatchResources should immediately unregister _onResourceAvailable and ignore any pending data
coming late.

Differential Revision: https://phabricator.services.mozilla.com/D90428
2020-10-05 08:28:58 +00:00
Alexandre Poirot b44cfc42a0 Bug 1620280 - [devtools] Ensure calling unwatchResources. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D90427
2020-10-05 08:28:56 +00:00
Alexandre Poirot 4bcdeb0c48 Bug 1620280 - [devtools] Convert SourceMapService to use SOURCE resource. r=nchevobbe,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D88298
2020-10-05 08:28:48 +00:00
Alexandre Poirot 280c0d17aa Bug 1620280 - [devtools] Implement and use a SOURCE resource. r=jdescottes,bomsy,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D86916
2020-10-05 08:28:46 +00:00
Julian Descottes 46a49e5066 Bug 1668615 - [devtools] Remove debugger devtools-config package r=ochameau
Depends on D92117

Differential Revision: https://phabricator.services.mozilla.com/D92119
2020-10-05 12:26:09 +00:00
Julian Descottes 644b5c7fb1 Bug 1668615 - [devtools] Remove webpack config from devtools-components r=ochameau
Depends on D92110

This file is requiring "devtools-config" which we want to remove. And it is not used so it can be removed.

Differential Revision: https://phabricator.services.mozilla.com/D92117
2020-10-05 11:22:58 +00:00
Julian Descottes b57f6dac6d Bug 1668615 - [devtools] Remove debugger bin/dev-server.js module r=ochameau
This module uses devtools-config, which should be removed.
bin/dev-server was only used for launching the debugger in standalon (via devtools-launchpad).
This setup is no longer supported and can be removed.

Differential Revision: https://phabricator.services.mozilla.com/D92110
2020-10-05 11:22:45 +00:00
Itiel a934f29699 Bug 1668884 - Replace -moz-Field/-moz-FieldText with Field/FieldText in devtools/ r=Honza
Depends on D92334

Differential Revision: https://phabricator.services.mozilla.com/D92335
2020-10-05 11:13:54 +00:00
Farooq AR 92a33cdb9e Bug 1664185 - Persist selected columns for SSE / Websocket Events in the Response panel. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D90824
2020-10-05 10:09:33 +00:00
Daisuke Akatsuka 12e9f204be Bug 1667362: Add test for cached resource of target front. r=jdescottes
Depends on D92032

Differential Revision: https://phabricator.services.mozilla.com/D92185
2020-10-05 01:00:47 +00:00
Daisuke Akatsuka 0871be304b Bug 1667362: Introduce a caching mechanism into target front to get resource event of before registering listener. r=jdescottes,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D92032
2020-10-05 09:39:59 +00:00
Julian Descottes 1a81aeca5e Bug 1668916 - [devtools] Workaround for eager evaluation bug in browser_jsterm_evaluation_context_selector_inspector.js r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D92305
2020-10-05 08:13:46 +00:00
Julian Descottes da8ed7c5ac Bug 1668117 - [devtools] regenerate debugger bundles r=nchevobbe
Depends on D92030

Differential Revision: https://phabricator.services.mozilla.com/D92031
2020-10-02 17:01:01 +00:00
Julian Descottes de44465181 Bug 1668117 - [devtools] Remove types for devtools-modules and devtools-contextmenu r=nchevobbe
Depends on D92029

Differential Revision: https://phabricator.services.mozilla.com/D92030
2020-10-02 15:40:33 +00:00
Julian Descottes f76a690d34 Bug 1668117 - [devtools] Remove devtools-modules and devtools-contextmenu packages r=nchevobbe
Depends on D92028

Differential Revision: https://phabricator.services.mozilla.com/D92029
2020-10-02 15:40:19 +00:00
Julian Descottes 5a1e36e04f Bug 1668117 - [devtools] remove devtools-contextmenu and devtools-modules from debugger vendors r=nchevobbe
Depends on D92027

Differential Revision: https://phabricator.services.mozilla.com/D92028
2020-10-02 15:40:04 +00:00
Julian Descottes c57cbc6209 Bug 1668117 - [devtools] create a context-menu helper in debugger to replace devtools-contextmenu r=nchevobbe
Depends on D91859

The devtools-contextmenu package also needs devtools-modules. In order to remove devtools-modules, we need to also stop using devtools-contextmenu.

Differential Revision: https://phabricator.services.mozilla.com/D92027
2020-10-02 15:39:52 +00:00
Julian Descottes 94e1fdd036 Bug 1668117 - [devtools] do not load prefsHelper from devtools-modules in debugger r=nchevobbe
Depends on D91858

Differential Revision: https://phabricator.services.mozilla.com/D91859
2020-10-02 15:39:44 +00:00