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

95 Коммитов

Автор SHA1 Сообщение Дата
Jason Laster 5f29a6d696 Bug 1622996 - Refactor devtools codebase to use optional chaining (automated changes). r=jdescottes
Depends on D67084

Differential Revision: https://phabricator.services.mozilla.com/D67537

--HG--
extra : moz-landing-system : lando
2020-03-19 21:13:38 +00:00
Jason Laster 897b14485f Bug 1609815 - Remove Web Replay UI. r=loganfsmyth
Differential Revision: https://phabricator.services.mozilla.com/D60679

--HG--
extra : source : cfe2388a674e024d1920245e867f9982087c8164
2020-02-10 21:03:28 +00:00
Noemi Erli 85558b46c4 Backed out changeset cfe2388a674e (bug 1609815) for causing TypeError in browserContext CLOSED TREE 2020-02-11 00:35:52 +02:00
Jason Laster f5531f3716 Bug 1609815 - Remove Web Replay UI. r=loganfsmyth
Differential Revision: https://phabricator.services.mozilla.com/D60679

--HG--
extra : moz-landing-system : lando
2020-02-10 21:03:28 +00:00
Andreea Pavel bc1b47b96a Backed out changeset c41e5432b3c5 (bug 1609815) for build bustages at JSControl.cpp on a CLOSED TREE 2020-01-23 22:34:40 +02:00
Jason Laster 6626357ec2 Bug 1609815 - Remove Web Replay UI. r=loganfsmyth
Differential Revision: https://phabricator.services.mozilla.com/D60679

--HG--
extra : moz-landing-system : lando
2020-01-23 20:07:37 +00:00
Julian Descottes 2e3a4da1af Bug 1603209 - Support remote frame targets in the omniscient browser toolbox r=ochameau
Depends on D57130

Differential Revision: https://phabricator.services.mozilla.com/D56347

--HG--
extra : moz-landing-system : lando
2019-12-18 18:28:00 +00:00
Narcis Beleuzu d7353ef739 Backed out 3 changesets (bug 1603209) for dt leaks at mozilla::net::AddrInfo::AddrInfo . CLOSED TREE
Backed out changeset ef521f6b57ea (bug 1603209)
Backed out changeset 56392b65466b (bug 1603209)
Backed out changeset 10769c72ba39 (bug 1603209)
2019-12-18 18:12:47 +02:00
Julian Descottes efe4d2c870 Bug 1603209 - Support remote frame targets in the omniscient browser toolbox r=ochameau
Depends on D57130

Differential Revision: https://phabricator.services.mozilla.com/D56347

--HG--
extra : moz-landing-system : lando
2019-12-17 16:58:00 +00:00
Emilio Cobos Álvarez 422bc064f3 Bug 1596800 - Remove document.getBindingParent usage from devtools. r=jdescottes
This removes the concept of shadowAnonymous, which doesn't make a lot of sense,
and re-enables the shadow dom tests which were disabled when we removed the old
style system (as stylo didn't supported shadow DOM yet by then).

This is a change in behavior as you can now remove nodes from shadow DOM (no
reason you weren't able to, before).

Differential Revision: https://phabricator.services.mozilla.com/D53340

--HG--
extra : moz-landing-system : lando
2019-11-18 20:54:10 +00:00
Gabriel Luong 7bd0dc6499 Bug 1587789 - Remove isXBLAnonymous functions defined and used in the inspector. r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D50517

--HG--
extra : moz-landing-system : lando
2019-10-24 21:05:44 +00:00
Razvan Caliman 05bbb86d41 Bug 1572651 - (Part 3) Add option for highlighters to get node position without scroll offsets. r=pbro
Depends on D47092

Given that the highlighter rendering surface is sized to the viewport of the inspected page (as opposed to the whole document), we need a way to ignore scroll offsets when getting data about the node position so the highlighter doesn't get drawn off-screen.

Differential Revision: https://phabricator.services.mozilla.com/D47094

--HG--
extra : moz-landing-system : lando
2019-10-10 21:51:43 +00:00
Daniel Varga 6a27b47313 Backed out 3 changesets (bug 1572651) for devtools failure at devtools/client/inspector/test/browser_inspector_highlighter-by-type.js. On a CLOSED TREE
Backed out changeset 71db1896c459 (bug 1572651)
Backed out changeset fb5863ee4d37 (bug 1572651)
Backed out changeset 5ef33867cacb (bug 1572651)
2019-10-10 18:51:17 +03:00
Razvan Caliman 77daa88970 Bug 1572651 - (Part 3) Add option for highlighters to get node position without scroll offsets. r=pbro
Depends on D47092

Given that the highlighter rendering surface is sized to the viewport of the inspected page (as opposed to the whole document), we need a way to ignore scroll offsets when getting data about the node position so the highlighter doesn't get drawn off-screen.

Differential Revision: https://phabricator.services.mozilla.com/D47094

--HG--
extra : moz-landing-system : lando
2019-10-10 14:15:03 +00:00
Patrick Brosset e12f3faba1 Bug 1574401 - Multi-target node-picker in the browser toolbox r=rcaliman,gl,ochameau
The original plan for the node-picker to work with multiple targets was introduced in D41598 (in bug 1568825). The idea was that, because we can have multiple independent inspectable targets, and because the client is the one doing the orchestration between them, to let the client start the node picker in all targets at once.
At the time of this first change, the code was create with this in mind, but there was really just one target (the top-level one).

So, this revision introduces the real code for this. First of all, I removed the now obsolete `getAllInspectorFronts` in `node-picker.js` because we now have a similar function on the inspector front directly.

Then the main code changes to look for are on the actor side, in the `HighlighterActor`. This is where the picking actually happens.
You have to remember that several targets will be picking at the same time, and therefore several `HighlighterActor` instances will be in pick mode at the same time.
The way they allow users to pick is by listening to mouse events (mousemove and clicks essentially).
Because these actors can't see or talk to each other, one can't tell the others that the mouse is now over its content and the other pickers should pause somewhat.

So, when one of them sees that the mouse event is happening on a remote frame, then it bails out and lets events through without handling them. This is so that the embedded document (which also has a picker running) can get a chance to receive the mouse events too.

The other aspect is that each `HighlighterActor`, when picking, does its own highlighting. So if there are 3 remote frames, then there really are 3 highlighters.
So the trick is to make sure only one of them ever appears at any given time. Again, these actors can't talk to each other directly, so the client is responsible for doing this when receiving events that a node was hovered.

This is not perfect, but should normally get far better when the new fission-compatible highlighter is in place. Indeed, when that happens, we won't have to care about this anymore, there will be only one `HighlighterRenderer` for the entire tab. So even if there are multiple `HighlighterActor` instances picking, they will all be sending events to the same renderer.

The only exception is in the browser toolbox where you can inspect both the browser UI and the content UI. In this case, there will be 2 renderers: one over the entire browser window, and one over the <browser> area. So we'll still have to do the dance of hiding one when the other is shown.

Differential Revision: https://phabricator.services.mozilla.com/D42640

--HG--
extra : moz-landing-system : lando
2019-10-08 13:47:18 +00:00
Julian Descottes 34f1606151 Bug 1583444 - Stop using win.top in devtools/shared/layout/utils.js r=pbro
Depends on D46957

We are updating three call sites that were still relying on window.top to get the topmost window.

For `getFrameOffsets` and `getRect`, they are currently only called with a non-null `boundaryWindow` argument.
That's why this didn't trigger any regression.

For `getFrameElement`, I could only find STRs that don't have any user impact.
For instance, when the BrowserToolbox debugs a page where you open DevTools, this will load the toolbox in an iframe.
This load will trigger `onFrameLoad` in the walker actor. And because we were using `win.top`, getFrameElement would return null, and onFrameLoad will not emit mutations.
But I couldn't see any scenario where this had an actual impact for users.

Differential Revision: https://phabricator.services.mozilla.com/D46958

--HG--
extra : moz-landing-system : lando
2019-09-30 09:53:15 +00:00
Brad Werth df189909f4 Bug 1567310 Part 3: Make all devtools callers of getBoxQuads include option to suppress whitespace frames. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D45120

--HG--
extra : moz-landing-system : lando
2019-09-12 19:05:52 +00:00
Victor Porof b8157dfaaf Bug 1561435 - Format remaining devtools/, a=automatic-formatting, CLOSED TREE
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35894

--HG--
extra : source : 4722b924e08478f5337ab509718bd66906bf472f
extra : amend_source : a5baa1aab21639fdba44537e3a10b179b0073cb4
2019-07-05 11:29:32 +02:00
Patrick Brosset a16af7dace Bug 1559257 - Removing getSameTypeRootTreeItemIgnoreBrowserBoundaries and getSameTypeParentIgnoreBrowserBoundaries usage; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D34940

--HG--
extra : moz-landing-system : lando
2019-06-18 15:59:29 +00:00
Brian Hackett f4af857cef Bug 1497393 Part 7 - Server side changes for inspector support while replaying, r=pbro.
Differential Revision: https://phabricator.services.mozilla.com/D22863

--HG--
extra : rebase_source : 1069a8534dd79e1d2cf309c9d3f3c27079077087
extra : histedit_source : 1a750a022d46da836181f913d012081ea608da7f
2019-03-09 16:45:50 -10:00
Ian Moody 85f74da0e4 Bug 1539265 - Add a few optimisations for ::marker pseudos. r=jdescottes
Where there is existing for ::before and ::after.

Differential Revision: https://phabricator.services.mozilla.com/D25107

--HG--
extra : moz-landing-system : lando
2019-04-02 07:45:53 +00:00
Ian Moody 53e960c394 Bug 1539265 - Add isMarkerPseudoElement function to layout/utils.js. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D25105

--HG--
extra : moz-landing-system : lando
2019-04-02 07:45:38 +00:00
arthur.iakab cf3b3f1eb5 Backed out 11 changesets (bug 1539265) for causing debugger failures CLOSED TREE
Backed out changeset 8206b880f9ec (bug 1539265)
Backed out changeset be9f5f73bdfe (bug 1539265)
Backed out changeset f78146b8aa17 (bug 1539265)
Backed out changeset 18fa7e971a0d (bug 1539265)
Backed out changeset 6eaf5bdd945c (bug 1539265)
Backed out changeset 3add7d4d4853 (bug 1539265)
Backed out changeset 8015aeb5279d (bug 1539265)
Backed out changeset 19c8e404ac5f (bug 1539265)
Backed out changeset 637a9d6af0f3 (bug 1539265)
Backed out changeset 72bbb4b28932 (bug 1539265)
Backed out changeset 931e98129878 (bug 1539265)
2019-04-02 02:44:43 +03:00
Ian Moody 76dd66e399 Bug 1539265 - Add a few optimisations for ::marker pseudos. r=jdescottes
Where there is existing for ::before and ::after.

Differential Revision: https://phabricator.services.mozilla.com/D25107

--HG--
extra : moz-landing-system : lando
2019-04-01 21:45:44 +00:00
Ian Moody addac983bb Bug 1539265 - Add isMarkerPseudoElement function to layout/utils.js. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D25105

--HG--
extra : moz-landing-system : lando
2019-04-01 21:45:33 +00:00
Michael Ratcliffe 991e8e8313 Bug 1523335 - Make use of parentFlexElement in Flexbox inspector r=pbro
This gives a very noticable increase in speed. When Brad finishes https://bugzil.la/1523336 we can stop walking the DOM and simply use `parentFlexElement` and `parentGridElement`.

#### Try

https://treeherder.mozilla.org/#/jobs?repo=try&revision=47d38f2c7dca6ca764862c8b00921644a974a975&group_state=expanded

Differential Revision: https://phabricator.services.mozilla.com/D18674

--HG--
extra : moz-landing-system : lando
2019-02-06 17:35:20 +00:00
Cosmin Sabou 3a072e9701 Backed out changeset 8a5155bd8809 (bug 1523335) for devtools failures on browser_rules_gridline-names-autocomplete. CLOSED TREE
--HG--
extra : rebase_source : 457608e6d006784e27979af139c905c6b165913b
2019-02-05 20:45:03 +02:00
Michael Ratcliffe 55b170fc51 Bug 1523335 - Make use of parentFlexElement in Flexbox inspector r=pbro
This gives a very noticable increase in speed. When Brad finishes https://bugzil.la/1523336 we can stop walking the DOM and simply use `parentFlexElement` and `parentGridElement`.

Differential Revision: https://phabricator.services.mozilla.com/D18674

--HG--
extra : moz-landing-system : lando
2019-02-05 16:53:22 +00:00
Michael Ratcliffe 6928727511 Bug 1521026 - Flex highlighter shouldn't scroll for position:fixed elements r=gl
This fixes the issue but because of our virtual canvas implementation and the
fact that reflow events are batched there is quite a bit of flicker and some
drag (see attached video).

Unfortunately, until bug 1509071 is implemented (full screen canvas using
`position:fixed`) we can't really do anything about the flicker... I suppose we
could stop batching reflow events but that would make all of our highlighters
unusably slow.

Differential Revision: https://phabricator.services.mozilla.com/D16988

--HG--
extra : moz-landing-system : lando
2019-01-21 16:49:24 +00:00
Michael Ratcliffe e1fb58b951 Bug 1504743 - Combine the box-model highlighter and the flexbox highlighter when highlighting flex containers/items r=gl
Differential Revision: https://phabricator.services.mozilla.com/D12046

--HG--
extra : moz-landing-system : lando
2019-01-17 17:42:04 +00:00
Julian Descottes 801f699fff Bug 1483663 - Support element picker for UA widgets with NAC;r=ladybenko
Depends on D14700

Differential Revision: https://phabricator.services.mozilla.com/D14701

--HG--
extra : moz-landing-system : lando
2018-12-19 21:40:41 +00:00
Andreea Pavel 35d9be3087 Backed out 2 changesets (bug 1483663) for failing dt at devtools/client/inspector/markup/test/browser_markup_shadowdom_ua_widgets_with_nac.js on a CLOSED TREE
Backed out changeset 6e9f11aeac28 (bug 1483663)
Backed out changeset 2ffa90b738a1 (bug 1483663)
2018-12-19 23:24:33 +02:00
Julian Descottes 9d930b5368 Bug 1483663 - Support element picker for UA widgets with NAC;r=ladybenko
Depends on D14700

Differential Revision: https://phabricator.services.mozilla.com/D14701

--HG--
extra : moz-landing-system : lando
2018-12-19 20:12:02 +00:00
Michael Ratcliffe 36ecc953a3 Bug 1499630 - Text nodes that are flex items aren't highlighted correctly in the flexbox highlighter when they wrap r=gl
Depends on D11654 and D12307

Differential Revision: https://phabricator.services.mozilla.com/D12313

--HG--
extra : moz-landing-system : lando
2018-11-21 14:20:30 +00:00
Michael Ratcliffe 477330588f Bug 1505578 - Flexbox highlighter is offset when container contains padding r=gl
Differential Revision: https://phabricator.services.mozilla.com/D11654

--HG--
extra : moz-landing-system : lando
2018-11-21 17:04:35 +00:00
Mark Banner ceaeb93550 Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D8389

--HG--
extra : moz-landing-system : lando
2018-10-19 12:55:39 +00:00
Michael Ratcliffe d2d39186f6 Bug 1478481 - Flexbox highlighter overlay is wrong size, in page with full-page-zoom applied r=gl
- Added AutoRefreshHighlighter flag to AutoRefreshHighlighter. This ensures that getQuads() ignores the zoom factor.

Differential Revision: https://phabricator.services.mozilla.com/D7599

--HG--
extra : moz-landing-system : lando
2018-10-10 23:59:45 +00:00
Boris Zbarsky 79181a1a13 Bug 1446940 part 3. Stop getting docshells from windows via getInterface in devtools. r=bgrins 2018-08-01 13:07:10 -04:00
Boris Zbarsky 0e54dc6661 Bug 1476145 part 4. Stop using getInterface(nsIDOMWindowUtils) in devtools. r=bgrins 2018-07-24 19:47:41 -04:00
Julian Descottes a17f7800df Bug 1441535 - Remove unnecessary shadowdom check in isXBLAnonymous;r=bgrins
doc.getAnonymousNodes no longer returns shadow dom nodes, so no need
to filter them out in isXBLAnonymous.

This feature is tested in browser_markup_anonymous_02.js so reenabling
this test.

toolbarbutton has 4 children now, but since our tests are no longer
running in non-e10s, the regression was missed!

MozReview-Commit-ID: BHYb5ufyQjg

--HG--
extra : rebase_source : bb933452d3780fa1c632240314014ad9c605c52a
2018-07-24 15:56:35 +02:00
Belén Albeza cb2d3ee5bc Bug 1473901 - show shadow root mode. r=bgrins
MozReview-Commit-ID: Axt9W0uX4FB

--HG--
extra : rebase_source : a2708ee55feca17c79b110e6ea4507c8cb41caa1
2018-07-11 14:53:51 +02:00
Julian Descottes a2e1f4d2af Bug 1465873 - part3: Move generic node utils from Node actor to layout/utils helper;r=bgrins
MozReview-Commit-ID: ASB5m4Eyrck

--HG--
extra : rebase_source : 892bbcc01923bdbf4819a0155d7f7fb7653557d1
2018-06-28 11:22:12 +02:00
Julian Descottes a58b37acb3 Bug 1449333 - Display closed shadow roots in the inspector;r=bgrins
MozReview-Commit-ID: GIA5A4kOYFX

--HG--
extra : rebase_source : 03766e229910776476910a90ba4cebe97648c767
2018-06-15 15:35:28 -07:00
Blake Kaplan 49224c479c Bug 1186265 - Move devtools over to getBounds(). r=pbro
This leaves getAdjustedQuads alone because it lives in its own world and its
result gets sent over IPC. That leaves things in a bit of an intermediate
state, but that should be OK for now.

MozReview-Commit-ID: DH6eGqCFhPr

--HG--
extra : rebase_source : 39feed5868c86a104e586f40bd1e80e8f8f34e0b
2018-06-04 16:41:43 -07:00
Julian Descottes 640fe52298 Bug 1454696 - Run eslint --fix for prefer-const;r=yulia
MozReview-Commit-ID: F6xUXCgdRE4

--HG--
extra : rebase_source : 65de1b0aba412d9044b5196115f74276caa058f2
2018-06-01 12:36:09 +02:00
Boris Zbarsky fef0aa2027 Bug 1455676 part 17. Stop using nsIDOMNode in devtools/. r=jdescottes 2018-05-29 22:58:50 -04:00
J. Ryan Stinnett d4371a1b85 Bug 1457804 - Use content size for DevTools highlighter writing mode adjustments. r=gl
The writing mode / RTL adjustments performed by `getWritingModeMatrix` needs the
element's content size without margins, borders, or padding.

MozReview-Commit-ID: LsSfNN4fyDR

--HG--
extra : rebase_source : 2c98d6ad0ee7593d542d84e64b65332a6917c7a5
2018-05-03 19:06:14 -05:00
Kris Maglione a7b308c3a2 Bug 1456686: Part 1 - Fix unused and shadowed explicit imports. r=standard8
These issues were previously ignored due to the nature of our global import
rules. They need to be fixed before that rule can be updated.

MozReview-Commit-ID: DCChktTc5TW

--HG--
extra : rebase_source : cffb1c9762191c579d1397c8169e6e7635d229da
extra : histedit_source : dea59ddd2daaae52069c5faceae9149a4f08dd73
2018-04-24 20:18:09 -07:00
Patrick Brosset e9b33924a6 Bug 1351081 - Always retrieve quads relatively to the top window, correctly; r=gl
Use the getBoxQuads's relativeTo option to avoid having to calculate the offset
due to frames.

Also reduce the precision of numbers used when checking if the highlighter is
correctly displayed.

Finally, for some strange reasons, this patch seems to cause a totally unrelated
events mutation event to be sent during the test. This polutes the mutations
received and made the test fail. So I filtered the list of mutations to only
preserve the ones we care about here.
I could not reproduce this extra mutation when running Firefox. Only during the
test. So I did not investigate further.

MozReview-Commit-ID: 1ZQ6FGULjHG

--HG--
extra : rebase_source : 6406571849afb1d3dcec176f68ef4d3d122a1abf
2018-03-30 11:24:45 +02:00
J. Ryan Stinnett bc3b52e35a Bug 1430918 - Rotate grid outline for writing mode. r=gl
Adjust the grid outline in the Inspector's Layout panel as needed to match the
writing mode and text direction of the grid container.

MozReview-Commit-ID: Ggcp1e4ZipE

--HG--
extra : rebase_source : e9acadc8837ad3c05c038a2156272c9eff8c7330
2018-02-10 22:03:12 -06:00