Newly created rules in ruleview disappear after filtering

RESOLVED INACTIVE

Status

()

Firefox
Developer Tools: CSS Rules Inspector
P2
normal
RESOLVED INACTIVE
a year ago
4 days ago

People

(Reporter: 684sigma, Unassigned)

Tracking

({regression})

45 Branch
regression
Points:
---

Firefox Tracking Flags

(firefox52 wontfix, firefox-esr52 fix-optional, firefox53 wontfix, firefox54 fix-optional, firefox55 fix-optional)

Details

(Reporter)

Description

a year ago
I have a problem with Firefox Beta 53 and Nightly 55. It also happens in Firefox ESR 45
Sometimes newly created rules in ruleview disappear after filtering.
I noticed one specific scenario when it happens

1. Open https://bugzilla.mozilla.org/
2. Open inspector, inspect <body> node.
3. Add new rule in ruleview. In the opened field with selector type "body". Add rule "color: red !important;"
4. In the filter field type "color". (Then you can cancel filtering, it doesn't matter)

Result: The rule disappears. It's displayed as "body{}" in ruleview (with line break)
Expected: The rule should be displayed as "body{ color: red !important; }" (with line breaks)
(Reporter)

Comment 1

a year ago
Update:
I forgot about the second part of this issue. In the second scenario, the rule disappears after setting id to the node. I assumed that in both cases rules are updated, and the root cause is that update hides newly created rules.
I also assumed that "update" happens in several cases including these 2 I described here.
The first scenario doesn't happen in ESR 38, because filtering is not available, but the second scenario works fine in ESR 38, so I'm adding keyword "regression". If you disagree that the first scenario has the same root cause, please hide comment 0 (I messed up the sequence of uploading these 2 cases, yes).
Second scenario:

1. Open https://bugzilla.mozilla.org/
2. Open inspector, inspect <body> node.
3. Add new rule in ruleview. In the opened field with selector type "body". Add rule "color: red !important;"
4. Add attribute id="bodyid" to <body> node

Result: The rule disappears. It's displayed as "body{}" in ruleview (with line break)
Expected: The rule should be displayed as "body{ color: red !important; }" (with line breaks)
Keywords: regression
(Reporter)

Updated

a year ago
Has STR: --- → yes

Comment 2

a year ago
I can reproduce both scenarios.
Clicking some other element in the markup view and then clicking back to <body>
makes the new rule reappear.
Status: UNCONFIRMED → NEW
Ever confirmed: true
status-firefox52: --- → affected
status-firefox53: --- → affected
status-firefox54: --- → affected
status-firefox55: --- → affected
Inspector bug triage (filter on CLIMBING SHOES).
Priority: -- → P2
status-firefox52: affected → wontfix
status-firefox53: affected → fix-optional
status-firefox-esr52: --- → fix-optional
(Since this has been triaged by the devtools team, let's stop tracking as a regression and let it be tracked as a regular bug)
status-firefox53: fix-optional → wontfix
status-firefox54: affected → fix-optional
status-firefox55: affected → fix-optional

Comment 5

4 days ago
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: NEW → RESOLVED
Last Resolved: 4 days ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.