tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 6597cc40fcc39ca6bd521431b5892f9308508874
parent 8e18c77bc4ae2d1c02e2e3198acbd01c5072084b
Author: Nicolas Chevobbe <nchevobbe@mozilla.com>
Date:   Mon, 22 Dec 2025 15:31:19 +0000

Bug 2006508 - Handle the backdrop pseudo element in InspectorUtils::GetChildrenForNode. r=layout-reviewers,emilio.

This is needed for DevTools to show the node in the Inspector.

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

Diffstat:
Mlayout/inspector/InspectorUtils.cpp | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/layout/inspector/InspectorUtils.cpp b/layout/inspector/InspectorUtils.cpp @@ -245,6 +245,9 @@ void InspectorUtils::GetChildrenForNode(nsINode& aNode, } } nsIContent* parent = aNode.AsContent(); + if (auto* node = nsLayoutUtils::GetBackdropPseudo(parent)) { + aResult.AppendElement(node); + } if (auto* node = nsLayoutUtils::GetMarkerPseudo(parent)) { aResult.AppendElement(node); }