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

22271 Коммитов

Автор SHA1 Сообщение Дата
Butkovits Atila 9ac3c18562 Backed out 11 changesets (bug 1589074) for causing failures on test_DownloadCore.js.
Backed out changeset 10e37ec238ee (bug 1589074)
Backed out changeset a306f2483d73 (bug 1589074)
Backed out changeset b7a0d73a2885 (bug 1589074)
Backed out changeset da996dc79d5d (bug 1589074)
Backed out changeset 3cffd4570c8e (bug 1589074)
Backed out changeset 9fe67741eb5a (bug 1589074)
Backed out changeset e8e6d9a6b90d (bug 1589074)
Backed out changeset 78df7f0ccb31 (bug 1589074)
Backed out changeset 712f147c5a41 (bug 1589074)
Backed out changeset f093f3c48807 (bug 1589074)
Backed out changeset 454beae0f635 (bug 1589074)
2021-01-25 14:57:00 +02:00
Emilio Cobos Álvarez c30e9de30a Bug 1688508 - Also enable the event on initialization.
MANUAL PUSH: Orange on browser_markup_shadowdom_dynamic.js on a
CLOSED TREE
2021-01-25 14:12:40 +01:00
Emilio Cobos Álvarez b74a3bb722 Bug 1688508 - Fire shadowrootattached only if devtools is observing the document. r=smaug
Much like devtools manages the existing stylesheet changed events.

This is tested by devtools/client/inspector/markup/test/browser_markup_shadowdom.js

Differential Revision: https://phabricator.services.mozilla.com/D102875
2021-01-25 11:30:51 +00:00
Dimi Lee e262560bd8 Bug 1589074 - Fix devtools mochitest failures after changing default referrer policy to strict-origin-when-cross-origin. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D88551
2021-01-25 06:43:03 +00:00
Daisuke Akatsuka 851bbbd9d9 Bug 1688132: Update MDN compat data. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D102672
2021-01-25 08:36:12 +00:00
Gerald Squelart 1338970d1b Bug 1688400 - Fixed English typo in about:profiling - r=fluent-reviewers,flod DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D102848
2021-01-24 06:09:49 +00:00
Brindusan Cristian dc813a31cc Backed out changeset 870a4ac0af45 (bug 1583901) for devtools failures at browser_rules_preview-tooltips-sizes.js. 2021-01-24 01:22:23 +02:00
Sebastian Zartner f6362f9f72 Bug 1583901 - New inactive CSS rule to show warning when fill-* or stroke-* is used on non-SVG-basic-shape and non-SVG-text elements. r=fluent-reviewers,flod,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D101295
2021-01-23 21:38:22 +00:00
Hubert Boma Manilla a62aa99a93 Bug 1688170 - [devtools] Enable browser resource tests for NETWORK & NETWORK STACKTRACE EVENTS r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D102706
2021-01-22 15:10:42 +00:00
Nicolas Chevobbe 9ef7faec7e Bug 1687485 - [devtools] Fix error count on navigation when console isn't enabled. r=ladybenko.
We used to not do anything on navigation for the error count
at the toolbox level, but the test we had to check that the
count was reset on navigation was working; this is because
there's a hook in the console panel to clear the error count
when the console is cleared, and in the test, the console panel
was selected.
This patch fixes that and adds a new test that run some assertion
on reload, without ever enabling the console panel.
Since some assertions seem redundant with the test we already had,
we remove them from the old test.

Differential Revision: https://phabricator.services.mozilla.com/D102325
2021-01-21 16:53:09 +00:00
Jared Wein d6647f3b6e Bug 1681421 - Read the label property instead of textContent to exclude hidden text. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D102613
2021-01-21 16:10:45 +00:00
Greg Tatum b9f323e9a1 Bug 1599774 - Localize about:profiling and DevTools perf panel; r=julienw,flod
This handles most of the localization, but will require a few follow-ups.

First off is Bug 1681539, which is for localizing profiler presets. There
isn't anything too weird about this for the DevTools and about:profilling
context, but requires a solution for the popup. The appmenu.ftl bundle
might need to be included.

I did not localize profiler feature list, nor the byte size computation.

Differential Revision: https://phabricator.services.mozilla.com/D99275
2021-01-21 15:49:42 +00:00
Yura Zenevich 2838080937 Bug 1687733 - add a11y exception to a11y clickable check in browser_webconsole_input_focus.js. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D102518
2021-01-21 14:44:09 +00:00
Mihai Alexandru Michis 7fd701f5b0 Backed out changeset acc496d59a30 (bug 1682220) after backing out Bug 1657130 for being its blocker.
CLOSED TREE
2021-01-21 14:11:55 +02:00
Mihai Alexandru Michis 584e130dbe Backed out 3 changesets (bug 1662129) for causing devtools failures in browser_dbg-pause-points.js a=backout
DONTBUILD

Backed out changeset 8562cd4f988b (bug 1662129)
Backed out changeset 9974b7eea47b (bug 1662129)
Backed out changeset 3f4451fcdc25 (bug 1662129)
2021-01-21 11:40:48 +02:00
Yura Zenevich 2695596922 Bug 1687790 - add fail-if condition on a11y_checks for browser_perf-calltree-js-events.js. r=jmaher
Depends on D102473

Differential Revision: https://phabricator.services.mozilla.com/D102474
2021-01-20 20:14:53 +00:00
Yura Zenevich a8b689fb7d Bug 1687789 - add fail-if condition on a11y_checks for browser_net_statistics-02.js. r=jmaher
Depends on D102472

Differential Revision: https://phabricator.services.mozilla.com/D102473
2021-01-20 20:15:06 +00:00
Yura Zenevich 27d059faf4 Bug 1687788 - add fail-if condition on a11y_checks for browser_accessibility_relation_navigation.js. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D102472
2021-01-20 20:15:19 +00:00
Yura Zenevich 3fbacb4238 Bug 1687737 - add fail-if condition on a11y_checks for browser_toolbox_zoom_popup.js. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D102446
2021-01-20 17:53:02 +00:00
Yura Zenevich 7df1b9f0e8 Bug 1687736 - add fail-if condition on a11y_checks for browser_webconsole_network_message_ctrl_click.js. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D102445
2021-01-20 17:53:22 +00:00
Yura Zenevich 5352774bb3 Bug 1687733 - add fail-if condition on a11y_checks for browser_webconsole_input_focus.js. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D102442
2021-01-20 17:53:44 +00:00
Yura Zenevich 78914224a8 Bug 1687728 - add fail-if condition on a11y_checks for frame-link-filename tests. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D102438
2021-01-20 17:53:44 +00:00
Julian Descottes cb6de899a4 Bug 1676618 - [devtools] Do not create legacy listeners twice for same target r=ochameau,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D102307
2021-01-20 14:55:49 +00:00
Yura Zenevich e4da789e56 Bug 1687723 - add fail-if condition on a11y_checks for ruleview-shapeswatch tests. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D102437
2021-01-20 16:30:39 +00:00
Alexandre Poirot 5ff9f49b96 Bug 1662129 - [devtools] Wait for EVALUATE_EXPRESSIONS actions from browser_dbg-expressions.js r=nchevobbe
The two "location" expressions being added, removed and re-added
are mixed up in the UI if we don't wait for the evaluation of the first,
before removing and re-adding it.

Differential Revision: https://phabricator.services.mozilla.com/D102323
2021-01-20 14:54:07 +00:00
Alexandre Poirot bfab7e2f76 Bug 1662129 - [devtools] Rename ensureSourceActor to waitForSourceActorToBeRegisteredInStore. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D102290
2021-01-20 10:02:25 +00:00
Alexandre Poirot ecd14bfebf Bug 1662129 - [devtools] Introduce breakpoint resource. r=nchevobbe,jdescottes
This is the simple step, where we move the ThreadFront code related to pauses
from Debugger frontend to a legacy listener.
The next patch is the hard one, which will replace paused/resumed events by resources.

It may sound weird to have pause and resume to becomes resources,
as they aren't really resources. These are transcient events, which we don't
really want to record. We especially do not really care to save them in the ResourceWatcher cache.

But, by becoming resources, we benefit from the resources framework, which allows to:
* listen and emit such event as early as the page/target starts loading
* do not depend on a particular front to be ready/attached on the frontend
* once we communicate to the watcher we care about breakpoints, we do register the breakpoint listening code for all the targets.
(we no longer have to do a per-target work in the frontend)

Differential Revision: https://phabricator.services.mozilla.com/D88851
2021-01-19 10:26:53 +00:00
Florian Quèze 04bd4a7047 Bug 1687677 - ignore content windows when checking if a new window is a private window that should lock the profiler, r=julienw.
Differential Revision: https://phabricator.services.mozilla.com/D102405
2021-01-20 14:36:21 +00:00
Yura Zenevich b589387e9e Bug 1667998 - pass accessibility checks for tests that need a11y exceptions. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D97324
2021-01-15 18:20:42 +00:00
Yura Zenevich a6e8d4aaa9 Bug 1667998 - converted calls to EventUtils.sendMouseEvent to be async. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D97323
2021-01-15 18:20:44 +00:00
Gerald Squelart 70fea80cd0 Bug 1687603 - Bring 'CPU Utilization' description up to date - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D102380
2021-01-20 09:05:10 +00:00
nchevobbe 087cac0b8e Bug 1682220 - [devtools] Use nsiWorkerDebugger#windowIds instead of window reference in DevToolsWorkerChild. r=ochameau.
This also allow us to remove the ignoreExistingTargets option we had to workaround Bug 1673024.

Depends on D99441

Differential Revision: https://phabricator.services.mozilla.com/D99648
2021-01-20 07:04:55 +00:00
Belén Albeza c44968b45f Bug 1674068 - [devtools] Fix wrong host being displayed for content process storages r=ochameau
Since about:blank gets spawned in the same process when included in a frame, it was being added as a host for the top page in content process storage resources. This patch removes about:blank from the `windows` list unless it is the top level page itself.

Differential Revision: https://phabricator.services.mozilla.com/D96029
2021-01-18 14:59:07 +00:00
Nicolas Chevobbe 8998a2e56f Bug 1682340 - [devtools] Prevent triggering Reader Mode with reverse search keyboard shortcut on Windows. r=bomsy.
We weren't calling preventDefault on the event handler, which was
allowing the browser to consume it, and toggle reader mode on windows,
which shares the same keyboard shortcut (F9).
A test is added to ensure we don't regress this (the test is failing without
the fix).

Differential Revision: https://phabricator.services.mozilla.com/D101919
2021-01-19 15:45:04 +00:00
Nicolas Chevobbe 64f754d22d Bug 1687294 - [devtools] Fix Symbol node value in ObjectInspector. r=bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D102258
2021-01-19 14:36:48 +00:00
Abhishek Sharma 2086f68cb0 Bug 1685638 - Change :not(:disabled) to :enabled in CSS files. r=ntim
Differential Revision: https://phabricator.services.mozilla.com/D101130
2021-01-19 14:02:38 +00:00
Alexandre Poirot 2fa4a4364b Bug 1685493 - Ensure breaking in xpcshell test, even if first line isn't breakable. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D101019
2021-01-19 11:01:54 +00:00
Masatoshi Kimura 54c1b8dee1 Bug 1687108 - Remove unused content policy types. r=ckerschb,remote-protocol-reviewers,smaug
Differential Revision: https://phabricator.services.mozilla.com/D102083
2021-01-19 09:42:13 +00:00
Mihai Alexandru Michis d46c857be9 Backed out changeset 65d5af50131e (bug 1682340) for causing dt failures in browser_jsterm_editor_reverse_search_keyboard_navigation.js
CLOSED TREE
2021-01-18 22:15:52 +02:00
Hubert Boma Manilla 6b75f04928 Bug 1687192 - [devtools] Make sure multiple bacth updates with the same id does not override former r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D102117
2021-01-18 17:28:10 +00:00
Hubert Boma Manilla 86a26392f1 Bug 1687205 - [devtools] Use the network event actor id when getting stacktraces r=ochameau,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D102116
2021-01-18 17:28:03 +00:00
Hubert Boma Manilla 9cb65eed7f Bug 1665383 - [devtools] Enable NETWORK_EVENT and NETWORK_EVENT_STACKTRACE by default for fission r=ochameau
Enable NETWORK_EVENT and NETWORK_EVENT_STACKTRACE resources by default

Differential Revision: https://phabricator.services.mozilla.com/D99625
2021-01-18 17:27:55 +00:00
Steven MacLeod 23e132b9fd Bug 1682335 - remove unused takeScreenshot() test function. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D99696
2021-01-18 17:34:31 +00:00
Nicolas Chevobbe a862e95663 Bug 1607741 - [devtools] Remove webconsole cd command. r=ladybenko.
The command is removed and the test that were using it
are either removed or updated.

Differential Revision: https://phabricator.services.mozilla.com/D101928
2021-01-18 17:02:14 +00:00
Noemi Erli 77bb8db1ff Backed out 3 changesets (bug 1687205, bug 1687192, bug 1665383) for causing devtools failures in browser_net_block-csp.js CLOSED TREE
Backed out changeset 812caf90c2c5 (bug 1687192)
Backed out changeset 68f676381ab4 (bug 1687205)
Backed out changeset 34dd7e523954 (bug 1665383)
2021-01-18 18:00:02 +02:00
Hubert Boma Manilla 019dc8a844 Bug 1687192 - [devtools] Make sure multiple batch updates with the same id does not override former r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D102117
2021-01-18 12:51:20 +00:00
Hubert Boma Manilla 2f728bd220 Bug 1687205 - [devtools] Use the network event actor id when getting stacktraces r=ochameau,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D102116
2021-01-18 12:50:14 +00:00
Hubert Boma Manilla f62c623e39 Bug 1665383 - [devtools] Enable NETWORK_EVENT and NETWORK_EVENT_STACKTRACE by default for fission r=ochameau
Enable NETWORK_EVENT and NETWORK_EVENT_STACKTRACE resources by default

Differential Revision: https://phabricator.services.mozilla.com/D99625
2021-01-18 12:50:06 +00:00
Nicolas Chevobbe 0a6af59794 Bug 1682340 - [devtools] Prevent triggering Reader Mode with reverse search keyboard shortcut on Windows. r=bomsy.
We weren't calling preventDefault on the event handler, which was
allowing the browser to consume it, and toggle reader mode on windows,
which shares the same keyboard shortcut (F9).
A test is added to ensure we don't regress this (the test is failing without
the fix).

Differential Revision: https://phabricator.services.mozilla.com/D101919
2021-01-18 10:56:22 +00:00
Julian Descottes 59f257e05b Bug 1686933 - [devtools] Remove unused sendPacket/sendPacketToThread helpers r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D101920
2021-01-18 11:35:24 +00:00
Alexandre Poirot 8e41ab4800 Bug 1489217 - Pull out headers and cookies fetching from _createNetworkEvent into a dedicated function. r=bomsy
I'm doing that because previous patch triggered an eslint warning
about _createNetworkEvent being too complex.

Differential Revision: https://phabricator.services.mozilla.com/D101829
2021-01-18 08:48:12 +00:00
Alexandre Poirot 4544e6fbb4 Bug 1489217 - Avoid 'NS_ERROR_FAILURE [nsITraceableChannel.setNewListener]' exception when running DevTools. r=bomsy
This exception happens quite frequently with Fission enabled as we start observing requests
while the page already start loading. This happens frequently when target switching.

Differential Revision: https://phabricator.services.mozilla.com/D101828
2021-01-18 08:49:50 +00:00
Nicolas Chevobbe 3206d5a328 Bug 1686036 - [devtools] Avoid error count icon unnecessary render. r=jdescottes.
In `setErrorCount`, we used to call setToolboxButtons unconditionally, which means
that it was called each time a resource was added or updated.
This was very expensive and would cause some slowness, especially on pages with
a lot of network requests, as revealed by DAMP tests.

In this patch, we don't call setToolboxButtons if the error count did not change.
On top of that, we add a throttle mechanism so the function can't be called more
than twice per second.

Differential Revision: https://phabricator.services.mozilla.com/D102136
2021-01-18 09:15:31 +00:00
longsonr dd9e8bf312 Bug 1687136 - remove svg.transform-box.enabled pref r=emilio
It's been default true since Firefox 55 via bug 1208550

Differential Revision: https://phabricator.services.mozilla.com/D102093
2021-01-18 08:11:05 +00:00
Markus Stange c66257367b Bug 1650835 - Use a "button-and-view" widget for the profiler button. r=florian
Differential Revision: https://phabricator.services.mozilla.com/D98217
2021-01-15 17:04:25 +00:00
Noemi Erli 8ad2a18a79 Backed out 5 changesets (bug 1667998) for breaking a11y checks CLOSED TREE
Backed out changeset 633dda979b22 (bug 1667998)
Backed out changeset c9838cdb1303 (bug 1667998)
Backed out changeset 501c54cf59be (bug 1667998)
Backed out changeset 615b74c822ec (bug 1667998)
Backed out changeset 6d187c01fcb3 (bug 1667998)
2021-01-15 20:16:06 +02:00
Yura Zenevich 3ba4e17cfb Bug 1667998 - pass accessibility checks for tests that need a11y exceptions. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D97324
2021-01-15 16:54:05 +00:00
Yura Zenevich 33ccace61e Bug 1667998 - converted calls to EventUtils.sendMouseEvent to be async. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D97323
2021-01-15 16:53:43 +00:00
Nicolas Chevobbe 1c5bbdcbf4 Bug 1685413 - [devtools] Re-enable devtools/client/dom/test/browser_dom_fission_target_switching.js test for Fission. r=ladybenko.
The test used to fail after navigating because the expected property
wasn't displayed.
Here we're trying to work around that by:
- using the navigateTo helper function, which takes care of waiting for the right events
- awaiting until the property is displayed (since it wasn't before), just in case the
rendering takes more time than expected.

Differential Revision: https://phabricator.services.mozilla.com/D101783
2021-01-15 15:52:51 +00:00
Julian Descottes 1ebf6fb74b Bug 1685470 - [devtools] Disable the error count button for browser_aboutdebugging_addons_debug_popup.js r=nchevobbe
Depends on D101569

Differential Revision: https://phabricator.services.mozilla.com/D101789
2021-01-15 13:14:20 +00:00
Nicolas Chevobbe 5fbc310a54 Bug 1685985 - [devtools] Handle error count button like other toolbox buttons. r=jdescottes.
A button configuration is now created from _buildButtons so the error count button
is part of the `toolbarButtons` property on the toolbox.
An `updateErrorCountButton` updates the property of the button, and we call it
from the function that updates the error count, from which we also trigger a new
render for the toolbar.

This way updating the error count will go through the overflow logic we have in
the toolbar (to show the chevron or not).

A "side effect" of this is that an item is automatically created in the options
panel to disable the error count button. In order for it to work properly, we
need to add a preference to store its enabled state, as well as a specific
localized string for the input label.

browser_toolbox_error_count is updated to ensure that the error button isn't
displayed if it was disabled in the option panel, even if new errors are emitted.

browser_toolbox_options_disable_buttons was updated to reflect the changes made
to the error count button.

Differential Revision: https://phabricator.services.mozilla.com/D101569
2021-01-14 07:54:44 +00:00
Nicolas Chevobbe 9a4fbe4bae Bug 1685985 - [devtools] Refactor browser_toolbox_options_disable_buttons. r=bomsy.
- switch to add_task + registerCleanupFunction
- reorder functions so they match the order they're called in the main function
- remove global variables in favor of explicit parameters
- switch from Promise chains to await where possible

Differential Revision: https://phabricator.services.mozilla.com/D101568
2021-01-14 21:31:03 +00:00
Micah Tigley 1b5b46ec79 Bug 1680637 - Update tests using the old dialog UI to only use the old UI. r=jaws,Gijs,marionette-reviewers,whimboo,remote-protocol-reviewers
Depends on D100172

Differential Revision: https://phabricator.services.mozilla.com/D101388
2021-01-14 21:45:14 +00:00
Mark Banner 2d9f7dc611 Bug 1583064 - Enable inline preview for class fields within the debugger. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D101733
2021-01-14 13:43:22 +00:00
Julian Descottes fcdde34de5 Bug 1686235 - [devtools] Enable MBT in browser_browser_toolbox_debugger.js r=ochameau
Will make sure the MBT is enabled in channels where the corresponding preference is false (everywhere except Nightly)

Differential Revision: https://phabricator.services.mozilla.com/D101781
2021-01-14 17:45:59 +00:00
Alexandre Poirot cae099948e Bug 1686564 - [devtools] Register onExceptionUnwind only once. r=nchevobbe
Stop unregistering onExceptionUnwind on navigation (will-navigate) and pauses.
So that we no longer have to re-register it on window-ready and resume.
Instead, only check that we aren't paused when processing an exception.
Regarding navigation, I don't think we want to ignore any exception during the process of navigating to another page.
I would rather say we want to catch anything that happen during this process!

Differential Revision: https://phabricator.services.mozilla.com/D101651
2021-01-14 08:28:18 +00:00
Alexandre Poirot b326fcddff Bug 1686480 - [devtools] Make ThreadActor.pauseOnExceptions just a wrapper to reconfigure method. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D101650
2021-01-14 07:51:33 +00:00
Alexandre Poirot b95dbbd583 Bug 1686480 - [devtools] Allow all options currently passed to ThreadActor.attach to be passed via ThreadActor.reconfigure. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D101471
2021-01-14 07:54:01 +00:00
Alexandre Poirot 04a5a9ecf9 Bug 1686480 - [devtools] A few naive cleanups in ThreadActor. r=nchevobbe
Bind onExceptionUnwind only once, remove unused _scripts attribute, create _debuggerSourcesSeen from constructor.

Differential Revision: https://phabricator.services.mozilla.com/D101470
2021-01-14 07:50:56 +00:00
Mihai Alexandru Michis 2abb23a415 Backed out 4 changesets (bug 1680637, bug 1682395) for causing mochitest failures in browser_javascriptDialog*.js
CLOSED TREE

Backed out changeset f5c4603fc02d (bug 1680637)
Backed out changeset 2f89ad4b915e (bug 1682395)
Backed out changeset 2b7e1df00a1c (bug 1680637)
Backed out changeset c35335c49551 (bug 1680637)
2021-01-14 01:51:52 +02:00
Sebastian Zartner 7ba40f5b60 Bug 1579017 - Corrected inactive CSS rule for order property, making it valid for grid items. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D101267
2021-01-13 19:28:17 +00:00
Tim Nguyen 21aaf562ea Bug 1686350 - Remove defer() from devtools/shared/security/socket.js. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D101603
2021-01-13 15:39:57 +00:00
Julian Descottes 75d7922fc7 Bug 1589658 - [devtools] Guard against missing handlerDO.script in React event-collector r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D101599
2021-01-13 15:16:07 +00:00
Micah Tigley 298219ee45 Bug 1680637 - Update tests using the old dialog UI to only use the old UI. r=jaws,Gijs,marionette-reviewers,whimboo
Depends on D100172

Differential Revision: https://phabricator.services.mozilla.com/D101388
2021-01-13 13:27:08 +00:00
Falguni Islam d6961d7fdf Bug 1681888 - [devtools] Remove defer usage in devtools/server/startup/worker.js. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D100552
2021-01-13 13:58:41 +00:00
Nicolas Chevobbe 00c0475c5d Bug 1686417 - [devtools] Generate a list of deprecated DOM methods and attributes. r=ladybenko.
This patch modifies and renameGeneratePureDOMFunctions.py so it generates a new file
indicating all the deprecated properties and methods so we can retrieve those information
in DevTools, in order, for example, to not call those deprecated properties and avoid generating
warning messages.

Differential Revision: https://phabricator.services.mozilla.com/D80864
2021-01-13 13:03:10 +00:00
nchevobbe 41791c52d9 Bug 1682534 - [devtools] Format generated file from GeneratePureDOMFunctions.py . r=ladybenko.
We take the opportunity to remove the parser.out file that
is generated when parsing the webidl files.

Differential Revision: https://phabricator.services.mozilla.com/D99772
2021-01-13 12:59:41 +00:00
Hubert Boma Manilla c0cca06a13 Bug 1686440 - [devtools] Fix webconsole network events and stacktrace tests r=ochameau,nchevobbe
Fixes browser_webconsole_stubs_network_event.js
Fixes browser_webconsole_network_messages_stacktrace_console_initiated_request.js

Differential Revision: https://phabricator.services.mozilla.com/D99623
2021-01-13 12:37:21 +00:00
Tim Nguyen e8f4f16d7b Bug 1686346 - Remove promise.defer() usage from browser_dbg_navigation.js. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D101511
2021-01-13 06:15:29 +00:00
Julian Descottes 2d91e59e16 Bug 1682029 - [devtools] Remove unused screenshotToDataUrl in devtools/server/actors/device.js r=devtools-backward-compat-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D101347
2021-01-13 09:06:16 +00:00
Butkovits Atila 7742c03714 Backed out 4 changesets (bug 1680637, bug 1682395) for causing Marionette failures. CLOSED TREE
Backed out changeset 073e0be7db95 (bug 1680637)
Backed out changeset 552b91b31b0f (bug 1682395)
Backed out changeset c80de6c72779 (bug 1680637)
Backed out changeset d513e228b0ad (bug 1680637)
2021-01-13 02:13:06 +02:00
Micah Tigley 06e7942185 Bug 1680637 - Update tests using the old dialog UI to only use the old UI. r=jaws,Gijs
Depends on D100172

Differential Revision: https://phabricator.services.mozilla.com/D101388
2021-01-12 22:32:24 +00:00
Tim Nguyen d807516fc0 Bug 1273941 - Followup: remove leftover comment in browser_styleeditor_sourcemap_watching.js. DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D101510
2021-01-12 22:59:49 +00:00
Nicolas Chevobbe e58ea6fb75 Bug 1599317 - [devtools] Fix performance issue in ObjectInspector when we have a lot of instances. r=bomsy.
At the moment, the ObjectInspector, while having its own reducer and actions, has its
state located in the state of its consumer application (e.g. webconsole, debugger).
This patch, by adding a `standalone` prop to the ObjectInspector, will allow the said
consumer to not have the object inspector state shared anymore.
This makes interaction in a given objectInspector much faster as only one instance
will have its lifecycle methods triggered. It also prevent cloning the consumer's state
on each object inspector interaction.
This new props is only used in the webconsole for now, as the debugger might need
to have access to its objectInspector state (this is also less of a problem, because
the debugger won't hold that much instances at a given point in time, unlike the console).

The DAMP data seems to indicate a 40% improvement in the console when expanding
an object while there are a thousand instances in the console.

Differential Revision: https://phabricator.services.mozilla.com/D99472
2021-01-12 07:08:33 +00:00
Nicolas Chevobbe 6bdda30b67 Bug 1557247 - [devtools] Share node global shims and mocks across panels. r=bomsy.
This patch adds a shared-node-helper function that, for now,
exposes a single setMocksInGlobal function. This function
adds node global missing apis (e.g. requestAnimationFrame, indexedDB, ...),
and is called from the different node setup files, than can then be cleaned up.
For some reason, a debugger test had to be updated to pass.

Differential Revision: https://phabricator.services.mozilla.com/D99471
2021-01-12 07:08:21 +00:00
Nicolas Chevobbe ec7fee5e53 Bug 1557247 - [devtools] Share jest config and fixtures across panels. r=ladybenko.
This creates a new devtools/client/shared/test-helpers folder in which we add
a share jest config, which define a `moduleNameMapper` option with all the
different fixtures that were used in the codebase.

The fixtures were moved from different panels to a jest-fixtures folder and
the one that were left unused are removed.
Some fixtures file needed to be modified to satisfy eslint rules.

Differential Revision: https://phabricator.services.mozilla.com/D99470
2021-01-12 12:32:12 +00:00
Nicolas Chevobbe 61bf016006 Bug 1568833 - [devtools] Make Screenshot Node context menu item fission-compatible. r=jdescottes.
Retrieve the target in which the selected node lives in order
to get the right screenshotFront.

There was already a test checking that taking a node in an iframe was working,
but it was a same-origin iframe.
We modify the test so it checks both same-origin and remote iframe.

Differential Revision: https://phabricator.services.mozilla.com/D101438
2021-01-12 09:06:11 +00:00
Nicolas Chevobbe 7f9286d7e3 Bug 1568833 - [devtools] Fix helper_screenshot_node helper. r=jdescottes.
The `waitUntilScreenshot` wasn't waiting for a new screenshot to be taken, and
if a test took 2 screenshots, it would always return the first one. This is
fixed by managing an array of the downloads we already waited for.

The test was also assuming the dpr of the screen was always 1, which was making
the test fail when running on a machine with a higher dpr screen (e.g. a retina screen).
The assertion for the width and height are updated to take dpr into account.

Differential Revision: https://phabricator.services.mozilla.com/D101437
2021-01-12 08:35:02 +00:00
Nicolas Chevobbe f2a18ac0c2 Bug 1593687 - [devtools] Add a test for Navigation message when switching to different origin top-level target. r=bomsy.
This extends the existing test for Navigation messages.

Differential Revision: https://phabricator.services.mozilla.com/D101440
2021-01-12 08:37:42 +00:00
Julian Descottes b3c13a8444 Bug 1686184 - [devtools] Cleanup webreplay leftover in inspector/inspector.js r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D101444
2021-01-12 08:31:56 +00:00
Emilio Cobos Álvarez dae007dd80 Bug 1684909 - Update the devtools CSS database.
MANUAL PUSH: Orange in a CLOSED TREE
2021-01-11 23:31:49 +01:00
Alexandre Poirot dc000caa3b Bug 1685090 - [devtools] Fix and re-enable browser toolbox test for breakpoints. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D100928
2021-01-11 13:23:11 +00:00
Alexandre Poirot 6bd8a09aee Bug 1685090 - [devtools] Print exceptions when importing functions thrown in browser toolbox tests. r=jdescottes
Without this, we were silently ignoring many errors when evaluating a piece of JS.
Imported function may still work, but were missing global variables. Very misleading!

Differential Revision: https://phabricator.services.mozilla.com/D100927
2021-01-11 13:11:50 +00:00
Alexandre Poirot c6424c9f35 Bug 1685090 - [devtools] Set breakpoints against the top level process target in the context of the browser toolbox. r=jdescottes
We need to use the same technique as in watchResources in order to ensure
reaching out the top level targets running in the parent process...

Differential Revision: https://phabricator.services.mozilla.com/D100926
2021-01-11 13:20:30 +00:00
Razvan Caliman 318a342492 Bug 1684595 - [devtools] Update tests for toggling the grid highlighter with the swatch from the Rules view r=jdescottes
Depends on D100564

This patch updates test which deal with swatches for toggling a CSSGridHighlighter from the Rules view.  This is similar to changes made for FlexboxHighlighter tests in D96225.
The changes are straightforward:
- replace the class name of the toggle: `.ruleview-grid` → `.js-toggle-grid-highlighter`
- use generic test helpers for highlighters: `waitForHighlighterTypeShown`, `waitForHighlighterTypeHidden`

NOTE: To reviewers: I won't be able to address code review comments. Please commandeer, update, and land this patch yourself.

Differential Revision: https://phabricator.services.mozilla.com/D100565
2021-01-06 15:59:32 +00:00
Razvan Caliman d54ada01a0 Bug 1684595 - [devtools] Update the state of the swatch for grid highlighters from the Rules view r=jdescottes
Depends on D100563

Following the example introduced for FlexboxHighlighter in D96225, this patch updates the state of the swatch to toggle the CSSGridHighlighter from the Rules view in response to corresponding highlighter events.

NOTE: To reviewers: I won't be able to address code review comments. Please commandeer, update, and land this patch yourself.

Differential Revision: https://phabricator.services.mozilla.com/D100564
2021-01-06 16:32:42 +00:00
Razvan Caliman 0fa31c1830 Bug 1684595 - [devtools] Toggle grid highlighter from clicks on swatches in Rules view r=jdescottes
This patch is following the precedent introduced for FlexboxHighlighter in D96225 to delegate click event handling to the Rules view and toggle the CSSGridHighlighter from there (moving out of HighlightersOverlay). It introduces a new class name to designate the toggle element, `js-toggle-grid-highlighter`, independent from class names used for styling.

Patches later in this series update the corresponding tests.

NOTE: To reviewers: I won't be able to address code review comments. Please commandeer, update, and land this patch yourself.

Differential Revision: https://phabricator.services.mozilla.com/D100563
2021-01-06 16:48:20 +00:00
Alexandre Poirot 0dc8212706 Bug 1685257 - [devtools] Remove unused allowChromeProcess trait. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D101017
2021-01-07 13:40:46 +00:00
Julian Descottes fd11895f5b Bug 1605107 - [devtools] Wait for picker readiness in browser_browser_toolbox_fission_inspector.js r=nchevobbe
The test is only waiting for `picker-started`, but this does not guarantee that the inspector fronts have been all initialized.
There are several locations in node-picker where we could also "wait", but in general we can't assume that the target we want to test was ready when the test enables the picker.
Which means that waiting for watchTargets at [1] or making watchFronts properly async for [2] will not be a definitive fix for this.

[1] https://searchfox.org/mozilla-central/rev/692a10e624a02fe79bf45046b586e50ea0ff17f1/devtools/client/inspector/node-picker.js#150
[2] https://searchfox.org/mozilla-central/rev/692a10e624a02fe79bf45046b586e50ea0ff17f1/devtools/client/inspector/node-picker.js#124-130

IMO, the only way to really fix this is to emit a test specific event so that tests can check if a specific walker is ready for "pick" events

Differential Revision: https://phabricator.services.mozilla.com/D101335
2021-01-11 12:54:45 +00:00
pedrofonsecadev a9d7e2e52e Bug 1681893 -[devtools] Remove defer usage in devtools/server/tests/xpcshell/head_dbg.js r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D101258
2021-01-11 07:49:25 +00:00