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

17482 Коммитов

Автор SHA1 Сообщение Дата
Butkovits Atila d89b519adc Backed out 9 changesets (bug 1620280) for failure at browser_ext_devtools_inspectedWindow_targetSwitch.js. CLOSED TREE
Backed out changeset 8dda1f048067 (bug 1620280)
Backed out changeset 309c0be48745 (bug 1620280)
Backed out changeset 78a06cd336c6 (bug 1620280)
Backed out changeset 74aba83895ce (bug 1620280)
Backed out changeset 6a8126ded6ec (bug 1620280)
Backed out changeset 47a2d6b77270 (bug 1620280)
Backed out changeset 526c067da0c1 (bug 1620280)
Backed out changeset 488f645884ba (bug 1620280)
Backed out changeset 9cffe1c5fb6d (bug 1620280)
2020-10-01 23:32:57 +03:00
Itiel 210d2ba3ec Bug 1667646 - Unify the info button's hover/focus/active design for the bookmarks CFR, protections popup and the profiler r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D91513
2020-10-01 15:46:56 +00:00
Alexandre Poirot d9711aa658 Bug 1667086 - [devtools] Wait for state instead of TRACK_CHANGE events in browser_changes_declaration_remove_ahead.js. r=rcaliman
This is because of bug 1596093, introducing throttling around TRACK_CHANGE
and making its listening less reliable.

Differential Revision: https://phabricator.services.mozilla.com/D91830
2020-10-01 14:43:25 +00:00
Alexandre Poirot 47d9a4272f 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-01 14:22:52 +00:00
Alexandre Poirot 63bd02f077 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-01 14:22:50 +00:00
Alexandre Poirot 6faa08bb97 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-01 14:22:48 +00:00
Alexandre Poirot 75809cbbf4 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-01 14:22:45 +00:00
Alexandre Poirot 24fa559f26 Bug 1620280 - [devtools] Wait for source actor when fetching frames. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D90429
2020-10-01 14:22:38 +00:00
Alexandre Poirot db80068f12 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-01 14:22:36 +00:00
Alexandre Poirot 5a5149d736 Bug 1620280 - [devtools] Ensure calling unwatchResources. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D90427
2020-10-01 14:22:31 +00:00
Alexandre Poirot 2cf7b7a8e4 Bug 1620280 - [devtools] Convert SourceMapService to use SOURCE resource. r=nchevobbe,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D88298
2020-10-01 14:22:23 +00:00
Alexandre Poirot 4367d1b79f Bug 1620280 - [devtools] Implement and use a SOURCE resource. r=jdescottes,bomsy,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D86916
2020-10-01 14:22:21 +00:00
Olli Pettay 8a508eaa66 Bug 1668357 - Disable tests which fail when fission and session-history-in-parent are enabled, r=peterv,marionette-reviewers,whimboo
In many cases with wpt, most of the tests in the file pass, but it is rather time consuming to annotate
.ini files case by case.

Differential Revision: https://phabricator.services.mozilla.com/D91977
2020-10-01 10:23:47 +00:00
Alexandre Poirot afb3e68613 Bug 1654587 - [devtools] Remove now-unused async-storage and async-store-helper modules. r=jdescottes,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D91737
2020-09-30 17:43:13 +00:00
Alexandre Poirot ccb945702d Bug 1654587 - [devtools] Use a shared asyncStore instance between Debugger Frontend and TargetMixin. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D91736
2020-09-30 17:42:28 +00:00
Nicolas Chevobbe cf8a17b642 Bug 1668271 - [devtools] Fix variable name in sources.js. r=bomsy.
We rename soureActor to a proper sourceActor.

Depends on D91934

Differential Revision: https://phabricator.services.mozilla.com/D91935
2020-10-01 06:36:19 +00:00
Nicolas Chevobbe 9f48da9ccd Bug 1668271 - [devtools] Remove unused insertSourceActor function in source-actors.js .r=bomsy.
The function isn't used anywhere in the codebase, so we can safely remove it.

Differential Revision: https://phabricator.services.mozilla.com/D91934
2020-10-01 06:35:19 +00:00
Alexandre Poirot 774d67d856 Bug 1667999 - [devtools] Remove unused devtools-modules's modules. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D91889
2020-09-30 17:42:56 +00:00
Alexandre Poirot 2a02be0b6f Bug 1667999 - [devtools] Land in-tree devtools-environment package. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D91735
2020-09-30 17:40:11 +00:00
Alexandre Poirot 32bcd00441 Bug 1667999 - [devtools] Land in-tree devtools-contextmenu package. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D91734
2020-09-30 17:38:58 +00:00
Alexandre Poirot 2daa29851f Bug 1667999 - [devtools] Land in-tree devtools-config package. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D91733
2020-09-30 17:39:01 +00:00
Alexandre Poirot eb3020eed5 Bug 1667999 - [devtools] Land in-tree devtools-modules package. r=jdescottes
/!\ in order to take the new package in packages/ folder in account,
you have to run `yarn` before `node bin/bundle.js`

Differential Revision: https://phabricator.services.mozilla.com/D91732
2020-09-30 17:38:50 +00:00
Alexandre Poirot d7ed96dfed Bug 1667999 - [devtools] Update devtools bundles. r=jdescottes,nchevobbe
This is done by doing:
$ cd devtools/client/debugger
$ yarn
$ node bin/bundle.js

I'm doing this first in order to better highlight the impact of introduce new packages in-tree.

Differential Revision: https://phabricator.services.mozilla.com/D91731
2020-09-30 16:34:27 +00:00
Nicolas Chevobbe f315ff58cd Bug 1573779 - [devtools] Rename WorkerTarget to WorkerDescriptor. r=ochameau,jdescottes,devtools-backward-compat-reviewers.
This renames the current WorkerTargetActor which is actually a descriptor.
We also rename the existing `workerTargetFront` occurences to `workerDescriptorFront`
to avoid confusion when we do introduce the real worker fronts and actors.

Differential Revision: https://phabricator.services.mozilla.com/D91100
2020-09-29 14:30:24 +00:00
Dorel Luca f826d52619 Backed out 3 changesets (bug 1573779, bug 1662734) for Geckoview failures. CLOSED TREE
Backed out changeset 0adff4f08b28 (bug 1662734)
Backed out changeset c6bb84f2a032 (bug 1573779)
Backed out changeset 0c605800aa6b (bug 1573779)
2020-09-29 12:59:39 +03:00
Tom Schuster 002deb9621 Bug 1645284 - When taking a fullscreen screenshot accept any DPR, but try again when too large. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D91508
2020-09-29 06:13:54 +00:00
Nicolas Chevobbe 4914f8c614 Bug 1573779 - [devtools] Rename WorkerTarget to WorkerDescriptor. r=ochameau,jdescottes,devtools-backward-compat-reviewers.
This renames the current WorkerTargetActor which is actually a descriptor.
We also rename the existing `workerTargetFront` occurences to `workerDescriptorFront`
to avoid confusion when we do introduce the real worker fronts and actors.

Differential Revision: https://phabricator.services.mozilla.com/D91100
2020-09-28 12:27:22 +00:00
Julian Descottes 4fd39a83f2 Bug 1618693 - [devtools] Remove LocalTabTargetFront and move localtab logic to TabDescriptorFront r=ochameau
The goal of this revision is to unify the various tab & frame target fronts on the client side so that they are all simple instances of BrowsingContextTargetFront.
This will simplify https://bugzilla.mozilla.org/show_bug.cgi?id=1644397 . At the moment all targets emitted by the watcher are turned into BrowsingContextTargetFront by target list (https://searchfox.org/mozilla-central/rev/35d927df97900a57ecb562ad13909e392440b0fb/devtools/client/fronts/watcher.js#37). Removing `LocalTabTargetFront` means we don't have to introduce this concept to TargetList.

The first top target of a content toolbox will be a BrowsingContextTargetFront, same as all the future ones, even if they are provided by the watcher.

Differential Revision: https://phabricator.services.mozilla.com/D91106
2020-09-25 09:55:14 +00:00
Kris Maglione bbfbd2f113 Bug 1660057: Add preferences for Fission rollout Normandy experiment. r=nika,marionette-reviewers,perftest-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D91066
2020-09-25 02:01:15 +00:00
Razvan Maries 8de1e9f262 Backed out changeset 737f0e3e2f94 (bug 1660057) for xpcshell perma failures. CLOSED TREE 2020-09-24 23:25:54 +03:00
Kris Maglione 04dc79653a Bug 1660057: Add preferences for Fission rollout Normandy experiment. r=nika,marionette-reviewers,perftest-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D91066
2020-09-24 18:35:58 +00:00
Nicolas Chevobbe 2129e51ab1 Bug 1662522 - Fix browser_jsterm_evaluation_context_selector.js failures. r=bomsy.
In Bug 1660416, the separator element in the list of context was turned
into an hr element. But the test helper that checks the list wasn't updated,
which made the test fail (the test only runs when fission is enabled, which
is why it wasn't backed-out).
This patch fixes the helper by  retrieving hr elements from the list.

Differential Revision: https://phabricator.services.mozilla.com/D90820
2020-09-24 10:47:08 +00:00
Alexandre Poirot fe0eb445f3 Bug 1663614 - Wait for state instead of TRACK_CHANGE events. r=bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D91114
2020-09-24 07:11:28 +00:00
Alexandre Poirot a326ee8f09 Bug 1663614 - Throttle resources on the client side from ResourceWatcher. r=jdescottes,bomsy
Because of this, in netmonitor stubs tests, the resource objects ends up loosing
"intermediate" state and now contains all information that we gathered by the time
we emit throttled resources.
The only way to address that would be to do an archived copy of each resource state,
but I don't think we want to do that...

Differential Revision: https://phabricator.services.mozilla.com/D89628
2020-09-24 11:04:57 +00:00
Kyle Knaggs 6f5a5f833b Bug 1664531 - Adds placeholder text to the CodeMirror instances used to create conditional breakpoints and logpoints r=bomsy
Before this patch the CodeMirror instance used to create Conditional Breakpoints and Logpoints did not have placeholder text.

This patch adds placeholder text to this CodeMirror instance by:

1. Adding the CodeMirror addon responsible for creating placeholder text.
2. Updating `webpack.config.js`.
3. Regenerating `codemirror.bundle.js`.
4. Matching the color of the placholder text in these CodeMirror instances to the color of placeholder text in the rest of the Debugger.

{F2456834}

Differential Revision: https://phabricator.services.mozilla.com/D89962
2020-09-20 23:01:28 +00:00
Alexandre Poirot fad9e1690b Bug 1663649 - [devtools] Enable target switching by default. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D91020
2020-09-23 17:50:20 +00:00
Alexandre Poirot 3dad2d6583 Bug 1665306 - Process "network updates" in console with only one `networkUpdateRequest` action call. r=jdescottes,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D90394
2020-09-23 11:29:38 +00:00
Alexandre Poirot 1ce63dfa6b Bug 1665305 - Process "message network updates" in console with only one `networkMessageUpdate` action call. r=jdescottes
This help modifying redux state only once and prevent many uncesarry copies of the whole messages/network events Maps.
This will also later help getting rid of WebConsoleWrapper throttling in favor of upcoming ResourceWatcher one,
as we could call only one action from onResourceAvailable/Updated.

Differential Revision: https://phabricator.services.mozilla.com/D90367
2020-09-23 11:29:30 +00:00
Nicolas Chevobbe 224212d3d4 Bug 1607569 - Re-enable browser_console_webconsole_private_browsing.js. r=ochameau.
It looks like the issue it was disabled for no longer exists.

Differential Revision: https://phabricator.services.mozilla.com/D90845
2020-09-22 05:19:43 +00:00
Nicolas Chevobbe 35d927df97 Bug 1664493 - Add a test for logging in RDM. r=bradwerth.
This wasn't tested before, and a regression slipped through (that was luckily
fixed by Bug 1664493).
This should prevent future breakages.

Differential Revision: https://phabricator.services.mozilla.com/D90880
2020-09-21 15:29:01 +00:00
Itiel e44be6b134 Bug 1631202 - Convert all uses of :-moz-any to :is in devtools/ r=ntim
Differential Revision: https://phabricator.services.mozilla.com/D90692
2020-09-21 19:35:23 +00:00
Alexandre Poirot 5c7bbf87ee Bug 1665293 - Call WebConsoleWrapper methods only once from WebConsoleUI.onResourceAvailable/Updated. r=jdescottes
This will ultimately help get rid of throttling done in WebConsoleWrapper
in favor of the upcoming one to be done from ResourceWatcher.

Differential Revision: https://phabricator.services.mozilla.com/D90366
2020-09-21 16:46:42 +00:00
Alexandre Poirot 2ab106a0fc Bug 1665709 - Use same listener for NETWORK_EVENT and NETWORK_EVENT_STACKTRACE in order to guarantee event order. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D90288
2020-09-21 16:46:40 +00:00
Kriyszig f56222395b Bug 1659516 - Remove compatibility.css import in tooltip.css that leads to the css being loaded twice r=mtigley,daisuke
If we open the Compatibility panel, the rules panel ill import the
tooltip.css for rendering the tooltips. However, the tooptip.css
imports compatibility.css and now the styles are not only unnecessarily
parsed but also on opening the Compatiblity panel, this stylesheet is
loaded and parsed again leading to the stylesheet
being loaded twice and hence these styles are applied twice for
each element in the compatibility panel unnecessarily.
We get all the necessary styles for the compatibility tooltip into
the tooltip.css (adding the necessary changes needed to handle the
color differences in the background) and remove the import of the
external compatibility.css

Differential Revision: https://phabricator.services.mozilla.com/D90533
2020-09-21 15:36:29 +00:00
Kyle Knaggs 34c6a27d2f Bug 1659565 - Add padding and prevent vertical bounce in the Watch Expressions and XHR Breakpoints panes r=bomsy
Before this patch, there were some UX polish issues present in both the Watch Expressions and the XHR Breakpoints pane. These issues were:
1. Whenever a list of elements was displayed in either of these panes it did not possess the `4px` of vertical `padding` that is typical of lists in the Debugger.
2. The Add Watch Expression input was often not removed from the UI until after the updated list of Watch Expressions was rendered.
3. Whenever a user attempts to edit an existing Watch Expression or XHR Breakpoint they experienced significant "vertical bounce" due to a difference in height between the original markup and the form that replaced it.

This patch addresses these issues by:
1. Relocating the inputs used to create new Watch Expressions and XHR Breakpoints outside of the `<ul>` elements in these panes.
2. Relocating the `hideInput()` function call to `componentWillReceiveProps()` ensuring that the Add Watch Expression input does not persist after the list of Watch Expressions has been updated.
3. Modifying the height of the forms used to edit existing Watch Expressions and XHR Breakpoints so that there is no vertical bounce whenever a user attempts to edit an existing Watch Expression or XHR Breakpoint.

In addition to these changes, Snapshot tests and Mochitest selectors were updated where relevant while minor refactors were also done in order to improve the legibility of the code.

{F2447136}

Differential Revision: https://phabricator.services.mozilla.com/D88101
2020-09-21 14:23:39 +00:00
Nicolas Chevobbe 2486f9106a Bug 1665505 - Check that highlighter isn't destroyed before calling finalize. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D90854
2020-09-21 13:27:05 +00:00
Ben b9ef9df4b8 Bug 1606626 - Implement STOMP WebSocket message parsing. r=Honza,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D89265
2020-09-20 16:30:59 +00:00
Cristina Coroiu 94d6bce87e Bug 1518675 - disable browser_flexbox_container_and_item_accordion_state.js on linux and win for frequent failures r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D90785
2020-09-19 10:08:36 +00:00
Julian Descottes b1e5acf772 Bug 1665547 - [devtools] Throttle calls to _selectColor in SwatchColorPickerTooltip r=rcaliman
This revision introduces throttling for the color picker widget used in the DevTools Inspector Rules view.

The color picker widget can emit a lot a requests when clicking and dragging the mouse on the color "palette".
Locally I measured up to 200 requests per second. Since each request needs to apply the color to the element before the next request can be processed, this results in a bad user experience where requests will keep being applied for several seconds after the user finished using the widget.

Using throttling allows to cap the number of requests we emit, while still making sure the last value is correctly sent to the server.

Differential Revision: https://phabricator.services.mozilla.com/D90530
2020-09-18 15:01:52 +00:00
Razvan Caliman 20a40b7e0a Bug 1572662 - Remove unnecessary getRuleViewSelectorHighlighterIcon() from tests r=jdescottes
Depends on D90249

These calls to `getRuleViewSelectorHighlighterIcon` appear to [wait for the selector icon to be generated](https://searchfox.org/mozilla-central/rev/0c97a6410ff018c22e65a0cbe4e5f2ca4581b22e/devtools/client/inspector/rules/views/rule-editor.js#162-197) from an async operation. But they don't test anything to do with that DOM structure. Test seem to pass without it.

Differential Revision: https://phabricator.services.mozilla.com/D90250
2020-09-16 14:40:11 +00:00