Open Bug 1935452 Opened 2 months ago Updated 2 months ago

WARNING: child1Index.isNothing() in dom/base/nsContentUtils.cpp:3159 when moving mouse over clear data dialog

Categories

(Core :: DOM: Core & HTML, defect)

defect

Tracking

()

People

(Reporter: manuel, Unassigned)

Details

In debug mode these warnings get printed a lot. Saw while reviewing Bug 1888466. Not sure if and what needs to be done. Neither what is causing it. (a lot of lines 10-100 after having the dialog open and moving the mouse over it for ~10s)

[Parent 74337, Main Thread] WARNING: 'child1Index.isNothing()', file /home/user/dev/gecko/dom/base/nsContentUtils.cpp:3159

Permalink to warning: https://searchfox.org/mozilla-central/rev/8c9c85c74e366c11ffacbb5a2e457b33b0acc9cd/dom/base/nsContentUtils.cpp#3159

STR:

  1. Compile with debug mode
  2. Go to about:preferences
  3. Click on Privacy & Security
  4. Click on Clear Data...
  5. Move mouse over dialog

Here's a Pernosco session.

It looks like one node in nsContentUtils::ComparePoints() is a shadow root and that somehow messes up how the points are compared?

Sean, you did a lot more on shadow DOM than me recently. Do you know what's going on?

Severity: -- → S3
Flags: needinfo?(sefeng)

Yeah, this happens when the parent is the shadow host and the child is the shadow root (I checked the recording, and this was the case). AFAIK, this was also the only possible case.

This is sort of expected as of today. We should probably better make it clear and let the callers handle it.

Flags: needinfo?(sefeng)
You need to log in before you can comment on or make changes to this bug.