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

24092 Коммитов

Автор SHA1 Сообщение Дата
Nicolas Chevobbe 7239e0e622 Bug 1742330 - [devtools] Make browser_resources_document_events.js handle EFT. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D131476
2021-11-22 13:38:43 +00:00
Andreea Pavel 93376ab546 Bug 1717330 - disable browser_touch_event_iframes.js for frequent failures r?#intermittent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D131574
2021-11-19 02:14:06 +00:00
Nazım Can Altınova fea7d30107 Bug 1741716 - Change the preset to Firefox when profiler popup is activated through web channel r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D131436
2021-11-19 13:49:35 +00:00
Ting-Yu Lin 5d4998ecf4 Bug 1741774 - Support scrollbar-gutter in the style system. r=emilio
This patch adds `scrollbar-gutter` property in CSS Overflow level 3 [1] to the
style system.

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

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

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

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

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

Differential Revision: https://phabricator.services.mozilla.com/D131471
2021-11-18 13:22:35 +00:00
Nicolas Chevobbe 149cd3677e Bug 1740453 - [devtools] Handle onTargetSelected in accessibility panel. r=ochameau.
A couple tests are added to check that the panel works fine when using the iframe picker.

Differential Revision: https://phabricator.services.mozilla.com/D130611
2021-11-18 13:22:34 +00:00
Raphael Ferrand 702f0ad086 Bug 1498224 - [devtools] Apply new classnames as you type in the .cls section of the rule-view r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D129515
2021-11-18 12:52:22 +00:00
Alexandre Poirot 8ed2c76f1f Bug 1740292 - [devtools] Remove target actor's _detach method. r=nchevobbe
Well, the RDP method "detach" still exists, but is now destroying the target actor.
There is no more intermediate state where the actor is "detached" but not destroyed,
which is confusing and no longer useful now that we can longer attach again.

Differential Revision: https://phabricator.services.mozilla.com/D130916
2021-11-18 10:57:02 +00:00
Alexandre Poirot 71f51e2a2f Bug 1740292 - [devtools] Remove all notion of "attached" in target actors. r=nchevobbe
This might make the leftover "detach" method a bit more special.
But ideally we would get rid of it and convert it to a call to target actor's destroy method.

Differential Revision: https://phabricator.services.mozilla.com/D130915
2021-11-18 10:57:02 +00:00
Alexandre Poirot 841b8e961c Bug 1740292 - [devtools] Remove target actor's attach method entirely. r=nchevobbe,devtools-backward-compat-reviewers
(except for the special edgecase of worker's hybrid descriptor/target)

Differential Revision: https://phabricator.services.mozilla.com/D130914
2021-11-18 10:57:01 +00:00
Alexandre Poirot 487d9677f3 Bug 1740292 - [devtools] Stop calling target front attach method. r=nchevobbe
Previous patches made attach method become a no-op, so all these callsites can be removed.

Differential Revision: https://phabricator.services.mozilla.com/D130913
2021-11-18 10:57:01 +00:00
Alexandre Poirot 5aea7b3306 Bug 1740292 - [devtools] Merge target actor's `attach` methods into their constructors. r=nchevobbe
By doing that, we no longer have to ensure calling attach here and there.
Some followups will be helpful to get rid of detach and all mentions of attach/detach/attached.
Some code, like descriptors and tests are still calling attach, which is now a no-op.
Gettind rid of detach might be slightly more complicated.

Differential Revision: https://phabricator.services.mozilla.com/D130843
2021-11-18 10:57:01 +00:00
Alexandre Poirot 95bb482288 Bug 1740292 - [devtools] Stop calling Target actor's `attach` method from the frontend. r=nchevobbe,devtools-backward-compat-reviewers
Calling attach was important to bootstrap the thread actor and retrieve its actorID.
But now with server target this is done early on and we already retrieve the actorID
via form(). Except for workers, but I fixed that.

The next patch will ensure that, on the server side we fully initialize the target actors
as soon as they are created.

Differential Revision: https://phabricator.services.mozilla.com/D130842
2021-11-18 10:57:00 +00:00
Alexandre Poirot 19f5a90b8b Bug 1740292 - [devtools] Avoid exception in DOCUMENT_EVENT listener when running xpcshell tests. r=nchevobbe
Note that these exception doesn't seem to make the test fail (for ex in test_nesting-03.js).

Differential Revision: https://phabricator.services.mozilla.com/D130841
2021-11-18 10:56:59 +00:00
Alexandre Poirot 572abaa684 Bug 1740292 - [devtools] Use a single method to create xpcshell target globals. r=nchevobbe
testGlobal and createTestGlobal were redundant.

Differential Revision: https://phabricator.services.mozilla.com/D130840
2021-11-18 10:56:59 +00:00
Florian Quèze bc5e79f3ae Bug 1741235 - Merge the 'Firefox Front-End' and 'Firefox Platform' profiler presets, r=julienw,fluent-reviewers,nbaumgardner,kpatenio.
Differential Revision: https://phabricator.services.mozilla.com/D131158
2021-11-17 18:37:43 +00:00
Julian Descottes b9f00defcc Bug 1736321 - [devtools] Document DevTools Sheriffing process r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D128717
2021-11-17 16:16:43 +00:00
Clinton 3c6ae051d2 [devtools] Bug 1737990 - Remove lodash uniq usage r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D129965
2021-11-17 15:33:08 +00:00
Tawah Peggy 1cf3aba54d Bug 1737989 - Remove lodash union usage. r=nchevobbe.
Differential Revision: https://phabricator.services.mozilla.com/D131227
2021-11-17 15:31:58 +00:00
Csoregi Natalia 63c1f53d14 Backed out 2 changesets (bug 1709267) for causing devtools failures. CLOSED TREE
Backed out changeset e4dc58404c6c (bug 1709267)
Backed out changeset 88f46043876e (bug 1709267)
2021-11-17 17:50:00 +02:00
Jan Odvarko 90968a4061 Bug 1740964 - [devtools] The link for yarn is outdated r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D131330
2021-11-17 14:21:41 +00:00
Nicolas Chevobbe 70a89dbb2c Bug 1740455 - [devtools] Add a test for TabbingOrder highlighter. r=ochameau.
A new method is added in the HighlighterTestActor to retrieve information about
the highglighter.
The test highlights (pun intended) the issue described in Bug 1740509.

Differential Revision: https://phabricator.services.mozilla.com/D130875
2021-11-17 14:07:38 +00:00
Alexandre Poirot aff1b7a2ce Bug 1709267 - [devtools] Add support for target switching in about:debugging. r=jdescottes
The challenges here are:
* xpcshell tests still don't support the watcher actor and server side targets. So we have to ensure still using client side target fetched via Descriptor.getTarget RDP request. (We still also need that for WebExtension)
* some tests weren't spawning the TargetCommand while querying TabDescriptor.getTarget. I tuned them to call TargetCommand.startListening so that we start instantiating server side targets, including the top level one retrieved via TabDescriptor.getTarget.

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

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

Differential Revision: https://phabricator.services.mozilla.com/D130919
2021-11-17 14:05:15 +00:00
Julian Descottes 0e2fb01932 Bug 1741369 - [devtools] Import devtools require in head.js for some xpcshell test suites r=ochameau
Depends on D131218

Differential Revision: https://phabricator.services.mozilla.com/D131329
2021-11-17 12:43:27 +00:00
Julian Descottes 212faeb0c3 Bug 1741369 - [devtools] Update paths to loader files in devtools/ r=ochameau
Depends on D131216

Differential Revision: https://phabricator.services.mozilla.com/D131217
2021-11-17 12:43:26 +00:00
Julian Descottes 2a2ef964fb Bug 1741369 - [devtools] Move all loader-related files to devtools/shared/loader r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D131216
2021-11-17 12:43:26 +00:00
Niklas Goegge 5d592a6adb Bug 1617611: Annotate each failing test individually. r=webdriver-reviewers,necko-reviewers,ckerschb,whimboo,valentin
Annotating each test individually lets us avoid introducing new failing tests
while we go through the backlog of failing tests.

Depends on D129162

Differential Revision: https://phabricator.services.mozilla.com/D129163
2021-11-17 11:04:34 +00:00
Julian Descottes 5b84fb14b0 Bug 1740281 - [devtools] Cancel node picker correctly when using client side shortcuts r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D131174
2021-11-17 10:56:39 +00:00
Markus Stange 7a7d1b26de Bug 1726281 - Allow symbolication WebChannel requests for profiler tabs that weren't opened by a profile capturing action. r=julienw
This makes it easier to symbolicate profiles that were captured to a file
without symbolication.

Differential Revision: https://phabricator.services.mozilla.com/D122928
2021-11-16 20:41:24 +00:00
Markus Stange a9992f19f4 Bug 1625309 - Use /from-browser. r=julienw
This was implemented in https://github.com/firefox-devtools/profiler/pull/3466.

Differential Revision: https://phabricator.services.mozilla.com/D122923
2021-11-16 20:41:24 +00:00
Markus Stange c6b6868ce0 Bug 1625309 - Make fake-frontend.html work with the WebChannel. r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D131189
2021-11-16 20:41:23 +00:00
Markus Stange c9d0a2af2a Bug 1625309 - Remove the frame script and instead use the WebChannel to expose the profile and symbolication. r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D121933
2021-11-16 20:41:23 +00:00
Julian Descottes d226afc848 Bug 1740438 - [devtools] Remove backward compatibility code for recordAllocations target configuration option r=devtools-reviewers,bomsy
Depends on D130847

Differential Revision: https://phabricator.services.mozilla.com/D130848
2021-11-16 14:34:27 +00:00
Julian Descottes 474ba47047 Bug 1740438 - [devtools] Remove backward compatibility code for clearPickerSupport trait r=devtools-reviewers,bomsy
Depends on D130846

Differential Revision: https://phabricator.services.mozilla.com/D130847
2021-11-16 14:34:27 +00:00
Julian Descottes cbd04951b9 Bug 1740438 - [devtools] Remove backward compatibility code for typename browsingContextTarget r=devtools-reviewers,bomsy
Depends on D130845

Differential Revision: https://phabricator.services.mozilla.com/D130846
2021-11-16 14:34:26 +00:00
Julian Descottes a33af7064f Bug 1740438 - [devtools] Remove backward compatibility code for useChildTargetToFetchChildren r=devtools-reviewers,bomsy
Depends on D130844

Differential Revision: https://phabricator.services.mozilla.com/D130845
2021-11-16 14:34:26 +00:00
Julian Descottes 4e5f134653 Bug 1740438 - [devtools] Remove backward compatibility code for event-breakpoints trait r=devtools-reviewers,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D130844
2021-11-16 14:34:25 +00:00
criss 507f143b88 Backed out 2 changesets (bug 1617611) for causing mochitest failures on storageAccessWithDynamicFpi.js. CLOSED TREE
Backed out changeset fdb2c6bfc0c6 (bug 1617611)
Backed out changeset c3352f4b3681 (bug 1617611)
2021-11-16 13:02:05 +02:00
Niklas Goegge 5b684c7fc6 Bug 1617611: Annotate each failing test individually. r=webdriver-reviewers,necko-reviewers,ckerschb,whimboo,valentin
Annotating each test individually lets us avoid introducing new failing tests
while we go through the backlog of failing tests.

Depends on D129162

Differential Revision: https://phabricator.services.mozilla.com/D129163
2021-11-16 10:15:45 +00:00
Hubert Boma Manilla de4e58224c Bug 1736366 - [devtools] Refactor the getBreakpointSources selector to no longer use makeShallowQuery r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D128742
2021-11-16 09:51:18 +00:00
Sylvestre Ledru 39a2e463ea Bug 1714788 - doc: Fix a Pygments warning r=firefox-source-docs-reviewers,championshuttler DONTBUILD
Warning:
lexer name 'bz_comment_text' is not known

Depends on D131047

Differential Revision: https://phabricator.services.mozilla.com/D131095
2021-11-16 07:59:49 +00:00
Sylvestre Ledru 1df999712f Bug 1714788 - doc: do not provide the language if the code isn't valid r=firefox-source-docs-reviewers,championshuttler DONTBUILD
Otherwise, the warning is displayed:
```
WARNING: Could not lex literal_block as "json". Highlighting skipped.
```

Depends on D131092

Differential Revision: https://phabricator.services.mozilla.com/D131093
2021-11-16 07:59:48 +00:00
Sylvestre Ledru cc801c974a Bug 1714788 - doc: Remove an html artifact r=firefox-source-docs-reviewers,championshuttler,nchevobbe DONTBUILD
Depends on D131091

Differential Revision: https://phabricator.services.mozilla.com/D131092
2021-11-16 07:59:47 +00:00
Sylvestre Ledru e747d0c0f5 Bug 1714788 - doc: Fix a warning 'Inline interpreted text' r=firefox-source-docs-reviewers,championshuttler DONTBUILD
WARNING: Inline interpreted text or phrase reference start-string without end-string.

Depends on D131090

Differential Revision: https://phabricator.services.mozilla.com/D131091
2021-11-16 07:59:47 +00:00
Markus Stange 39942c6822 Bug 1728602 - Use IOUtils.openFileForSyncReading in symbolication-worker.js. r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D124208
2021-11-16 00:17:40 +00:00
Dão Gottwald 84973358a7 Bug 1740954 - Remove the arrowposition attribute. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D131059
2021-11-15 23:03:43 +00:00
Norisz Fay 212a384c46 Backed out 5 changesets (bug 1740438) for causing xpcshell failures on test_action-toggle-recording-allocations.js CLOSED TREE
Backed out changeset 28518fbe3077 (bug 1740438)
Backed out changeset f33ea874875c (bug 1740438)
Backed out changeset f20e36b0d1d4 (bug 1740438)
Backed out changeset 2f166a7bc13b (bug 1740438)
Backed out changeset 9d9bcf855ceb (bug 1740438)
2021-11-15 12:40:16 +02:00
Julian Descottes 9a7494f5c7 Bug 1740438 - [devtools] Remove backward compatibility code for recordAllocations target configuration option r=devtools-reviewers,bomsy
Depends on D130847

Differential Revision: https://phabricator.services.mozilla.com/D130848
2021-11-15 08:46:37 +00:00
Julian Descottes 2c9b193c11 Bug 1740438 - [devtools] Remove backward compatibility code for clearPickerSupport trait r=devtools-reviewers,bomsy
Depends on D130846

Differential Revision: https://phabricator.services.mozilla.com/D130847
2021-11-15 08:46:37 +00:00
Julian Descottes d55289222a Bug 1740438 - [devtools] Remove backward compatibility code for typename browsingContextTarget r=devtools-reviewers,bomsy
Depends on D130845

Differential Revision: https://phabricator.services.mozilla.com/D130846
2021-11-15 08:46:36 +00:00
Julian Descottes fd96986f11 Bug 1740438 - [devtools] Remove backward compatibility code for useChildTargetToFetchChildren r=devtools-reviewers,bomsy
Depends on D130844

Differential Revision: https://phabricator.services.mozilla.com/D130845
2021-11-15 08:46:36 +00:00
Julian Descottes 793ef6b2aa Bug 1740438 - [devtools] Remove backward compatibility code for event-breakpoints trait r=devtools-reviewers,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D130844
2021-11-15 08:46:35 +00:00
Julian Descottes 167e19ec64 Bug 1737790 - [devtools] Color picker should fallback on getClosestBackgroundColor for elements without quads r=nchevobbe
The getBackgroundColor already has fallback paths for several situations.
We now use the fallback in case getAdjustedQuads returned an empty array.

A browser mochitest is added to cover this issue as well.

Differential Revision: https://phabricator.services.mozilla.com/D130750
2021-11-15 08:44:46 +00:00
Nicolas Chevobbe 674b6582ba Bug 1740454 - [devtools] Fix a11y panel react warnings. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D130855
2021-11-15 07:00:03 +00:00
Mats Palmgren a36baa4d58 Bug 1706346 part 3 - [css-lists] Remove the internal '-moz-list-reversed' CSS property that is no longer needed. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D129957
2021-11-14 03:49:36 +00:00
Daisuke Akatsuka d5a15f449b Bug 1740857: Update MDN compat data. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D131035
2021-11-12 08:07:15 +00:00
Hiroyuki Ikezoe db5de169ad Bug 1692708 - Add cancelScrollAnimation and use it in window_bug1369072.html and browser_scroll.js. r=botond
Both window_bug1369072.html and browser_scroll.js have a pattern something like;

1) Call synthesizeKey to scroll an element
2) Wait a scroll event
3) Test something
4) (Re)set the scroll position to (0, 0) by calling Element.scrollTop and
   Element.scrollLeft or scrollTo.

With the new transmogrification the step 4) will not reset the scroll position
if there's an on-going scroll animation in APZ triggered by the synthesizeKey.

To avoid the situation where there's an on-going animation at the step 4), we
destroy the corresponding scrollable frame and reconstruct it so that it
clobbers the animation.

Differential Revision: https://phabricator.services.mozilla.com/D130852
2021-11-12 07:54:17 +00:00
Marian-Vasile Laza 539896f064 Backed out 3 changesets (bug 1726281, bug 1625309) for causing mochitest failures on browser_popup-profiler-states.js. CLOSED TREE
Backed out changeset 3c997d7eac8d (bug 1726281)
Backed out changeset 9ad8265a7c22 (bug 1625309)
Backed out changeset 801a44944072 (bug 1625309)
2021-11-11 02:14:36 +02:00
Markus Stange c200137e29 Bug 1726281 - Allow symbolication WebChannel requests for profiler tabs that weren't opened by a profile capturing action. r=julienw
This makes it easier to symbolicate profiles that were captured to a file
without symbolication.

Differential Revision: https://phabricator.services.mozilla.com/D122928
2021-11-10 21:20:35 +00:00
Markus Stange a78624d8f9 Bug 1625309 - Use /from-browser. r=julienw
This was implemented in https://github.com/firefox-devtools/profiler/pull/3466.

Differential Revision: https://phabricator.services.mozilla.com/D122923
2021-11-10 21:20:35 +00:00
Markus Stange b72813b697 Bug 1625309 - Remove the frame script and instead use the WebChannel to expose the profile and symbolication. r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D121933
2021-11-10 21:20:34 +00:00
Clinton 1882c3b3e7 Bug 1710284 - Copying CSS Rules manually from the Devtools Inspector inserts extra indentation r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D130549
2021-11-10 20:15:45 +00:00
Nicolas Chevobbe 1541e545c6 Bug 1740548 - [devtools] Fix browser_rules_selector-highlighter-iframe-picker.js intermittent. r=ochameau.
Make the test wait until we don't have an active highlighter anymore.

Differential Revision: https://phabricator.services.mozilla.com/D130888
2021-11-10 17:03:22 +00:00
Nicolas Chevobbe 8de52475ac Bug 1740456 - [devtools] Check existence of inspector panel before using it in registerInspectorExtensionSidebar. r=jdescottes.
The method was throwing if the toolbox was opened with a panel different than
the inspector one but for which we do initialize the inspector front (e.g. Accessibility Panel).

Differential Revision: https://phabricator.services.mozilla.com/D130854
2021-11-10 16:59:23 +00:00
Nicolas Chevobbe 24877826e3 Bug 1740296 - [devtools] Fix accessibility test names. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D130765
2021-11-10 16:30:08 +00:00
Paul Adenot 6ae686a644 Bug 1739408 - Add new WebRTC threads in the Media profiler preset. r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D130473
2021-11-10 15:15:52 +00:00
Nicolas Chevobbe 37a6a78645 Bug 1739115 - [devtools] Add a section for xpcshell debugging in recurring devtools tasks documentation. r=bomsy,jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D130267
2021-11-10 14:55:37 +00:00
Nicolas Chevobbe 779b2e96eb Bug 1739061 - [devtools] Remove skip-if annotation on console context selector tests. r=ochameau.
Those tests are passing with Fission enabled, as well as with EFT enabled.
it would be better to not skip them, so we remove the annotation, and use specific
assertions to handle cases where the tests shouldn't pass.

Differential Revision: https://phabricator.services.mozilla.com/D130244
2021-11-10 14:51:06 +00:00
Nicolas Chevobbe 57cd75a819 Bug 1738915 - [devtools] Set webconsole context when selecting frame in iframe picker. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D130180
2021-11-10 14:51:05 +00:00
Nicolas Chevobbe 1983c64a23 Bug 1730148 - [devtools] Handle onTargetSelected in DOM panel. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D130332
2021-11-10 14:51:05 +00:00
Nicolas Chevobbe 062332598e Bug 1730148 - [devtools] Add a `onSelect` argument to `targetCommand.watchTargets` . r=ochameau.
This will allow panels to react to a given target being selected in the iframe picker
when EFT is enabled.
We add support for onTargetSelected in the inspector and add a few test cases
for it (checking that highlighters are hidden when selecting a frame, checking
that selecting an iframe and then removing it does update the markup view).

Differential Revision: https://phabricator.services.mozilla.com/D130177
2021-11-10 14:51:04 +00:00
Nicolas Chevobbe bdbcfaa7e8 Bug 1730148 - [devtools] Use targetCommand to populate iframe picker when EFT is enabled. r=ochameau.
The iframe picker code is refactored a bit so it's easier to follow.
This patch makes it so we support both EFT and non EFT scenarios.

Differential Revision: https://phabricator.services.mozilla.com/D130241
2021-11-10 14:51:04 +00:00
Cristian Tuns e72368c08e Backed out 5 changesets (bug 1738915, bug 1739061, bug 1730148) for causing mochitest failures on browser_resources_document_events.js CLOSED TREE DONTBUILD
Backed out changeset 24c1a120bb77 (bug 1739061)
Backed out changeset eb9953fd3252 (bug 1738915)
Backed out changeset 9bd72db885eb (bug 1730148)
Backed out changeset 819078e24fa6 (bug 1730148)
Backed out changeset a0e706688adc (bug 1730148)
2021-11-10 07:07:57 -05:00
Nicolas Chevobbe f0d4406586 Bug 1739061 - [devtools] Remove skip-if annotation on console context selector tests. r=ochameau.
Those tests are passing with Fission enabled, as well as with EFT enabled.
it would be better to not skip them, so we remove the annotation, and use specific
assertions to handle cases where the tests shouldn't pass.

Differential Revision: https://phabricator.services.mozilla.com/D130244
2021-11-10 10:44:52 +00:00
Nicolas Chevobbe d18f89ee77 Bug 1738915 - [devtools] Set webconsole context when selecting frame in iframe picker. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D130180
2021-11-10 10:44:52 +00:00
Nicolas Chevobbe c27ad7085f Bug 1730148 - [devtools] Handle onTargetSelected in DOM panel. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D130332
2021-11-10 10:44:51 +00:00
Nicolas Chevobbe 4ea74879bb Bug 1730148 - [devtools] Add a `onSelect` argument to `targetCommand.watchTargets` . r=ochameau.
This will allow panels to react to a given target being selected in the iframe picker
when EFT is enabled.
We add support for onTargetSelected in the inspector and add a few test cases
for it (checking that highlighters are hidden when selecting a frame, checking
that selecting an iframe and then removing it does update the markup view).

Differential Revision: https://phabricator.services.mozilla.com/D130177
2021-11-10 10:44:51 +00:00
Nicolas Chevobbe 8a4f2c2c22 Bug 1730148 - [devtools] Use targetCommand to populate iframe picker when EFT is enabled. r=ochameau.
The iframe picker code is refactored a bit so it's easier to follow.
This patch makes it so we support both EFT and non EFT scenarios.

Differential Revision: https://phabricator.services.mozilla.com/D130241
2021-11-10 10:44:51 +00:00
Nicolas Chevobbe a938f83a91 Bug 1737967 - [devtools] Replace usage of lodash debounce with DevTools own debounce method. r=bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D130460
2021-11-10 06:37:54 +00:00
Julian Descottes 1db1989ee5 Bug 1737690 - [devtools] Use a devtools css variable for the auto theme notification text color r=Honza
Using --theme-contrast-color. Sadly --theme-contrast-background looks pretty bad in dark theme, so we can't use the background color.
But the text color itself is fine against --theme-selection-background-hover, so let's use this

Differential Revision: https://phabricator.services.mozilla.com/D130754
2021-11-09 15:52:31 +00:00
Nicolas Chevobbe 3b6ea985b0 Bug 1739990 - Fix perf regression in getInScopeLines. r=jdescottes.
The patch for Bug 1737993 did a very readable but not performant replacement
of lodash `without` usage in `getInScopeLines`.
This patch changes things a bit so we get a similar level of performance as
what we had before, when using `without`.
For this we :
- make `getOutOfScopeLines` returns a `Set` so checking inclusion is faster
- create the final array of "in scope lines" using a for loop and assigning
  line number when needed, and then filtering out empty slots.

Differential Revision: https://phabricator.services.mozilla.com/D130742
2021-11-09 14:37:43 +00:00
Gerald Squelart 2cc9f2df7f Bug 1738627 - Add experimental "... - All Threads" options in about:profiling - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D130012
2021-11-08 23:59:37 +00:00
Julian Descottes 2078bf262e Bug 1731323 - [devtools] Use a shared test helper to wait for all loaded panels in browser_aboutdebugging_addons_debug_reload.js r=Honza
This changeset adds a new shared helper which allows to wait for all the loaded panels of a toolbox.
We might use this by default in our navigation helper, but that should be done in a follow up.

Differential Revision: https://phabricator.services.mozilla.com/D130616
2021-11-08 16:24:05 +00:00
Nicolas Chevobbe 2125a049e6 Bug 1739371 - [devtools] Fix browser_inspector_command_findNodeFrontFromSelectors.js intermittent. r=ochameau.
The 0 timeout wasn't enough on some platform, so we reload the page before calling
the method; since we're targetting an iframe that takes a few seconds to load,
the call should time out every time.

Differential Revision: https://phabricator.services.mozilla.com/D130612
2021-11-08 14:25:49 +00:00
Hubert Boma Manilla 8318c4c60b Bug 1738941 - [devtools] Resume the toolbox state if paused on target destroyed r=ochameau
Enabled an existing test relating to Bug 1722305, that tests the fix in this patch.

Differential Revision: https://phabricator.services.mozilla.com/D130256
2021-11-08 14:04:35 +00:00
Julian Descottes f93ec5ae05 Bug 1733671 - [devtools] Support dark mode for aboutdebugging profiler popup header r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D130408
2021-11-08 12:29:02 +00:00
Narcis Beleuzu cc1b82440a Backed out changeset 1f2fde2975bb (bug 1731770) for dt failure on browser_net_details_copy.js . CLOSED TREE 2021-11-08 14:27:34 +02:00
Claudia efa834cd24 Bug 1731770 - [devtools] Persit expanded nodes state in the Response Panel. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D128190
2021-11-08 10:57:39 +00:00
Marian-Vasile Laza 483bf912d9 Backed out changeset 2635e89a1790 (bug 1733671) for causing mochitest failures on browser_parsable_css.js. CLOSED TREE 2021-11-08 13:21:34 +02:00
Nicolas Chevobbe 8713b908e0 Bug 1739215 - [devtools] Revert `click` to `sendMouseEvent` in browser_webconsole_location_styleeditor_link.js. r=bomsy.
The test is tagged as `fail-if= a11y_checks`, but as patch for Bug 1738124 switched
to Element.click, we don't get the expected failure anymore (since the a11y_check
task does not perform assertion on element.click).
Let's revert to the original behavior so we can still see that the test need
some a11y work.

Differential Revision: https://phabricator.services.mozilla.com/D130610
2021-11-08 10:21:18 +00:00
Julian Descottes 6af510632f Bug 1733671 - [devtools] Support dark mode for aboutdebugging profiler popup header r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D130408
2021-11-08 09:59:50 +00:00
Julian Descottes b57daab268 Bug 1737865 - [devtools] Do not treat xpcshell targets as parent process targets r=ochameau,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D130212
2021-11-08 08:03:08 +00:00
angelina 97cdc02a03 Bug 1733285 List xhtml in HTML filter r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D128267
2021-11-05 14:01:39 +00:00
Julian Descottes d78bdfe181 Bug 1731323 - [devtools] Wait for panel reload in browser_aboutdebugging_addons_debug_reload.js r=Honza
Reuse helper from shared-head.js to wait for the currently selected panel to be reloaded in the intermittent test.

Differential Revision: https://phabricator.services.mozilla.com/D130154
2021-11-05 10:20:09 +00:00
Cristian Tuns 1aeac93d23 Backed out 5 changesets (bug 1738627) for causing xpcshell failures on test_ext_geckoProfiler_schema.js CLOSED TREE
Backed out changeset 42d385d7da97 (bug 1738627)
Backed out changeset edeb3a338954 (bug 1738627)
Backed out changeset 98f02e35134d (bug 1738627)
Backed out changeset 711daa6dd24b (bug 1738627)
Backed out changeset 49e12753a40c (bug 1738627)
2021-11-05 05:12:28 -04:00
Gerald Squelart ddfe54e593 Bug 1738627 - Add experimental "... - All Threads" options in about:profiling - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D130012
2021-11-05 05:52:29 +00:00