Open Bug 1816207 Opened 3 years ago Updated 2 years ago

anchor tooltip stays when parent of anchor is removed from document

Categories

(Core :: DOM: Navigation, defect)

Firefox 109
defect

Tracking

()

Tracking Status
firefox111 --- affected
firefox112 --- affected

People

(Reporter: me, Unassigned)

References

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0

Steps to reproduce:

When a focused anchor is removed from the document, the tooltip (displayed in the lower lefthand corner of the browser) should be removed. If you remove the anchor by removing its parent, instead of directly removing the anchor, the tooltip remains.

<div id=div>
  <a id=anchor href="https://mozilla.org">hello</a>
</div>
<script>
  anchor.focus();
  setTimeout(() => {
    div.remove();
  }, 1000);
</script>

Actual results:

Tooltip stays!

Expected results:

Tooltip goes away.

The Bugbug bot thinks this bug should belong to the 'Core::DOM: Core & HTML' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core
Attached file test.html

(Move to Firefox:Tabbed Browser same as other tooltip bugs)

Component: DOM: Core & HTML → Tabbed Browser
Product: Core → Firefox
See Also: → 1767515

The severity field is not set for this bug.
:dao, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(dao+bmo)

(In reply to Edgar Chen [:edgar] from comment #3)

(Move to Firefox:Tabbed Browser same as other tooltip bugs)

Tooltips are managed in docshell/base/nsDocShellTreeOwner.cpp.

Component: Tabbed Browser → DOM: Navigation
Flags: needinfo?(dao+bmo)
Product: Firefox → Core

Hello, thank you for the bug report!
Managed to reproduce the issue on:

  • Firefox 110.0;
  • Nightly 112.0a1;

Tested and reproduced on:

  • macOS 12;
  • Windows 11;

Setting as NEW.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Severity: -- → S3
Duplicate of this bug: 1828952
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: