The ruler highlighter isn't removed when closing DevTools
Categories
(DevTools :: Shared Components, defect, P2)
Tracking
(firefox-esr140 unaffected, firefox-esr153 unaffected, firefox153 unaffected, firefox154 fixed, firefox155 fixed)
| Tracking | Status | |
|---|---|---|
| firefox-esr140 | --- | unaffected |
| firefox-esr153 | --- | unaffected |
| firefox153 | --- | unaffected |
| firefox154 | --- | fixed |
| firefox155 | --- | fixed |
People
(Reporter: B.RJL, Assigned: nchevobbe)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file, 2 external files)
|
85.92 KB,
video/webm
|
Details |
When I select:
#!/usr/bin/env xdg-open
document.querySelector('#command-button-rulers').click();
document.querySelector('#toolbox-close'').click();
When I next select //*[@id="command-button-rulers"], it overlays another ruler, rather than remove the previously-applied one, thereby merely increasing its opacity, and rendering it impossible to remove.
My Environment
PS /home/beedell.roke_julian_lockhart> rpm -qf (Get-Command firefox-nightly).Source --queryformat @'
>> Name: %{NAME}
>> Version: %{VERSION}
>> Release: %{RELEASE}
>> Architecture: %{ARCH}
>> Install Date: %{INSTALLTIME:date}
>> Size: %{SIZE}
>> Signature: %{SIGPGP:pgpsig}
>> Source RPM: %{SOURCERPM}
>> Build Date: %{BUILDTIME:date}
>> Build Host: %{BUILDHOST}
>> Packager: %{PACKAGER}
>> Vendor: %{VENDOR}
>> '@ | yq -P
Name: firefox-nightly
Version: 155.0a1
Release: 20260721202327
Architecture: x86_64
Install Date: Wed 22 Jul 2026 00:03:08 BST
Size: 396032189
Signature: (none)
Source RPM: firefox-nightly-155.0a1-20260721202327.src.rpm
Build Date: Tue 21 Jul 2026 23:31:33 BST
Build Host: 8d77f84d0ff1
Packager: (none)
Vendor: Mozilla
| Assignee | ||
Comment 1•3 months ago
|
||
Looks like this was regressed by Bug 1247553
Comment 2•3 months ago
|
||
Set release status flags based on info from the regressing bug 1247553
| Comment hidden (duplicate) |
Comment 4•3 months ago
|
||
Nicolas will have a look.
| Assignee | ||
Comment 5•3 months ago
|
||
The highlighter actor we create should be managed by a target scoped actor (e.g. the inspectorActor)
I'll provide a patch
| Assignee | ||
Comment 6•3 months ago
|
||
With this, the highlighter will be destroyed when the parent actor is destroyed.
This will fix the issue where the Rulers highlighters wasn't removed when
closing the toolbox.
Updated•3 months ago
|
Updated•3 months ago
|
Comment 8•3 months ago
|
||
| bugherder | ||
Comment 9•3 months ago
|
||
The patch landed in nightly and beta is affected.
:nchevobbe, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta approval.
- See https://wiki.mozilla.org/Release_Management/Requesting_an_Uplift for documentation on how to request an uplift.
- If no, please set
status-firefox154towontfix.
For more information, please visit BugBot documentation.
| Assignee | ||
Comment 10•3 months ago
|
||
(In reply to BugBot [:suhaib / :marco] from comment #9)
The patch landed in nightly and beta is affected.
:nchevobbe, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta approval.
- See https://wiki.mozilla.org/Release_Management/Requesting_an_Uplift for documentation on how to request an uplift.
- If no, please set
status-firefox154towontfix.For more information, please visit BugBot documentation.
it's a bit late I guess, but let's see if release manager will take it
| Assignee | ||
Comment 11•3 months ago
|
||
With the patch from Bug 1247553, the created CustomHighlighterActor is no longer
returned to the client, which mean it wasn't managed anymore.
Here, we explicitly manage the new instance with the parent actor that is passed,
so fixes the issue where the Rulers highlighters wasn't removed when closing
the toolbox.
Original Revision: https://phabricator.services.mozilla.com/D316454
Updated•3 months ago
|
Comment 12•3 months ago
|
||
firefox-beta Uplift Approval Request
- User impact if declined/Reason for urgency: DevTools rulers highlighters stays visible on the page after DevTools toolbox is closed
- Code covered by automated testing?: yes
- Fix verified in Nightly?: no
- Needs manual QE testing?: no
- Steps to reproduce for manual QE testing: -
- Risk associated with taking this patch: low
- Explanation of risk level: one-liner fix, covered by a mochitest
- String changes made/needed?: No
- Is Android affected?: no
Comment 13•3 months ago
|
||
Comment on attachment 9625652 [details]
Bug 2056740 - [devtools] Actually manage the CustomHighlighterActor by the parent actor passed in the constructor. .
There are no more betas in the 154 cycle. Moving request to firefox-release for dot release consideration.
Updated•3 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
Comment 14•2 months ago
|
||
| uplift | ||
Description
•