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

20386 Коммитов

Автор SHA1 Сообщение Дата
Tom Schuster ae02d94f29 Bug 1636590 - Update devtools page stubs. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D74603
2020-05-15 20:18:10 +00:00
David Walsh 5cb50223f3 Bug 1617240 - Add reload button for remote debugging r=daisuke,flod,victoria
Differential Revision: https://phabricator.services.mozilla.com/D71370
2020-05-15 16:29:48 +00:00
Hubert Boma Manilla 0c0c25456f Bug 1636394 - Hide response headers for blocked requests r=nchevobbe
Seems like a regression.

As there are actually no responses for blocked requests, this
hides the response headers section when there are no responses.

Also undoing the light gray color on the header titles To fix , Bug 1636917

Differential Revision: https://phabricator.services.mozilla.com/D74410
2020-05-14 18:18:59 +00:00
David Walsh 2048225636 Bug 1631975 - Add settings controls to DevTools debugger r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D73380
2020-05-15 16:42:31 +00:00
Nicolas Chevobbe 2834d00a38 Bug 1636924 - Remove unnecessary isTopLevel and type properties from onTargetAvailable/onTargetDestroyed callback parameter. r=ochameau.
Since targetFronts now have isTopLevel and targetType properties, we can directly use
those, as the targetFront is included in the callback parameter.
This patch remove those properties and refactor consumer code.

Differential Revision: https://phabricator.services.mozilla.com/D74651
2020-05-15 16:03:32 +00:00
Julian Descottes 91c02a6412 Bug 1638290 - Update try syntax for DAMP in the devtools documentation r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D75530
2020-05-15 15:03:04 +00:00
Razvan Maries f5f48cab39 Backed out changeset 3c239920e8fb (bug 1636924) for perma failures on browser_ext_devtools_inspectedWindow.js CLOSED TREE 2020-05-15 15:33:15 +03:00
Andreea Pavel 9257ea9bef Backed out 2 changesets (bug 1594752) for causing bug 1638148 on a CLOSED TREE
Backed out changeset 66cc44b67170 (bug 1594752)
Backed out changeset e781cf38f088 (bug 1594752)
2020-05-15 13:47:49 +03:00
Nicolas Chevobbe 8140fccf69 Bug 1636924 - Remove unnecessary isTopLevel and type properties from onTargetAvailable/onTargetDestroyed callback parameter. r=ochameau.
Since targetFronts now have isTopLevel and targetType properties, we can directly use
those, as the targetFront is included in the callback parameter.
This patch remove those properties and refactor consumer code.

Differential Revision: https://phabricator.services.mozilla.com/D74651
2020-05-15 09:09:28 +00:00
Xidorn Quan 3eaf4644b5 Bug 1276537 part 4 - Remove now-useless fullscreenbutton attribute. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D74557
2020-05-13 12:43:27 +00:00
Daisuke Akatsuka 80d3b6bc61 Bug 1633850: Use the loading policy to restrict networks of StyleEditor. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D75466
2020-05-15 06:31:06 +00:00
Daisuke Akatsuka 6bd4831b79 Bug 1637540: Add test for a property defined with prefix. r=rcaliman
Depends on D75256

Differential Revision: https://phabricator.services.mozilla.com/D75257
2020-05-14 18:19:42 +00:00
Daisuke Akatsuka bcb5bd2ded Bug 1637540: Avoid comparing with perfix if the compat data is defined with prefix. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D75256
2020-05-15 00:27:37 +00:00
Razvan Caliman c85367f9d5 Bug 1623988 - Extract CSS variables used in a CSS declaration for quick reference r=jdescottes
Inspecting pages with many CSS variables makes DevTools Inspector very slow.
For example, try to inspect an element on [youtube.com](https://www.youtube.com/).

One of the stylesheets loaded by youtube.com contains more than 7800 CSS rules (it's 55K lines long). Some of them specify a very large number of CSS variable delcarations on `:root` which will be inherited by all nodes on the page. This is a perf bottleneck for DevTools.
{F2150398}

Whenever an element is selected, its matching CSS declarations show in the Rules view. If the node inherits CSS variables, for **each declaration**, the Rules view checks if the [variables apply to the current declaration](https://searchfox.org/mozilla-central/rev/2bfe3415fb3a2fba9b1c694bc0b376365e086927/devtools/client/inspector/rules/models/element-style.js#403-408,417,424).

This among other expensive operations which are repeated for each declaration. But for CSS variables, it's particularly slow given the frequent [checks with a regular expression](https://searchfox.org/mozilla-central/rev/2bfe3415fb3a2fba9b1c694bc0b376365e086927/devtools/client/inspector/rules/utils/utils.js#292-295) to verify if a CSS declaration's value includes any references to a given CSS variable name.

This patch introduces new functionality. When a `TextProperty` (aka CSS declaration model) is created on the client, the names of CSS variables found in its value are extracted ahead of time into a `Set`. Whenever we want to check if the declaration uses a certain CSS variable name, we check against this pre-compiled list instead of verifying the string value every time. For high volume checks, like the ones done by the `ElementStyle`, this approach proves significantly faster.

Profile without this patch: https://bit.ly/2Yd7khD
Profile with this patch: https://bit.ly/3aMhJTZ

There are still many optimizations that can be done, but the `hasCSSVariable()` method is no longer a performance bottleneck.

Differential Revision: https://phabricator.services.mozilla.com/D73062
2020-05-14 18:20:00 +00:00
Nicolas Chevobbe 003ec9e5de Bug 1637983 - Replace Slack links by Matrix in documentation. r=jdescottes.
We take this as an opportunity to remove
outdated information in aboutdebugging readme.

Differential Revision: https://phabricator.services.mozilla.com/D75314
2020-05-14 14:57:15 +00:00
Belén Albeza 3f4d65a8af Bug 1635401 - Part 4: Fix about:debugging link appearance r=jdescottes
Depends on D74668

Differential Revision: https://phabricator.services.mozilla.com/D74679
2020-05-13 12:20:32 +00:00
Belén Albeza 9bf989a899 Bug 1635401 - Part 3: Fix registration scope appearance r=jdescottes
Depends on D74659

Differential Revision: https://phabricator.services.mozilla.com/D74668
2020-05-12 15:49:02 +00:00
Belén Albeza d55a12f74c Bug 1635401 - Part 2: add colored dot to mark service worker state r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D74659
2020-05-12 15:47:54 +00:00
Belén Albeza e87e86bf59 Bug 1635401 - Part 1: fix font sizes, weights, paddings, margins, etc. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D74656
2020-05-12 15:46:43 +00:00
Jan Odvarko 15fda593b2 Bug 1555057 - Show the related Add-on for blocked resources. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D65452
2020-05-14 08:51:29 +00:00
Farooq AR 2340728c04 Bug 1636417 - Implement EventSourceActor. r=Honza,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D75066
2020-05-14 07:54:18 +00:00
Nicolas Chevobbe fae6df43c5 Bug 1636995 - Fix scrolling issue with error messages. r=Honza.
The PageError component wasn't passing the maybeScrollToBottom
prop to the GripMessageBody, which was making the console out-of-autoscroll
since the stacktrace is rendered asynchronously.
Some tests cases are added (throwing directly from an evaluation,
or in a setTimeout), so we cover different paths.

Differential Revision: https://phabricator.services.mozilla.com/D74708
2020-05-13 15:42:55 +00:00
Neil Deakin e11f8b01e0 Bug 1594752, use WindowGlobalParent's documentTitle to update tab titles rather than sending messages and events between processes, r=Gijs
Fix up the browser_tab_label_during_restore.js test to wait for the right number of tab title changes, since the timing of the tab title updating has now changed.

Differential Revision: https://phabricator.services.mozilla.com/D72562
2020-05-13 19:26:10 +00:00
Brindusan Cristian f6e0d86cb5 Backed out changeset 1c4b489b6aa0 (bug 1309824) for dt failures at browser_tableWidget_basic.js. CLOSED TREE 2020-05-14 00:14:16 +03:00
Sebastian Zartner b5e4795236 Bug 1309824 - Show proper descriptions for storage types. r=jdescottes,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D70663
2020-05-13 18:38:02 +00:00
Jason Laster bedcba7d39 Bug 1619622 - Various fixes after switching processes to the TargetList r=loganfsmyth
Differential Revision: https://phabricator.services.mozilla.com/D74240
2020-05-13 14:45:05 +00:00
Jason Laster c5c9a96e1e Bug 1619622 - Assert the context in various additional places. r=loganfsmyth
Differential Revision: https://phabricator.services.mozilla.com/D74239
2020-05-13 14:44:57 +00:00
Alexandre Poirot 8919127993 Bug 1619622 - Stop fetching the sources twice. r=jdescottes,jlast
We already do that from actions, once per added thread.
Only the timing may be different.

Differential Revision: https://phabricator.services.mozilla.com/D72686
2020-05-13 15:10:35 +00:00
Alexandre Poirot 80bb55f6f4 Bug 1619622 - Update target/thread individually from the TargetList listeners. r=jdescottes,jlast
Differential Revision: https://phabricator.services.mozilla.com/D72685
2020-05-13 14:44:53 +00:00
Alexandre Poirot 33fed82ffa Bug 1619622 - Use the TargetList to fetch content process targets in the Debugger. r=jdescottes,jlast
Differential Revision: https://phabricator.services.mozilla.com/D65125
2020-05-13 14:44:45 +00:00
David Walsh 3c8142a051 Bug 1637469 - Rename browser_aboutdebugging_navigate_to_url.js test r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D75114
2020-05-13 15:08:31 +00:00
Julian Descottes 38c244e508 Bug 1633748 - Generate console stubs using the ResourceWatcher r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D73443
2020-05-13 12:46:49 +00:00
Christoph Kerschbaumer 026a7442f3 Bug 1636900: Remove TYPE_XBL from nsIContentPolicy. r=remote-protocol-reviewers,emilio,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D74835
2020-05-13 06:53:28 +00:00
Yura Zenevich 2d0b0bc893 Bug 1636490 - rely on garbage collection rather than disabling via UI when testing accessibility panel. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D74411
2020-05-11 17:45:54 +00:00
Micah Tigley f5ddf2c2d3 Bug 1636348 - Ensure the connection between the about:devtools-toolbox's client and server is closed. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D74467
2020-05-12 17:01:12 +00:00
Nicolas Chevobbe 46d31cc93b Bug 1631529 - Fix intermittent in browser_jsterm_editor_toggle_keyboard_shortcut.js . r=davidwalsh.
The test was failing on ccov machines because it was
timing out. The interesting part is that in the logs
we could see that a huge error was logged, because
we were hitting the IGNORED REDUX ACTION middleware,
which was about a SET_TERMINAL_EAGER_RESULT action
being blocked.
I think that logging this object was taking so much
time that it made the test timeout on slow machines.

So here we're simply waiting for the eager evaluation
result to be displayed, so we know that the action won't
be ignored.

Differential Revision: https://phabricator.services.mozilla.com/D74879
2020-05-12 17:18:46 +00:00
Florens Verschelde 2f778385e8 Bug 1634380 - Part 2: Split devtools-button and legacy devtools-toolbarbutton styles; r=ladybenko
Differential Revision: https://phabricator.services.mozilla.com/D73495
2020-05-12 13:22:28 +00:00
Florens Verschelde 1fefd1dfc2 Bug 1634380 - Part 1: Flatten CSS variable dependencies for --toolbarbutton variables; r=ladybenko
Differential Revision: https://phabricator.services.mozilla.com/D73494
2020-05-12 13:22:00 +00:00
Julian Descottes f3ef81b8c1 Bug 1637012 - Set devtools.browsertoolbox.fission to true in browser_resources_several_resources.js r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D74828
2020-05-12 12:22:27 +00:00
Alexandre Poirot 718bf89e62 Bug 1620966 - Move DocShell.watchedByDevtools to BrowsingContext and rename it to watchedByDevTools. r=nika,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D66037
2020-05-12 09:18:26 +00:00
Nicolas Chevobbe f1498ffff6 Bug 1634432 - Enable inspecting error object in sidebar. r=bomsy.
To enable the Open In Sidebar action, we were retrieving the
actor id of the root node of an object inspector.
But in the case of error, we don't use the object inspector
to render them, only the reps.
We still have a reference to the actor id though, so when
there's no object inspector, but that we have an actor id
ref, we enable the action.
A test case is added in a mochitest to ensure this works as
expected for an error object, and that we can observe custom
properties that are not displayed in the error rep.

This also reveiled an issue with React keys in the Error rep,
which we fix in this patch.

Differential Revision: https://phabricator.services.mozilla.com/D73301
2020-05-12 08:34:58 +00:00
Nicolas Chevobbe 90668a72e5 Bug 1607569 - Fix leak in browser_console_devtools_loader_exception. r=ochameau.
In the Browser toolbox destroy function, we now wait for
any pending connection initialization promise.
In the test we close the browser toolbox at the end.
We also need to guard a few method in the connection proxy
to ensure the instances we use are still alive before using
them.

Differential Revision: https://phabricator.services.mozilla.com/D71171
2020-05-12 07:05:27 +00:00
Julian Descottes f229755908 Bug 1620983 - Disable dom.ipc.processPrelaunch.enabled for all devtools tests r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D74612
2020-05-12 08:24:28 +00:00
Micah Tigley 89c6fbb773 Bug 1629729 - Use BrowserTestUtils.loadURI to navigate to a new URL. r=bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D74721
2020-05-11 20:24:21 +00:00
Bogdan Tara bf91ff2f3f Backed out changeset 60e4890ac49a (bug 1636348) for browser_aboutdebugging_navigate_to_url.js failures CLOSED TREE 2020-05-12 00:09:23 +03:00
Tom Schuster 7824fc6e57 Bug 1277801 - Remove Object.prototype.toString classname fallback. r=jwalden
Similar to a patch by Robin Templeton <robin@igalia.com>

Differential Revision: https://phabricator.services.mozilla.com/D72459
2020-05-11 20:53:10 +00:00
Boris Chiou bfdb4fb6ed Bug 1540906 - Disable the pref of synchronizing transform animations with geometric animations on nightly. r=hiro
The original site issue (https://trello.com/) seems not obvious on nightly
now. (See Bug 1301305 for more details.) So perhaps we could give this a
trial to disable this pref, for the better performance in other cases.

Differential Revision: https://phabricator.services.mozilla.com/D74278
2020-05-11 20:40:48 +00:00
Markus Stange 74da9ffadf Bug 1617246 - Always consult objdirs for symbols. r=gregtatum
This moves some symbolication code out of browser.js and into a new module symbolication.jsm.js.

It also threads the pageContext parameter through to getSymbolsFromThisBrowser so that it can
respect the correct objdir pref. This part is probably more complicated than necessary.

Differential Revision: https://phabricator.services.mozilla.com/D63914
2020-05-11 19:52:53 +00:00
Cosmin Sabou db290306ef Backed out changeset 0be5f9822cad (bug 1607569) because it shouldn't have been landed yet. DONTBUILD 2020-05-11 22:45:34 +03:00
Micah Tigley 0ffb21c838 Bug 1636348 - Ensure the connection between the about:devtools-toolbox's client and server is closed. r=jdescottes
The `browser_aboutdebugging_navigate_to_url.js` test times out if we don't wait for the about:devtools-toolbox tab to be removed as a target from about:debugging.

Differential Revision: https://phabricator.services.mozilla.com/D74467
2020-05-11 13:59:27 +00:00