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

20386 Коммитов

Автор SHA1 Сообщение Дата
Raphael Ferrand a289e424bb Bug 1579774 - New inactive CSS rule to show warning when width or height is used on ruby element. r=nchevobbe,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D151138
2022-08-02 07:22:18 +00:00
Nicolas Chevobbe cc96b2b490 Bug 1782488 - [devtools] Clear console service cache in browser_console_modes.js for non-fission case. r=jdescottes.
In the test, when fission isn't supported, we use Cu.reportError within
a SpecialPowers task, which puts the message in the console service cache.
If the test runs multiple time, the next iteration will run the test
with Fission support, which will consume cached messages, making the reportError
message appears more than we want.
This isn't a problem we can face in normal usage as when Fission is not supported,
we don't retrieve cached messages.
In order to fix the test failure, we simply clear the console service cache from
the content process.

Depends on D153327

Differential Revision: https://phabricator.services.mozilla.com/D153353
2022-08-02 06:54:06 +00:00
Andreea Pavel 9f8aa302a5 Bug 1767705 - disable browser_dbg-breakpoints-popup.js on OSX10.15 r=intermittent-reviewers,MasterWayZ DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D152828
2022-08-01 22:16:23 +00:00
Julian Descottes 4e1c8d6774 Bug 1776250 - [devtools] Show a badge in the markupview when children are unavailable r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D150189
2022-08-01 16:52:55 +00:00
Julian Descottes 7ff87bde3f Bug 1782038 - [devtools] Wait for node picker to be restarted in browser_aboutdebugging_addons_popup_picker.js r=nchevobbe
Depends on D153325

Differential Revision: https://phabricator.services.mozilla.com/D153326
2022-08-01 09:46:51 +00:00
Julian Descottes a27ff1bd68 Bug 1767695 - [devtools] Wait for storage table in browser_aboutdebugging_addons_debug_storage.js r=nchevobbe
This should fix the intermittents

> TEST-UNEXPECTED-FAIL | devtools/client/aboutdebugging/test/browser/browser_aboutdebugging_addons_debug_storage.js | undefined assertion name - Got +0, expected 2

Note that there are other existing intermittents (timeouts mostly) which I have not investigated

Differential Revision: https://phabricator.services.mozilla.com/D153325
2022-08-01 09:46:50 +00:00
Nicolas Chevobbe 549de6337b Bug 1782460 - [devtools] Add a _destroyed flag to WebConsoleUI. r=jdescottes.
We use the flag in various methods where we need to bail in such case.

Depends on D152031

Differential Revision: https://phabricator.services.mozilla.com/D153327
2022-08-01 09:33:20 +00:00
Nicolas Chevobbe caa3dd6326 Bug 1777253 - [devtools] Remove content messages from console when switching to parent process only mode. r=jdescottes.
We remove all messages from target destroy with `isModeSwitching`, as well as
prune unhandled resources in the WebconsoleWrapper queues.
Finally, we also cleanup the resource command pendingEvents so we don't receive
resources after the target was destroyed.

Differential Revision: https://phabricator.services.mozilla.com/D152031
2022-08-01 09:33:19 +00:00
Nicolas Chevobbe ee36d4491f Bug 1776853 - [devtools] Don't restore target configuration when it is destroyed because of switching mode. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D152887
2022-08-01 09:33:19 +00:00
Nicolas Chevobbe 27454e1bd3 Bug 1776853 - [devtools] Set Browser Console window title according to its current mode. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D152728
2022-08-01 09:33:18 +00:00
Nicolas Chevobbe 9324c7cc9a Bug 1776853 - [devtools] Show ChromeDebugToolbar in Browser Console. r=ochameau.
We need to load the toolbox.ftl bundle and wrap the WebConsole App in a LocalizationProvider
when we're in the Browser Console.

Differential Revision: https://phabricator.services.mozilla.com/D150576
2022-08-01 09:33:18 +00:00
Nicolas Chevobbe 6f8744625b Bug 1776853 - [devtools] Add BrowserToolbox-specific toolbar. r=ochameau,jdescottes,fluent-reviewers,flod.
This adds an additional toolbar in the Browser Toolbox which will contain specific
tools and options.
At the moment we only display a couple input button to be able to switch from
Parent process only to multiprocess mode.
We remove the similar UI in the iframe picker and adapt the existing test.

A trait is added to not show the toolbar when debugging server where we wouldn't
get the `isSwitchingMode` property in `onTargetDestroyed`, as this can cause
misbehavior in various tool when switching between different modes.

Differential Revision: https://phabricator.services.mozilla.com/D150575
2022-08-01 09:33:17 +00:00
Bogdan Szekely f9a469e37c Backed out 5 changesets (bug 1777253, bug 1776853) for causing devtools failures on browser_console_modes.js CLOSED TREE
Backed out changeset dbd68a657d6f (bug 1777253)
Backed out changeset f401150fb142 (bug 1776853)
Backed out changeset 209aade12fc6 (bug 1776853)
Backed out changeset dc24308ff8ef (bug 1776853)
Backed out changeset ea98ed858bae (bug 1776853)
2022-08-01 10:43:40 +03:00
Julian Descottes 1bfa64ee56 Bug 1775149 - [devtools] Fix intermittent failure for browser_toolbox_options_frames_button.js r=nchevobbe
Fixes the failure locally, rendering the iframe button might not be synchronous with updating the pref

Differential Revision: https://phabricator.services.mozilla.com/D153323
2022-08-01 07:14:26 +00:00
Nicolas Chevobbe 68cffb97a0 Bug 1777253 - [devtools] Remove content messages from console when switching to parent process only mode. r=jdescottes.
We remove all messages from target destroy with `isModeSwitching`, as well as
prune unhandled resources in the WebconsoleWrapper queues.
Finally, we also cleanup the resource command pendingEvents so we don't receive
resources after the target was destroyed.

Differential Revision: https://phabricator.services.mozilla.com/D152031
2022-08-01 06:55:56 +00:00
Nicolas Chevobbe ae822aadc6 Bug 1776853 - [devtools] Don't restore target configuration when it is destroyed because of switching mode. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D152887
2022-08-01 06:55:55 +00:00
Nicolas Chevobbe 8a932c2af2 Bug 1776853 - [devtools] Set Browser Console window title according to its current mode. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D152728
2022-08-01 06:55:55 +00:00
Nicolas Chevobbe c13021361c Bug 1776853 - [devtools] Show ChromeDebugToolbar in Browser Console. r=ochameau.
We need to load the toolbox.ftl bundle and wrap the WebConsole App in a LocalizationProvider
when we're in the Browser Console.

Differential Revision: https://phabricator.services.mozilla.com/D150576
2022-08-01 06:55:55 +00:00
Nicolas Chevobbe 9d9761ff10 Bug 1776853 - [devtools] Add BrowserToolbox-specific toolbar. r=ochameau,jdescottes,fluent-reviewers,flod.
This adds an additional toolbar in the Browser Toolbox which will contain specific
tools and options.
At the moment we only display a couple input button to be able to switch from
Parent process only to multiprocess mode.
We remove the similar UI in the iframe picker and adapt the existing test.

A trait is added to not show the toolbar when debugging server where we wouldn't
get the `isSwitchingMode` property in `onTargetDestroyed`, as this can cause
misbehavior in various tool when switching between different modes.

Differential Revision: https://phabricator.services.mozilla.com/D150575
2022-08-01 06:55:54 +00:00
Luke Swiderski af5850efb7 Bug 1696157 - Fix unexpected opening of breakpoints panel r=jdescottes
Previously when closing the breakpoints panel in secondary panes,
if an unselected call stack frame was selected, the breakpoints
panel would unexpectedly open.  This patch makes sure it remains
closed when a user has closed it and then clicks other elements
in the secondary panes.  The same issue was happening when
clicking the event listener breakpoint log checkbox, and or step
in, step out, and step over.  This patch should also fix
Bug 1755337.

Add mochitest.
Fix mochitest issues and move isFrameSelected to shared-head.js
Fix linting issues.
Merge new mochitests into browser_dbg-state-based-panels.js
Add condition to SecondaryPanes/index.js
Add PropTypes to index.js
Add logic to reducers/pause.js
Add selector to selectors/pause.js
Add breakpointsPane action to pause/actions
Update mochitests to test for edge case
Remove dbg_browser-breakpoints-secondary-pane.js
Fix linting
Make changes suggest by reviewer
Add additional mochitest for event breakoints log
Remove unnecessary parameters from action
Fix mozbuild order
Remove previewPausedLocation.js from mozbuild to fix conflict

Differential Revision: https://phabricator.services.mozilla.com/D149994
2022-07-29 19:00:06 +00:00
Nicolas Chevobbe 9a96297e35 Bug 1781726 - [devtools] Pass an `isModeSwitching` property to `onTargetDestroyed` callback param when switching modes. r=jdescottes,devtools-backward-compat-reviewers.
We pass `isModeSwitching` to `unwatchTargets` from the target command when the
pref is changed.
On the server, we then pass it to the various places which might call `notifyTargetDestroyed`,
so we can pass the flag in the `target-destroyed-form` event, which we can then
pass to TargetCommand#onDestroyed callbacks.`

Differential Revision: https://phabricator.services.mozilla.com/D152758
2022-07-29 14:30:07 +00:00
Nicolas Chevobbe dd4613555c Bug 1779173 - [devtools] Fix call to isMinified in Debugger to prevent performance issue when opening big single-line file. r=jdescottes.
Changes in Bug 1754407 caused a performance regression as it now triggered
syntax highlighting of big files, which we avoided before.
This is because we don't call `isMinified` with the expected type of data, causing
the file to not be seen as minified, and thus highlighting it.

Differential Revision: https://phabricator.services.mozilla.com/D153140
2022-07-29 13:52:50 +00:00
Nicolas Chevobbe 14ad2fbb20 Bug 1781269 - [devtools] Don't try to unwatch resource in stopWatchingNetworkResources when Console is closing. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D152889
2022-07-29 07:13:39 +00:00
Julian Descottes df78346aa4 Bug 1782077 - [devtools] Restore CSS specificity for Edit And Resend headers r=nchevobbe
The flex-wrap rule no longer had higher specificity than
    .network-monitor .tabpanel-summary-container {
        flex-wrap: wrap;
        padding-inline-start: 4px;
        margin-bottom: 5px;
    }

Which broke the layout.
https://searchfox.org/mozilla-central/rev/2bbb0c0a90df20702df8c8011a8996536a83cb75/devtools/client/netmonitor/src/assets/styles/HeadersPanel.css#166

I am adding a ".network-monitor" to selectors for which I started using a class instead of an ID.

Differential Revision: https://phabricator.services.mozilla.com/D153097
2022-07-29 05:36:22 +00:00
Julian Descottes 17d27fac52 Bug 1732123 - [devtools] Restart the nodepicker on webextension target navigation r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D126881
2022-07-26 15:05:13 +00:00
Julian Descottes 1322be9285 Bug 1767792 - [devtools] Ignore errors in Firefox data provider if clear was called mid-flight r=nchevobbe
depends on D152726

https://searchfox.org/mozilla-central/rev/d5edb4a4538657b7d691a41c00e6796a19ade6e7/devtools/client/netmonitor/src/har/test/browser_net_har_copy_all_as_har.js#79-104.

This method will perform 2 reloads immediately. This means that one of the requests will immediately cleared by the next navigation and if there was a pending call to FirefoxDataProvider.requestData, it will throw because the actor was already destroyed on the server.

Differential Revision: https://phabricator.services.mozilla.com/D152727
2022-07-26 15:03:02 +00:00
Julian Descottes 6173cfaf92 Bug 1777457 - [devtools] Update netmonitor test helpers when resources are cleared r=nchevobbe
There are potentially several sources for the recent netmonitor intermittent failures.
One of them is that we have several helpers to "wait" for requests, and they have a logic so that when they spot a request, they will wait for the request to be
completed.
However if a navigation occurs in the middle, the corresponding resource will be cleared and the updates will not be processed.
So here we emit a test-only event when the netmonitor attempts to clear resources, so that test helpers can update accordingly.

Differential Revision: https://phabricator.services.mozilla.com/D152726
2022-07-26 15:03:02 +00:00
Bogdan Szekely 55d622a34d Backed out changeset ffb9fa8567c4 (bug 1732123) for causing mochitest failures on browser_inspector_highlighter-07.js CLOSED TREE 2022-07-26 17:02:54 +03:00
Julian Descottes de0cbb7a9f Bug 1732123 - [devtools] Restart the nodepicker on webextension target navigation r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D126881
2022-07-26 12:58:14 +00:00
Nicolas Chevobbe d3d164c46d Bug 1780502 - [devtools] Unmount webconsole React node on destroy. r=ochameau,jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D152357
2022-07-26 08:55:02 +00:00
Alexandre Poirot 546c9e48cd Bug 1777203 - [devtools] Migrate SourceTree to be based on source actors. r=bomsy
This doesn't change anything. It actually complexify things a bit.
But this will be an helpful change we can do right away in order to help
create a unique Source object per URL (instead of per URL and target).

Differential Revision: https://phabricator.services.mozilla.com/D151553
2022-07-26 08:53:07 +00:00
Alexandre Poirot a7a60ed74b Bug 1777203 - [devtools] Generate SourceTree data directly from the selectors. r=bomsy
This introduces a new reducer in order to maintain a Source Tree data structure.

A Source Tree is composed of:

* Thread Items
  To designate targets/threads. These are the roots of the Tree if no project directory is selected.

* Group Items
  To designates the different domains used in the website.
  These are direct children of threads and may contain directory or source items.

* Directory Items
  To designate all the folders. Note that each every folder has an items.
  The Source Tree React component is doing the magic to coallesce folders made
  of only one sub folder.

* Source Items
  To designate sources. They are the leaves of the Tree.
  (we should not have empty directories.)

See the creation methods in the reducer to see the various attributes available on each Item type.

Project root implementation has been simplified, but there is still subtantial complexity around it.
Also, there is a behavior change. Now the project root is thread specific,
whereas before it could be per domain/URL across threads.
The complexity of it is around preserving the `uniquePath` across reloads.
Because uniquePath starts with the thread actor ID, it can't be preserved across reload.
Instead, we replace the thread actor ID with "top-level" string.
This means that project root isn't preserved across reload for non-top-level targets.

About `uniquePath` attribute available on all items,
this will be the Path in ManagedTree and Key in Tree components.
i.e. a unique identifier for any item in the Tree.

The isWebExtension check is simplified to fetch it from the thread object,
instead of having to involve the "CONNECT" action.

Depends on D151467

Differential Revision: https://phabricator.services.mozilla.com/D150548
2022-07-26 08:53:07 +00:00
Tooru Fujisawa 4e35a2bf9c Bug 1780543 - Part 3: Add mozilla/process-script environment as alias to frame-script. r=Standard8,perftest-reviewers,webcompat-reviewers,necko-reviewers,twisniewski,sparky,dragana
Differential Revision: https://phabricator.services.mozilla.com/D152428
2022-07-26 02:46:29 +00:00
Nicolas Chevobbe 336c62a210 Bug 1780931 - [devtools] Set color-mix pref in browser_outputparser.js. r=jdescottes.
The test is permafailing on beta because it was missing
the color-mix pref, which is only enabled on Nightly.

Differential Revision: https://phabricator.services.mozilla.com/D152614
2022-07-25 07:48:17 +00:00
Daniel Q 88ea7b032f Bug 1590653 - Fixed/improved alignment of "Learn more about performance" button with cache headers r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D150919
2022-07-25 07:07:12 +00:00
Hubert Boma Manilla b0fbdf3eab Bug 1767792 - [devtools] Wait for network event updates to complete r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D152514
2022-07-23 19:00:00 +00:00
Julian Descottes e7a6ff9a51 Bug 1778985 - [devtools] Add `wait` option to `getRuleViewProperty` r=Honza,nchevobbe
Update the test helper getRuleViewProperty to support an async version via a `wait` option.
When passed, the helper will keep polling until there is a valid ruleviewproperty which matches the arguments.
This can avoid race issues when the API is used too early.

In this changeset we also start using this API in all tests which either:
- used to manually poll getRuleViewProperty
- were disabled on linux for getRuleViewProperty issues
- are currently intermittent because of getRuleViewProperty

Differential Revision: https://phabricator.services.mozilla.com/D152286
2022-07-22 20:15:52 +00:00
Nicolas Chevobbe 5b191d6645 Bug 1777787 - [devtools] Display non-printable chars in CodeMirror. r=jdescottes.
This adds some character (e.g. right-to-left override) to CodeMirror default list of
special characters (see https://codemirror.net/5/doc/manual.html#option_specialChar).
We also take this opportunity to show the unicode value for those, instead of the
default red dot CodeMirror provides.

Differential Revision: https://phabricator.services.mozilla.com/D152421
2022-07-22 16:25:00 +00:00
Nicolas Chevobbe 6999bf6d9a Bug 1778443 - [devtools] Do not show contrast ratio information for color in color-mix. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D152409
2022-07-22 10:26:41 +00:00
Nicolas Chevobbe 10b395172f Bug 1778721 - [devtools] Fix Spectrum Learn More icon. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D152408
2022-07-22 10:26:40 +00:00
Cristian Tuns ccea8e742a Backed out changeset b5ed92b74381 (bug 1777787) for causing mochitest failures on browser_styleeditor_filesave.js CLOSED TREE 2022-07-22 05:27:11 -04:00
Julian Descottes adacd70304 Bug 1770361 - [devtools] Fix intermittent failures for browser_dbg-iframes.js r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D152491
2022-07-22 07:56:49 +00:00
Nicolas Chevobbe e6411c1eff Bug 1777787 - [devtools] Display non-printable chars in CodeMirror. r=jdescottes.
This adds some character (e.g. right-to-left override) to CodeMirror default list of
special characters (see https://codemirror.net/5/doc/manual.html#option_specialChar).
We also take this opportunity to show the unicode value for those, instead of the
default red dot CodeMirror provides.

Differential Revision: https://phabricator.services.mozilla.com/D152421
2022-07-22 05:53:44 +00:00
Butkovits Atila 9e1fda3cfe Bug 1767699 - disable browser_animation_pause-resume-button_end-time.js on Linux_64_debug for frequent failures. r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D152479
2022-07-22 04:34:35 +00:00
Butkovits Atila 828d977eb1 Bug 1777831 - disable browser_browser_toolbox_netmonitor.js on Linux_64_opt for frequent failures. r=intermittent-reviewers,MasterWayZ DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D152452
2022-07-21 21:54:00 +00:00
Alexandre Poirot 954880d34c Bug 1770361 - [devtools] Resume when the currently paused thread is destroyed. r=bomsy
Depends on D149361

Differential Revision: https://phabricator.services.mozilla.com/D146890
2022-07-21 21:46:03 +00:00
Hubert Boma Manilla 327d2c274a Bug 1779243 - [devtools] Revert clearing all pending breakpoints in the async store on removeall r=jdescottes
This reverts clearing the async store when all breakpoints are removed.
So only the breakpoints the user expects to get removed actually gets removed.

Differential Revision: https://phabricator.services.mozilla.com/D151884
2022-07-21 21:10:46 +00:00
Julian Descottes 44d25cad52 Bug 1780396 - [devtools] fix typo in docs for devtools throttling speeds r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D152380
2022-07-21 16:29:17 +00:00
Hubert Boma Manilla 2ac354b5ee Bug 1778672 - Disable Network listening in the Browser Toolbox until the Netmonitor is opened r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D151414
2022-07-21 08:58:14 +00:00
Nicolas Chevobbe b00af68841 Bug 1777249 - [devtools] Create CSS variable for alternate element background instead of abusing --theme-selection-background-hover. r=bomsy.
In a few places we were using the variable to have a different background than
the ones we have everywhere (blueish on light theme, dark-grey blue in dark mode).
In order to avoid any confusion, this patch adds a dedicated variable with a name
that should be more explicit.

Differential Revision: https://phabricator.services.mozilla.com/D150574
2022-07-21 05:36:40 +00:00
nchevobbe fe6819ba95 Bug 1780224 - [devtools] Use checked class instead of custom webconsole-evaluation-selector-button-non-top. r=ochameau.
This fixes styling issue when the button is focused and
a sub-level target is selected.


Depends on D150090

Differential Revision: https://phabricator.services.mozilla.com/D152183
2022-07-21 05:30:52 +00:00
Sylvestre Ledru 73d4a6ca57 no bug - Fix a few typo found by the next version of codespell r=marco
Differential Revision: https://phabricator.services.mozilla.com/D150321
2022-07-20 15:26:22 +00:00
Nicolas Chevobbe 30840e0ef7 Bug 1780418 - [devtools] Remove .only call in eager-ealuation.test.js. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D152280
2022-07-20 15:18:32 +00:00
Alexandre Poirot 4fe6703bf3 Bug 1778947 - [devtools] Compute source file extension once in its displayURL. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D151467
2022-07-20 14:25:02 +00:00
Nicolas Chevobbe 7878c0f5a0 Bug 1780156 - [devtools] Add EvaluationContextSelector to BrowserConsole. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D150090
2022-07-20 07:17:15 +00:00
Nicolas Chevobbe 777742c5aa Bug 1780156 - [devtools] Use private fields in BrowserConsole. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D150088
2022-07-20 07:17:15 +00:00
Alexandre Poirot e0cdb0b8f7 Bug 1779966 - [devtools] Fix showing sources in quick open modal when we reach the max results limit. r=bomsy
Unfortunately, we filter out sources *after* having formated them.
So we can avoid formatting all the sources here.

I haven't investigated, but it would be nice to be able to filter out the sources
before formating them.

Differential Revision: https://phabricator.services.mozilla.com/D152014
2022-07-19 20:35:24 +00:00
Cristian Tuns 9eb20170ef Backed out 3 changesets (bug 1780156, bug 1777249) for causing mochitest on failures browser_console_evaluation_context_selector.js CLOSED TREE
Backed out changeset 6040e53370dc (bug 1777249)
Backed out changeset 61c455e77edc (bug 1780156)
Backed out changeset 2acbfa79b63e (bug 1780156)
2022-07-19 13:35:45 -04:00
Julian Descottes 3186fa06b1 Bug 1778951 - [devtools] Update webextension target actor browsingcontext group id after addon reload r=rpl,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D151728
2022-07-19 16:42:03 +00:00
Nicolas Chevobbe a6587d6809 Bug 1777249 - [devtools] Create CSS variable for alternate element background instead of abusing --theme-selection-background-hover. r=bomsy.
In a few places we were using the variable to have a different background than
the ones we have everywhere (blueish on light theme, dark-grey blue in dark mode).
In order to avoid any confusion, this patch adds a dedicated variable with a name
that should be more explicit.

Differential Revision: https://phabricator.services.mozilla.com/D150574
2022-07-19 14:02:59 +00:00
Nicolas Chevobbe a6b5d5b4dc Bug 1780156 - [devtools] Add EvaluationContextSelector to BrowserConsole. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D150090
2022-07-19 14:02:58 +00:00
Nicolas Chevobbe 49704926df Bug 1780156 - [devtools] Use private fields in BrowserConsole. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D150088
2022-07-19 14:02:58 +00:00
Nicolas Chevobbe 80ff0adbd7 Bug 1780134 - [devtools] Guard EagerEvaluation rendering on undefined `terminalEagerResult`. r=jdescottes.
This was only _not_ rendering when `terminalEagerResult` was `null`, but with
Bug 1776376, we're getting `undefined` results in some case, which was crashing
the component.
While this should be fixed at an upper level, this patch makes the component a bit
more robust so we don't crash the whole console client.
A node test is added for basic rendering with various result values, and proper
mochitest will be added in follow-up patches in this queue.

Differential Revision: https://phabricator.services.mozilla.com/D152161
2022-07-19 12:28:38 +00:00
Emilio Cobos Álvarez bafca045c9 Bug 1779559 - Disable Windows' window occlusion in some more mochitests. r=sotaro
Differential Revision: https://phabricator.services.mozilla.com/D152105
2022-07-19 09:25:53 +00:00
Florian Quèze 634eb3ca7c Bug 1778282 - Add a power profiling feature, r=julienw,fluent-reviewers,flod.
Differential Revision: https://phabricator.services.mozilla.com/D151117
2022-07-18 21:27:24 +00:00
Julian Descottes cc08062262 Bug 1779972 - [devtools] Remove duplicated and unused ids in the Edit and Resend panel r=nchevobbe
Depends on D152008

Spotted a few HTML ids which were used in loops or shared components, and ended up duplicated

Differential Revision: https://phabricator.services.mozilla.com/D152060
2022-07-18 15:12:30 +00:00
Julian Descottes 2e66a46043 Bug 1779972 - [devtools] Add a tooltip for Edit and Resend names and values r=nchevobbe
Depends on D152006

Forcing name and values to one line, we should add a tooltip to show the whole content

Differential Revision: https://phabricator.services.mozilla.com/D152008
2022-07-18 15:12:29 +00:00
Julian Descottes 439f8332a1 Bug 1779972 - [devtools] Force edit and resend panel lines on a single line when not editing r=bomsy,nchevobbe
Each line of the edit and resend panel should no longer grow when resizing the panel
But when editing, we fallback to multiline

Differential Revision: https://phabricator.services.mozilla.com/D152006
2022-07-18 15:12:29 +00:00
Alexandre Poirot 890956dcd2 Bug 1619296 - [devtools] Make the TargetCommand populate its own redux store. r=nchevobbe
This allows to pull out target management code out from toolbox back to TargetCommand.
And then allows to more easily share this store in the context of the browser console,
where there is no toolbox.

This is also an interesting example on how commands may populate redux store directly
so that we avoid having each panel translate commands's event into actions.

An alternative here, would be to introduce some generic layer between commands and redux.
Which would be the glue between a command and populating a store.

Differential Revision: https://phabricator.services.mozilla.com/D151493
2022-07-18 14:54:43 +00:00
Nicolas Chevobbe 378245e250 Bug 1779043 - [devtools] Fix jumping to media query in inline sheets. r=jdescottes.
We directly pass the editor stylesheet in the `location` parameter that is passed
to `jumpToLocation`.

`jumpToLocation` wasn't covered in any test, so we modify `browser_styleeditor_media_sidebar.js`
to add coverage for it.
This is also testing Bug 1779180 which is in the same stack.

Differential Revision: https://phabricator.services.mozilla.com/D151597
2022-07-18 12:13:56 +00:00
Hubert Boma Manilla 15ba96c004 Bug 1764349 - [devtools] Add clear functionality for network resources r=ochameau
Enable clearing of network resources on all layers(frontend, resource layer, server) when the
user click the clear button.

Differential Revision: https://phabricator.services.mozilla.com/D148694
2022-07-18 10:13:58 +00:00
Bogdan Szekely a5bbfdd85a Backed out 2 changesets (bug 1779180, bug 1779043) for causing mochitest failures on test_css-logic-media-queries.html
CLOSED TREE

Backed out changeset 95e34a0fbb39 (bug 1779043)
Backed out changeset 0931519b4ef2 (bug 1779180)
2022-07-18 10:37:32 +03:00
Nicolas Chevobbe cd5945b68a Bug 1779043 - [devtools] Fix jumping to media query in inline sheets. r=jdescottes.
We directly pass the editor stylesheet in the `location` parameter that is passed
to `jumpToLocation`.

`jumpToLocation` wasn't covered in any test, so we modify `browser_styleeditor_media_sidebar.js`
to add coverage for it.
This is also testing Bug 1779180 which is in the same stack.

Differential Revision: https://phabricator.services.mozilla.com/D151597
2022-07-18 07:05:18 +00:00
Thomas Wisniewski f02ee7fa18 Bug 1762462 - Make tests in devtools/client/storage/test/ reflect Always Partitioning Storage; r=jdescottes
Depends on D148042

Differential Revision: https://phabricator.services.mozilla.com/D148043
2022-07-15 13:26:17 +00:00
Kagami Sascha Rosylight cdb7d00f1e Bug 1354500 - Part 2: Remove IDBDatabase#storage r=dom-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D151417
2022-07-15 01:55:26 +00:00
Cristian Tuns 2f5fe88da3 Backed out 19 changesets (bug 1758745, bug 1758740, bug 1762462, bug 1779603) for causing mochitest failures on browser_partitionedConsoleMessage.js CLOSED TREE
Backed out changeset e3c8cd6f00b6 (bug 1779603)
Backed out changeset 4e46a6f209b4 (bug 1762462)
Backed out changeset 00c0c6314640 (bug 1762462)
Backed out changeset 8f11221f859f (bug 1762462)
Backed out changeset ffbf90e3bbab (bug 1762462)
Backed out changeset 0c760428dfec (bug 1762462)
Backed out changeset 7c99293cc8f9 (bug 1762462)
Backed out changeset 92bd237a95e1 (bug 1762462)
Backed out changeset 74539a3cc7fc (bug 1762462)
Backed out changeset acf08a10c6fb (bug 1762462)
Backed out changeset 0cf191a7739f (bug 1762462)
Backed out changeset 030c276d6669 (bug 1762462)
Backed out changeset a88a099c684d (bug 1762462)
Backed out changeset cbd69786a24b (bug 1762462)
Backed out changeset e5e0655206a8 (bug 1762462)
Backed out changeset 707f9dfed501 (bug 1762462)
Backed out changeset 619e4bb01a81 (bug 1762462)
Backed out changeset 02b7641683b0 (bug 1758745)
Backed out changeset a2f110442038 (bug 1758740)
2022-07-14 17:26:17 -04:00
Thomas Wisniewski 657bf013fa Bug 1762462 - Make tests in devtools/client/storage/test/ reflect Always Partitioning Storage; r=jdescottes
Depends on D148042

Differential Revision: https://phabricator.services.mozilla.com/D148043
2022-07-14 19:26:26 +00:00
Norisz Fay 388468729f Backed out 18 changesets (bug 1762462, bug 1758745, bug 1758740) for causing mochitest failures on test_storage_copied.html
Backed out changeset a27ae15872a9 (bug 1762462)
Backed out changeset b7d979a36324 (bug 1762462)
Backed out changeset 6249efe40513 (bug 1762462)
Backed out changeset 1e81ed3014a0 (bug 1762462)
Backed out changeset 92cec5f5db1c (bug 1762462)
Backed out changeset fa3c45b4de5c (bug 1762462)
Backed out changeset 64df67f43ad7 (bug 1762462)
Backed out changeset d66dd76ec2b6 (bug 1762462)
Backed out changeset 4f8aaba02a03 (bug 1762462)
Backed out changeset 81eb7d60dea9 (bug 1762462)
Backed out changeset 01504f5f818a (bug 1762462)
Backed out changeset 2615b571c9ba (bug 1762462)
Backed out changeset 73ed8be3f117 (bug 1762462)
Backed out changeset edb94ba8ec59 (bug 1762462)
Backed out changeset 21dd6fdc672e (bug 1762462)
Backed out changeset 31a70f9ad879 (bug 1762462)
Backed out changeset 5261ee5a2368 (bug 1758745)
Backed out changeset ad6ffd85ef3c (bug 1758740)
2022-07-14 03:16:08 +03:00
Thomas Wisniewski ef5b4e4444 Bug 1762462 - Make tests in devtools/client/storage/test/ reflect Always Partitioning Storage; r=jdescottes
Depends on D148042

Differential Revision: https://phabricator.services.mozilla.com/D148043
2022-07-13 22:44:58 +00:00
Nicolas Chevobbe 96eb3f5022 Bug 1779164 - [devtools] Don't override CodeMirror search UI in netmonitor response panel. r=bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D151577
2022-07-13 08:09:23 +00:00
criss 3dd6f50995 Backed out changeset ac6b6390147e (bug 1779164) for causing mochitest failures on browser_net_filter-value-preserved.js. CLOSED TREE 2022-07-12 19:25:40 +03:00
Nicolas Chevobbe 75984617a6 Bug 1779164 - [devtools] Don't override CodeMirror search UI in netmonitor response panel. r=bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D151577
2022-07-12 13:32:46 +00:00
Alexandre Poirot 922cfee9b0 Bug 1778647 - [devtools] Store source's framework only once, in symbols. r=bomsy
We are currently duplicated source's framework in symbols and tabs reducers.
This is uncessary and confusing. And this possibly lead to more state/component updates.

This is mostly used to computed the source icon.
I extented test coverage to better cover the behavior of SourceIcon,
while simplifying a few things around this component by unifying the various places
where we compute the final icon, so that now it is only done by getSourceClassnames
and modifier.

Differential Revision: https://phabricator.services.mozilla.com/D151358
2022-07-12 11:55:43 +00:00
Alexandre Poirot f51d0a4a69 Bug 1778514 - [devtools] Avoid mutating source objects because of relative url computation. r=bomsy
While I'm around QuickOpen modal, I also cleanup a few things around formatSources
and avoid computing more formatting than what the modal will display.

Differential Revision: https://phabricator.services.mozilla.com/D151285
2022-07-12 11:55:43 +00:00
Alexandre Poirot 506e9307bc Bug 1778078 - [devtools] Move blackbox state to a dedicated reducer and selectors. r=bomsy
This allows to make the reducer Source object fully immutable.
`isBlackBoxed` was the last mutable attribute of it.

Doing this help pass along source object without having to care if it will ever update.
This should also help reduce the number of unecessary update to components
which manipulate sources but ignore their blackbox state.

Differential Revision: https://phabricator.services.mozilla.com/D151005
2022-07-12 11:55:42 +00:00
Sebastian Zartner 245d56e9c5 Bug 1734840 - Added parsing for custom formatters. r=devtools-backward-compat-reviewers,nchevobbe
The first step of parsing custom formatters for objects is checking a website for a global array called `devtoolsFormatters`.
If this array exists, it is looped over to find a custom formatter that can handle the object.
In case there is one, its `header` and `hasBody` methods are executed using `makeSideeffectFreeDebugger()` to ensure to get a result without causing any negative side effects.
Those results are then returned together with the index of the custom formatter.
This index is used in case the custom formatter's body is expandedö. In that case the `body` property is also executed in a safe way and its value then returned.

A test covers basic support of custom formatting for objects. More advanced tests will be added in bug 1752759.

Differential Revision: https://phabricator.services.mozilla.com/D146389
2022-07-12 06:29:48 +00:00
Tooru Fujisawa 6907e51f5c Bug 1777486 - Part 4: Migrate XPCOMUtils.jsm consumers with CommonJS require. r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D151216
2022-07-12 04:21:35 +00:00
Tooru Fujisawa 54623364da Bug 1777486 - Part 2: Migrate XPCOMUtils.jsm consumers with automatic migration. r=webdriver-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,kmag,owlish,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D151214
2022-07-12 04:21:34 +00:00
Tooru Fujisawa 7a765c385a Bug 1777486 - Part 0: Use AppConstants.jsm in Cu.getGlobalForObject consumer. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D151337
2022-07-12 04:21:33 +00:00
Andreea Pavel b328806a08 Backed out changeset 47dea14575f1 (bug 1764349) for failing devtools at browser_net_stacktraces-visibility.js on a CLOSED TREE 2022-07-11 22:42:09 +03:00
Andreea Pavel 7738a75fdd Backed out 11 changesets (Bug 1777486) for failing bc at browser_startup.js on a CLOSED TREE
Backed out changeset b6c4c386f1a6 (Bug 1777486)
Backed out changeset 195cc2de8433 (Bug 1777486)
Backed out changeset 20c746fb1648 (Bug 1777486)
Backed out changeset d5fd8173d62d (Bug 1777486)
Backed out changeset 6d758fab5a3e (Bug 1777486)
Backed out changeset e938b601ba15 (Bug 1777486)
Backed out changeset 0c4ea0b9416b (Bug 1777486)
Backed out changeset 0559c53cc668 (Bug 1777486)
Backed out changeset eea573d3a9f9 (Bug 1777486)
Backed out changeset 9ce3a6496a49 (bug 1777486)
Backed out changeset b0867652fc48 (bug 1777486)
2022-07-11 22:24:40 +03:00
Hubert Boma Manilla 1bf7326c9f Bug 1764349 - [devtools] Add clear functionality for network resources r=ochameau
Enable clearing of network resources on all layers(frontend, resource layer, server) when the
user click the clear button.

Differential Revision: https://phabricator.services.mozilla.com/D148694
2022-07-11 16:33:03 +00:00
Tooru Fujisawa 2244a9c200 Bug 1777486 - Part 4: Migrate XPCOMUtils.jsm consumers with CommonJS require. r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D151216
2022-07-11 15:09:14 +00:00
Tooru Fujisawa 8cd6ed7409 Bug 1777486 - Part 2: Migrate XPCOMUtils.jsm consumers with automatic migration. r=webdriver-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,kmag,owlish,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D151214
2022-07-11 15:09:13 +00:00
Tooru Fujisawa fe1f9b330b Bug 1777486 - Part 0: Use AppConstants.jsm in Cu.getGlobalForObject consumer. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D151337
2022-07-11 15:09:12 +00:00
Tooru Fujisawa 83cffbf4a5 Bug 1667455 - Part 23: Update DevTools TypeScript support. r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D151270
2022-07-11 12:41:58 +00:00
Tooru Fujisawa 5e5a4576f6 Bug 1667455 - Part 17: Update devtools stub. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D150906
2022-07-11 12:41:55 +00:00
Tooru Fujisawa 7539547097 Bug 1667455 - Part 8: Stop importing Services.jsm from chrome-priv JS code, other cases. r=kmag,necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D150897
2022-07-11 12:41:52 +00:00
Tooru Fujisawa c2a1238034 Bug 1667455 - Part 7: Stop importing Services.jsm from chrome-priv JS code, lazy cases. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D150896
2022-07-11 12:41:51 +00:00
Tooru Fujisawa 47c8f80432 Bug 1667455 - Part 6: Stop importing Services.jsm from chrome-priv JS code, non-top-level or multi-line cases. r=kmag,perftest-reviewers,AlexandruIonescu,sparky
Differential Revision: https://phabricator.services.mozilla.com/D150895
2022-07-11 12:41:51 +00:00