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

25489 Коммитов

Автор SHA1 Сообщение Дата
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
Tooru Fujisawa a6aabba5a4 Bug 1780543 - Part 1: Use eslint-env mozilla/frame-script consistently in frame script. r=Standard8,webdriver-reviewers,geckoview-reviewers,jdescottes,calu
Differential Revision: https://phabricator.services.mozilla.com/D152426
2022-07-26 02:46:28 +00:00
Tooru Fujisawa 60be63b763 Bug 1732543 - Part 2: Add eager evaluation testcase. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D152350
2022-07-26 02:37:51 +00:00
Tooru Fujisawa b3c8ed8937 Bug 1609432 - Part 6: Add eager evaluation testcase. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D152348
2022-07-26 02:37:51 +00:00
Tooru Fujisawa 734c6f314c Bug 1609432 - Part 1: Add more functions to eager evaluation allowlist. r=nchevobbe
RegExp.prototype methods called inside String.prototype.{match,search,replace}
should be allowed.

Differential Revision: https://phabricator.services.mozilla.com/D152343
2022-07-26 02:37:49 +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
Julian Descottes f04f586b94 Bug 1780332 - [devtools] Update MDN compat data (2022 July 18th week) r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D152249
2022-07-20 08:54:06 +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
Julian Descottes d068c092b3 Bug 1778270 - [devtools] Remove outdated WebIDE documentation r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D152172
2022-07-20 06:55:57 +00:00
Nicolas Chevobbe ee9725f1e2 Bug 1779847 - [devtools] Add chromeContext property to logPoint messages. r=bomsy.
We only set it to true if the target the breakpoint
was hit in is a parent process target, which should
be enough.

Differential Revision: https://phabricator.services.mozilla.com/D152018
2022-07-20 05:26:57 +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
Sylvestre Ledru cfaffe8d11 Bug 1765645 - devtools/docs - fix the link to the toolbox r=nchevobbe DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D152148
2022-07-19 09:06:23 +00:00
Sylvestre Ledru 0afc24e913 Bug 1773598 - devtools/docs: remove a html artifact DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D152092
2022-07-19 07:37:46 +00:00
Sylvestre Ledru 76fd00fb39 Bug 1770589 - devtools/doc: fix a typo DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D152086
2022-07-19 07:37:01 +00:00
Sylvestre Ledru 07e3132653 no bug - devtools/doc - remove firefox 68 docs r=nchevobbe DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D152103
2022-07-19 06:58:56 +00:00
Sylvestre Ledru a2e2e9b72e Bug 1765029 - devtools/docs: remove an old link r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D152085
2022-07-19 06:58:27 +00:00
Nicolas Chevobbe 30dc145ca5 Bug 1555551 - [devtools] Enable test case checking spinbutton inside number input doesn't trigger FORM_NO_NAME error. r=Jamie.
It looks like the underlying issue was fixed at some point
as the test passes with the test case enabled.

Differential Revision: https://phabricator.services.mozilla.com/D151993
2022-07-19 05:06:28 +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
Nicolas Chevobbe 1e5e7186d7 Bug 1779180 - [devtools] Replace usages of InspectorUtils.getRuleLine with InspectorUtils.getRelativeRuleLine. r=jdescottes.
For <style> elements, `getRelativeRuleLine` gives us the position of the rule
inside a stylesheet, when `getRuleLine` gives the position of the rule relatively
to the whole HTML source.
The former is more accurate for us when we want to display such line number in
DevTools UI (for example in the StyleEditor media query sidebar).

Test will be added in next patch of this queue.

Differential Revision: https://phabricator.services.mozilla.com/D151596
2022-07-18 12:13:55 +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
Nicolas Chevobbe 597135d899 Bug 1779180 - [devtools] Replace usages of InspectorUtils.getRuleLine with InspectorUtils.getRelativeRuleLine. r=jdescottes.
For <style> elements, `getRelativeRuleLine` gives us the position of the rule
inside a stylesheet, when `getRuleLine` gives the position of the rule relatively
to the whole HTML source.
The former is more accurate for us when we want to display such line number in
DevTools UI (for example in the StyleEditor media query sidebar).

Test will be added in next patch of this queue.

Differential Revision: https://phabricator.services.mozilla.com/D151596
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
Kagami Sascha Rosylight e87a2aeb9c Bug 1769290 - Part 25: Apply mozilla-js-handle-rooted-typedef against devtools r=andi
There are some uses without `JS::` namespace in `devtools/`. The autofix adds `JS::` everywhere and this patch intentionally keeps that for consistency, given that most of the code uses `JS::`.

Differential Revision: https://phabricator.services.mozilla.com/D151792
2022-07-14 17:00:25 +00:00
Barret Rennie bf1182a5a0 Bug 1779574 - Use OS.File to read empty files in DevTools content process r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D151827
2022-07-14 13:33:37 +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
Boris Chiou 41a30d913e Bug 1293490 - Part 1: Implement CSS animation-composition longhand in style system. r=emilio
This patch introduces animation-composition longhand but we don't
accept it in @keyframe rule for now. I will support this for @keyframe
in the patch series.

Besides, the shorthand of animation doesn't include animation-composition.
The spec issue is: https://github.com/w3c/csswg-drafts/issues/6946.
We could fix the shorthand once this spec issue gets updated.

Differential Revision: https://phabricator.services.mozilla.com/D150299
2022-07-12 19:02:03 +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
Julian Descottes a5ef0bcfcc Bug 1772124 - [devtools] Remove extra console.log in devtools/server/actors/network-monitor/network-observer.js r=devtools-reviewers,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D151589
2022-07-12 10:57:15 +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 b6bce4ef39 Bug 1777486 - Part 3: Migrate XPCOMUtils.jsm consumers with manual rewrite. r=kmag
Migrate some files that's not covered by ./mach esmify

Differential Revision: https://phabricator.services.mozilla.com/D151215
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
mleclair f15f91dc56 Bug 1772124 - Added Glean metrics to track different type of resources for Early Hints r=dragana,mbucher,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D148741
2022-07-11 22:46:22 +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 f06a07101b Bug 1777486 - Part 3: Migrate XPCOMUtils.jsm consumers with manual rewrite. r=kmag
Migrate some files that's not covered by ./mach esmify

Differential Revision: https://phabricator.services.mozilla.com/D151215
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 c26c3f5551 Bug 1667455 - Part 14: Stop importing Services.jsm in documents. r=kmag,necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D150903
2022-07-11 12:41:54 +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
Tooru Fujisawa bf93d07148 Bug 1667455 - Part 5: Stop importing Services.jsm from chrome-priv JS code, top-level single-line cases. r=kmag,webdriver-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,extension-reviewers,application-update-reviewers,pip-reviewers,twisniewski,m_kato,jdescottes,mconley,AlexandruIonescu,mossop
Differential Revision: https://phabricator.services.mozilla.com/D150894
2022-07-11 12:41:50 +00:00
Tooru Fujisawa f3a8c52c53 Bug 1667455 - Part 4: Stop importing Services.jsm from JSM. r=kmag,webdriver-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,application-update-reviewers,pip-reviewers,twisniewski,devtools-reviewers,m_kato,jdescottes,ochameau,mconley,sfoster,AlexandruIonescu
Differential Revision: https://phabricator.services.mozilla.com/D150893
2022-07-11 12:41:50 +00:00
Tooru Fujisawa a8a2af4b5c Bug 1667455 - Part 2.6: Export Services from Devtools require("chrome"). r=kmag,devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D150908
2022-07-11 12:41:49 +00:00
Tooru Fujisawa 31b421254e Bug 1667455 - Part 2.5: Update DevTools TypeScript support. r=devtools-reviewers,julienw
Differential Revision: https://phabricator.services.mozilla.com/D150909
2022-07-11 12:41:49 +00:00
Tooru Fujisawa badd55d158 Bug 1667455 - Part 2: Add Services to system globals in ESLint. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D150891
2022-07-11 12:41:48 +00:00
Julian Descottes af89313931 Bug 1767679 - [devtools] Wait for element to be ready in browser_rules_colorpicker-and-image-tooltip_01.js r=Honza
No conclusive results on try. Waiting for the property container to be ready should at least help invsestigate if we get more failures

Differential Revision: https://phabricator.services.mozilla.com/D151425
2022-07-11 09:34:33 +00:00
Nicolas Chevobbe c8b4947fdc Bug 1759458 - [devtools] Make Netmonitor Clear/Send buttons always visible. r=bomsy.
The container is turned into a footer and moved outside of
its current parent so it always stick to the bottom.
CSS was tweaked to keep it nice.

Differential Revision: https://phabricator.services.mozilla.com/D151284
2022-07-08 09:47:14 +00:00
lyavor dfd3fc0633 Bug 1778442 - Update devtools/client/shared test files to use https r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D151243
2022-07-08 08:14:33 +00:00
Nicolas Chevobbe 2b6a1911f7 Bug 1777587 - [devtools] Preview support for URLSearchParams objects. r=ochameau.
Also add an `<entries>` node in the ObjectInspector for URLSearchParams instances.

Differential Revision: https://phabricator.services.mozilla.com/D150810
2022-07-08 05:46:47 +00:00
Nicolas Chevobbe 5d103461fc Bug 1695382 - [devtools] Add color swatches inside `color-mix()`. r=jdescottes.
This is done by adding `color-mix` to `COLOR_TAKING_FUNCTIONS`.
Test case is added, alongside with cases for other functions in which we
should show color swatches.

Differential Revision: https://phabricator.services.mozilla.com/D151224
2022-07-08 05:02:03 +00:00
Julian Descottes d6eac88099 Bug 1778432 - [devtools] Guard against missing Services.profiler in Actor:_sendEvent r=nchevobbe
The Services object is replaced by a mock in the worker loader so Services.profiler might be undefined.

Differential Revision: https://phabricator.services.mozilla.com/D151211
2022-07-07 13:43:56 +00:00
Julian Descottes c5f7c7111f Bug 1777296 - [devtools] Bail out of getAddonIdForWindowGlobal for geckoview windowglobals missing principal r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D151177
2022-07-07 13:34:30 +00:00
Tooru Fujisawa cdedb463df Bug 1778314 - Support system ESM in devtools loader. r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D151212
2022-07-07 11:54:06 +00:00
Emilio Cobos Álvarez 2c2f20586e Bug 1778396 - Add color-mix to DevTools autocomplete. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D151180
2022-07-07 10:29:59 +00:00
Emilio Cobos Álvarez d6817e2c7f Bug 1778281 - Don't override effective color-scheme if there's no theme. r=jdescottes
In the browser toolbox window, we include common.css, but we don't
apply the theme-dark/theme-light classes, so we end up overriding the
color-scheme to light.

Instead, only override color-scheme for theme-light/theme-dark, so that
context menus and so have the right appearance.

Differential Revision: https://phabricator.services.mozilla.com/D151131
2022-07-07 10:11:19 +00:00
Butkovits Atila da2b7986d0 Backed out changeset 8cc6f6f552a3 (bug 1772124) for causing failures at browser_103_preload.js. CLOSED TREE 2022-07-07 03:56:04 +03:00
mleclair 2ff75f9613 Bug 1772124 - Added Glean metrics to track different type of resources for Early Hints r=dragana,mbucher,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D148741
2022-07-06 23:16:41 +00:00
Hubert Boma Manilla 5f3826ec54 Bug 1778113 - Use thicker icons for Watch expressions and breakpoints r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D151023
2022-07-06 21:57:31 +00:00
Hubert Boma Manilla 53f8a54f71 Bug 1742774 - [devtools] Add button to remove all XHR Breakpoints r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D150351
2022-07-06 21:57:30 +00:00
Hubert Boma Manilla 4644b088bf Bug 1742774 - [devtools] Add remove all breakpoints button in breakpoints header r=nchevobbe
In this patch
 - Added remove all breakpoints button in the Breakpoints list header bar
 - Start clearing `asyncStore.pendingBreakpoints` when we remove all the breakpoints
 - Add jest tests

Differential Revision: https://phabricator.services.mozilla.com/D150350
2022-07-06 21:57:30 +00:00
Emilio Cobos Álvarez 4d2c8e40bc Bug 1778062 - Update some test expectations.
MANUAL PUSH: Orange fix CLOSED TREE
2022-07-06 15:24:00 +02:00
Ziran Sun 435c380565 Bug 1778062 - Add support for parsing the `contain-intrinsic-size` property from the CSS-sizing specification. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D151001
2022-07-06 11:47:51 +00:00
Julian Descottes 3047c5cfeb Bug 1775071 - [devtools] Guard profiler markers for DevTools actor events behind a profiler.IsActive check r=ochameau
DevTools actor events can be a very hot path and we should avoid computing the marker label if possible.

Differential Revision: https://phabricator.services.mozilla.com/D150996
2022-07-06 09:38:53 +00:00
Nicolas Chevobbe cbbceb9106 Bug 1775295 - Fix browser_browser_toolbox_netmonitor.js intermittent. r=bomsy.
The test seemed to fail because the browsers was firing requests we weren't expecting.
To fix this, we set a few preferences that should prevent such requests to be made.

Differential Revision: https://phabricator.services.mozilla.com/D150953
2022-07-06 09:16:26 +00:00
Alexandre Poirot 080a36d30c Bug 1777459 - [devtools] Set final group name for Webpack and Angular sources. r=bomsy
See previous changeset. This applies the same simplification for Webpack and Angular groups.

Differential Revision: https://phabricator.services.mozilla.com/D150746
2022-07-05 12:26:10 +00:00
Alexandre Poirot 636aa92ceb Bug 1777459 - [devtools] Simplify code to show extension name in SourceTree groups. r=bomsy
The "group" is defined by getDisplayURL method.
Instead of modifying late in the UI, we should rather set it to the right value upfront.

Also avoid computing `extensionName` from the actor when the URL isn't an extension one.

Differential Revision: https://phabricator.services.mozilla.com/D150745
2022-07-05 12:26:10 +00:00
Julian Descottes 23e98e511e Bug 1778012 - [devtools] Remove backward compatibility code for worker descriptor/target attach r=devtools-reviewers,devtools-backward-compat-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D150979
2022-07-05 10:29:08 +00:00
Iulian Moraru a321d33992 Backed out changeset 0e4a2312afb7 (bug 1775295) for causing failures on browser_browser_toolbox_print_preview.js. CLOSED TREE 2022-07-05 15:09:18 +03:00
Nicolas Chevobbe 794f51d08e Bug 1775295 - Fix browser_browser_toolbox_netmonitor.js intermittent. r=bomsy.
The test seemed to fail because the browsers was firing requests we weren't expecting.
To fix this, we set a few preferences that should prevent such requests to be made.

Differential Revision: https://phabricator.services.mozilla.com/D150953
2022-07-05 07:22:36 +00:00
Julian Descottes 4df4028564 Bug 1778009 - [devtools] Stop expecting IE warnings in compatibility panel tests r=daisuke
The compatibility panel tests should now work both with the current browser data and with the update from D150961
We will still need to find a reliable way to avoid breakage when a data dump occurs.

Differential Revision: https://phabricator.services.mozilla.com/D150981
2022-07-04 22:50:08 +00:00
Hubert Boma Manilla 0c87a155e7 Bug 1775058 - [devtools] Functionality to disable webconsole messages r=nchevobbe
This introduces functionality to support disabling weconsole messages.
Also introduces code to disable all network messages, which would be
used by the netmonitor.

You'll probably need the fullstack of patches to test easily

Will add mochitest in a followup

Differential Revision: https://phabricator.services.mozilla.com/D149753
2022-07-04 17:18:50 +00:00
Hubert Boma Manilla bb3c0a8528 Bug 1775058 - [devtools] Add support for custom titles to MessageIcon r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D150474
2022-07-04 17:18:49 +00:00
Nicolas Chevobbe 5f379dc0b9 Bug 1776145 - [devtools] Remove WebConsoleConnectionProxy. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D150087
2022-07-04 13:27:52 +00:00
Nicolas Chevobbe c6f171a8b1 Bug 1776145 - [devtools] Remove unnecessary WebConsoleUI additionalProxies. r=ochameau,devtools-backward-compat-reviewers,jdescottes.
`WebConsoleConnectionProxy` is now only used for:
- listening to `lastPrivateContextExited`, which can be done from the top-level
  console front instead
- setting `NetworkMonitor.saveRequestAndResponseBodies` for toolbox we don't have
  network resource support for, which would be better done in `startWatchingNetworkResources`.

This means we don't need to keep a Map of additional proxies.
The only impact is on `clearMessagesCache`, where we now fetch all fronts with
`getAllFronts` instead of looping through the Map of additional proxies.
This change highlighted some race condition in tests, as it's now slightly slower.
So we add a new `clearMessagesCacheAsync` function, which is doing the same thing
as `clearMessagesCache`, except it's not `oneway`, so we can know when the cache
was indeed cleared, and we emit an event to indicate when the cache was cleared.
We can't simply remove `oneway` from `clearMessagesCache` as it causes backward
compatibility issues we can't avoid.
This also highlighted an issue with the cache not being cleared on `console.clear`
when it is batched, so we fix this (a test was failing without it).

The next patch in the queue will completely remove `WebConsoleConnectionProxy`.

Differential Revision: https://phabricator.services.mozilla.com/D150085
2022-07-04 13:27:51 +00:00
Tooru Fujisawa f490afb1e0 Bug 1777829 - Fix DevTools stub generator. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D150885
2022-07-04 10:33:41 +00:00
Julian Descottes 382e41ec64 Bug 1777924 - [devtools] Use legacy wrapper in update_remote_settings_records.mjs for forward compatibility with Node 16+ r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D150939
2022-07-04 09:43:11 +00:00
Josue fc9ff491a4 Bug 1727753 - [devtools] Ogg file request is not displayed in Network Monitor when media switch is selected r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D150072
2022-07-04 08:35:45 +00:00
Daniel Q 0c1db959ed Bug 1777790 - Fixed typo "PATH" to "PATCH" in http custom request panel drop down list. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D150886
2022-07-04 08:07:59 +00:00
Raphael Ferrand 973db08ed9 Bug 1583910 - New inactive CSS rule to show warning when border-image is made inactive by border-collapse. r=nchevobbe,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D147205
2022-07-04 07:59:23 +00:00
Julian Descottes f878dcc8df Bug 1767684 - [devtools] Skip browser_rules_cycle-angle.js on linux r=devtools-reviewers,nchevobbe
I checked that skipping the test does not move the intermittent to the next test.
I am not sure what makes this test problematic, I suppose this has to do with initializing widgets in the inspector to handler filters.
Let's skip this on linux for now.

Differential Revision: https://phabricator.services.mozilla.com/D150859
2022-07-04 06:30:51 +00:00
Alexandre Poirot e8f4fdb9a5 Bug 1777215 - [devtools] Avoid expanding the tree manually in browser_browser_toolbox_debugger.js r=bomsy
In the following patches, this test started failing because of some
race condition between the test trying to expand the tree
and selectSource also trying to expand the tree.
We ended up we the tree being collapsed.

We no longer have to manually expand the tree as selectSource will now do it.

Differential Revision: https://phabricator.services.mozilla.com/D150547
2022-06-30 18:31:40 +00:00
Alexandre Poirot 1baf4ba217 Bug 1777215 - [devtools] Avoid changing expanded state if it didn't change. r=bomsy
This was causing infinite look in my following patches.
I don't get why this wasn't an issue before, but it sounds good doing
to avoid unecessary component updates.

Differential Revision: https://phabricator.services.mozilla.com/D150546
2022-06-30 18:31:39 +00:00
Alexandre Poirot a6df9db43b Bug 1777211 - [devtools] Fix alignement of sub folders when picking a project root. r=bomsy
This css rules comes from ancient time and couldn't find the reason why this was added.
This is actually the immediate children of the project root which are misaligned.
That get an extra padding that make them look like they are in a sub folder.
I do not see the value of adding an extra padding. We still have some margin even after removing it.

Differential Revision: https://phabricator.services.mozilla.com/D150545
2022-06-30 18:31:39 +00:00
Alexandre Poirot bc06a531a1 Bug 1777280 - [devtools] Compute displayURL for each source only once. r=bomsy
By moving the computation of displayURL from the SourceTree selector to the sources reducer,
we ensure computing it only once. We could also get rid of all the redundant getURL usages.

Note that we were never defaulting to mainThreadHost in getDisplayURL,
nor were we having any source with a false "group".

So we could simplify the logic a bit.

Differential Revision: https://phabricator.services.mozilla.com/D150608
2022-06-30 18:31:38 +00:00
Alexandre Poirot 2c02ee7d8e Bug 1777205 - [devtools] Ensure displaying worker sources loaded via relative URLs. r=nchevobbe
Note that I'm not sure the bug is so common.
The test involved here use a very old deprecated codepath, where we spawn a toolbox
for a given worker. Nowadays we only support that for service workers.

I had to tweak a couple of tests in order to acknowledge that the worker url
could be absolute URL now (instead of only a file name).

Differential Revision: https://phabricator.services.mozilla.com/D150543
2022-06-30 18:31:38 +00:00
Alexandre Poirot 1ae58de96b Bug 1774937 - [devtools] Allow to debug slow script without having devtools opened beforehand. r=jdescottes
The test doesn't really cover this fix as mochitest head files will force loading gDevTools...
To properly cover that we would have to have this test in another file and folder without any head.
This will make it hard to reuse Debugger test helpers. Let's assume we cover the modified feature
while not covering the very precise regression I fix here.

Differential Revision: https://phabricator.services.mozilla.com/D150155
2022-06-30 17:18:55 +00:00
Alexandre Poirot d3f1f1cf11 Bug 1774937 - [devtools] Fix breaking on slow scripts. r=jdescottes
We weren't waiting for interrupt to have fully paused the thread
before trying to resume when the state was "attached".

Differential Revision: https://phabricator.services.mozilla.com/D150154
2022-06-30 17:18:54 +00:00
Nicolas Chevobbe 5b431b3903 Bug 1766128 - [devtools] Don't define empty default values for sessionData in getSessionData. r=ochameau
A test is added to check that having a script with a debugger statement does
not lead to the thread pausing.

Differential Revision: https://phabricator.services.mozilla.com/D150356
2022-06-30 13:44:42 +00:00
Florian Quèze 546587141b Bug 1774844 - Record per process power use on Apple Silicon, r=gerald.
Differential Revision: https://phabricator.services.mozilla.com/D150511
2022-06-29 21:24:12 +00:00
Florian Queze e21c8845f3 Bug 1774844 - Add a new 'Power Use' (ie. 'power') profiler feature, r=gerald.
Differential Revision: https://phabricator.services.mozilla.com/D150059
2022-06-29 21:24:11 +00:00
Andreea Pavel 488ec4bffd Backed out 3 changesets (bug 1774844) for failing condprof at test_ext_geckoProfiler_schema.js on a CLOSED TREE
Backed out changeset f33bef1f7d56 (bug 1774844)
Backed out changeset b4b82b6892b3 (bug 1774844)
Backed out changeset d98352922a5c (bug 1774844)
2022-06-29 18:29:18 +03:00
Alexandre Poirot d862f699da Bug 1772347 - [devtools] Ensure that content process targets destruction is notified to the client. r=jdescottes
That, when the target is destroyed for any reason other than the process destruction or
when we stop watching for content process targets.
In these two cases, we will notify about the target destruction.
AFAIK, this is actually the only two reasons when a content process target is destroyed.
But it would be safer to assume that the target might be destroyed for some other reason
and have the client to be notified.

Depends on D148529

Differential Revision: https://phabricator.services.mozilla.com/D148137
2022-06-29 14:45:01 +00:00
Tom Ritter 9257dc2ebf Bug 1772378: Add test exemptions for expanded eval restrictions r=jdescottes
Depends on D148141

Differential Revision: https://phabricator.services.mozilla.com/D150553
2022-06-29 13:45:57 +00:00
Florian Quèze 89aec958ac Bug 1774844 - Record per process power use on Apple Silicon, r=gerald.
Differential Revision: https://phabricator.services.mozilla.com/D150511
2022-06-29 13:29:45 +00:00
Florian Queze 07bd81efcd Bug 1774844 - Add a new 'Power Use' (ie. 'power') profiler feature, r=gerald.
Differential Revision: https://phabricator.services.mozilla.com/D150059
2022-06-29 13:29:44 +00:00
Julian Descottes d566ccd76f Bug 1767684 - [devtools] Use dedicated node instead of body in browser_rules_cycle-angle.js r=Honza
Not entirely clear why using the body fails sometimes on linux, but adding a first step of selecting a node is more inline with what other tests do, and
fixes the intermittent for me

Differential Revision: https://phabricator.services.mozilla.com/D150532
2022-06-29 10:53:08 +00:00
Julian Descottes b7de46ef58 Bug 1772847 - [devtools] Enable devtools.responsive.showUserAgentInput on all channels r=devtools-reviewers,nchevobbe
This preference drives the "Show user agent" feature accessible from the RDM options.
Flipping it to true will make the User agent input visible on all channels by default, but the feature itself was already available everywhere.
You just had to first select "Show user agent" in devedition/beta/release to show the input. I think the feature is useful enough to enable it by default.
Also we run all our tests with the preference forced to true.

Differential Revision: https://phabricator.services.mozilla.com/D150455
2022-06-28 12:56:25 +00:00
Ryan VanderMeulen 85ad97546e Bug 1773604 - Regenerate classes. r=markh
Differential Revision: https://phabricator.services.mozilla.com/D150295
2022-06-28 01:35:13 +00:00
Kagami Sascha Rosylight 764ef75de5 Bug 1773740 - Part 4: Reapply `mach -l eslint --fix` with use-isInstance changes r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D148939
2022-06-27 20:31:34 +00:00
Itiel 7366e6c94c Bug 1776594 - Switch to using grid for the range slider rows r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D150337
2022-06-27 15:00:46 +00:00
Alexandre Poirot 2ee45286b2 Bug 1775302 - [devtools] Avoid unnecessary updates to DebugLine when the source text is loading. r=bomsy
We get some intermediate state update when sourceTextContent is loading.
The goal is to reduce the calls to any CodeMirror API.

Differential Revision: https://phabricator.services.mozilla.com/D149896
2022-06-27 14:03:21 +00:00
Alexandre Poirot 4c2b722821 Bug 1775302 - [devtools] Remove WebReplay leftover "preview paused location". r=bomsy
Also stop passing `frame` to DebugLine which wasn't using this attribute.
This might prevent unnecessary component updates.

Differential Revision: https://phabricator.services.mozilla.com/D149895
2022-06-27 14:03:21 +00:00
Alexandre Poirot f715360fe0 Bug 1775252 - [devtools] Avoid uncessary frame update on FETCH_FRAMES action. r=bomsy
We typically dispatch a PAUSED actions, with only the first frames,
and later dispatch FETCHED_FRAMES, with the full list of frames.
Avoid modifying the first one, which is typically the selected one
in order to avoid uncessary state changes.

Differential Revision: https://phabricator.services.mozilla.com/D149879
2022-06-27 14:03:20 +00:00
Alexandre Poirot 5ddda086fa Bug 1775203 - [devtools] Unify code around getSymbols method. r=bomsy,perftest-reviewers,davehunt
Now that we no longer have the intermediate "loading" object,
we can simplify the code checking for loading symbols by checking
if symbols are defined.

Differential Revision: https://phabricator.services.mozilla.com/D149856
2022-06-27 14:03:20 +00:00
Alexandre Poirot b3ba605c26 Bug 1775203 - [devtools] Remove "loading" state of symbols state object. r=bomsy
This helps reduce the number of state changes and the number of renders.
We now switch from null symbols which means they are loading,
to an object with the loaded symbols.

Differential Revision: https://phabricator.services.mozilla.com/D149855
2022-06-27 14:03:20 +00:00
Alexandre Poirot 523887d6c5 Bug 1775200 - [devtools] Avoid updating CodeMirror unless it is strictly necessary. r=bomsy
There is many props that are only relevant to the children components,
and we were calling expensive CodeMirror method on any prop change.

Differential Revision: https://phabricator.services.mozilla.com/D149853
2022-06-27 14:03:19 +00:00
Hubert Boma Manilla 80cdc3e2ad Bug 1776167 - [devtools] Fix chromeContext for the legacy-listeners codepath r=ochameau
browser_console_enable_network_monitoring.js is failing on beta because MBT is not enabled by default
so the the leagcy-listener copepath is used. This adds `chromeContext` to the network resource and fixes
the issue.

Differential Revision: https://phabricator.services.mozilla.com/D150328
2022-06-27 13:22:16 +00:00
Nicolas Chevobbe 340ae169e9 Bug 1776262 - [devtools] Fix stuck to bottom console output. r=jdescottes.
When the last visible message was an evaluation result
but the last message in the store was something else,
the console would trigger the pin-to-bottom behavior.
This is fixed by checking if the last message in the
store (and not the last visible message) is a result.
A test case is added to make sure we don't regress.

Differential Revision: https://phabricator.services.mozilla.com/D150225
2022-06-24 14:38:53 +00:00
Florian Quèze 9f58ad4f5c Bug 1746197 - replace the PaintWorker thread with the Timer thread in about:profiling, r=julienw,fluent-reviewers.
Differential Revision: https://phabricator.services.mozilla.com/D150045
2022-06-23 21:13:21 +00:00
Marian-Vasile Laza 1b4fa1555b Backed out changeset a6d7efb82917 (bug 1772347) for causing devtools failres. CLOSED TREE 2022-06-23 21:45:48 +03:00
Joel Maher 5bf232d7af Bug 1776212 - cleanup e10s in manifest conditions for bc/dt. r=aryx,necko-reviewers,extension-reviewers,preferences-reviewers,dragana,zombie
Differential Revision: https://phabricator.services.mozilla.com/D150127
2022-06-23 17:49:07 +00:00
Alexandre Poirot 19189e111a Bug 1772347 - [devtools] Ensure that content process targets destruction is notified to the client. r=jdescottes
That, when the target is destroyed for any reason other than the process destruction or
when we stop watching for content process targets.
In these two cases, we will notify about the target destruction.
AFAIK, this is actually the only two reasons when a content process target is destroyed.
But it would be safer to assume that the target might be destroyed for some other reason
and have the client to be notified.

Depends on D148529

Differential Revision: https://phabricator.services.mozilla.com/D148137
2022-06-23 14:18:40 +00:00
Bogdan Szekely f202b51354 Bug 1752374 - fixed lint failures r=lint-fix CLOSED TREE 2022-06-23 15:52:52 +03:00
Julien Wajsberg bee5e18654 Bug 1752374 - [devtools documentation] Remove the documentation about the old performance panel r=jdescottes DONTBUILD
This replaces the documentation by a link to the online documentation to
the Firefox Profiler.

Differential Revision: https://phabricator.services.mozilla.com/D150005
2022-06-23 12:20:01 +00:00
Nicolas Chevobbe 519e1966cf Bug 1776144 - [devtools] Remove unused TARGET_AVAILABLE action in WebConsole. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D150084
2022-06-23 08:29:44 +00:00
Michael Ratcliffe 8976ddfab0 Bug 1774687 - Stop debouncing with DeferredTask in DevTools r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D149575
2022-06-22 21:15:12 +00:00
Alexandre Poirot 055b54a0ca Bug 1774583 - [devtools] Prevent clearing tab list when a target is destroyed. r=bomsy
persistTabs should only be used when we want to clear the tabs list
and have the persisted tab to be re-created (made visible, with a sourceId) when a new source matching the same url is created.

Also cleanup a few things and avoid returning new state objects unless we really changed something.

Differential Revision: https://phabricator.services.mozilla.com/D149523
2022-06-22 20:12:43 +00:00
Alexandre Poirot 09d0d54069 Bug 1767702 - [devtools] Split browser_dbg-features-source-tree.js and re-enable it. r=bomsy
Let move Browser Toolbox checks in a distinct file as it can get flaky.

Differential Revision: https://phabricator.services.mozilla.com/D149417
2022-06-22 16:54:29 +00:00
Martin Robinson f85b73bf84 Bug 1463600 - Implement CSS 'contain: style' r=emilio
Add an implementation of CSS `contain: style`. This introduces two new
data structures, the ContainStyleScope and ContainStyleScopeManager.

ContainStyleScope manages one `contain: style` "world" which has its own
counter and quote lists. The contents of these lists depend on their
parent scopes, but are not affected by their children.
ContainStyleScopeManager manages a tree of scopes starting at a root
scope which is outside of any `contain: style` element.

Scopes are stored in a hash table that is keyed off of the nsIContent
which establishes the `contain: style` scope. When modifying quote or
content lists, the ContainStyleScopeManager is responsible for finding
the appropriate `contain: style` scope to modify.

Perhaps the most complex part of this is that counters and quotes have
read access to the state of counters and quotes that are in ancestor
`contain: style` scopes. In the case of counters, USE nodes that are at
the beginning of counter lists might have a counter scope that starts in
an ancestor `contain: style` scope. When nsCounterNode::SetScope() is
called, the code may look upward in the `contain: style` scope tree to
find the start of the counter scope. In the case of quotes, the first
node in the quote list must look for the state of quotes in ancestor
`contain: style` scopes.

Differential Revision: https://phabricator.services.mozilla.com/D149508
2022-06-22 16:16:59 +00:00
Hubert Boma Manilla 33a1ae1c8f Bug 1775217 - [devtools] Update MDN compat data (2022 June) r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D149971
2022-06-22 10:30:03 +00:00
Nicolas Chevobbe 3c8d1a8b26 Bug 1775411 - [devtools] Fix append new stylesheet link. r=ochameau.
The link was missing an event listener, that we add in this patch.
A test case is added to make sure the link does work.

Differential Revision: https://phabricator.services.mozilla.com/D149953
2022-06-22 09:30:05 +00:00
Michael Ratcliffe a6d986f1bb Bug 1775113 - Make Loader.jsm honour ac_add_options --enable-debug-js-modules r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D149778
2022-06-22 08:34:21 +00:00