anchor tooltip stays when parent of anchor is removed from document
Categories
(Core :: DOM: Navigation, defect)
Tracking
()
People
(Reporter: me, Unassigned)
References
Details
Attachments
(1 file)
|
160 bytes,
text/html
|
Details |
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.
Comment 1•3 years ago
|
||
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.
Comment 2•3 years ago
|
||
Comment 3•3 years ago
|
||
(Move to Firefox:Tabbed Browser same as other tooltip bugs)
Comment 4•3 years ago
|
||
The severity field is not set for this bug.
:dao, could you have a look please?
For more information, please visit auto_nag documentation.
Comment 5•3 years ago
|
||
(In reply to Edgar Chen [:edgar] from comment #3)
(Move to
Firefox:Tabbed Browsersame as other tooltip bugs)
Tooltips are managed in docshell/base/nsDocShellTreeOwner.cpp.
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.
Updated•3 years ago
|
Description
•