Closed Bug 1496055 Opened 6 years ago Closed 6 years ago

Remove obsolete checks and code used to modify CSS selectors

Categories

(DevTools :: Inspector, enhancement, P2)

enhancement

Tracking

(firefox64 fixed)

RESOLVED FIXED
Firefox 64
Tracking Status
firefox64 --- fixed

People

(Reporter: rcaliman, Assigned: rcaliman)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Prior to the ability to modify CSS rules as authored text, there was code in place to do so via the CSSOM only. This meant that unmatched rules wouldn't be shown in the Rules view. 

After Firefox 41 new code to handle modifying selectors `modifySelector2()` has been added, but the old code, `modifySelector()`, was kept for backwards compatibility when inspecting older versions of Firefox.

This bug is for removing obsolete checks and code paths for modifying selectors used prior to Firefox 41.
Since Firefox 41 it has been possible to add a rule with a selector
which does not match an element. The checks of the existence of this
functionality are outdated and can be safely removed.

No supported old versions of Firefox make use of the previous 
functionality anymore.

MozReview-Commit-ID: D5ZP09Ckeqd
Pushed by rcaliman@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/6dbab52dffb7
Part 1: Remove outdated checks for StyleRuleActor.modifySelectorUnmatched; r=gl
https://hg.mozilla.org/integration/autoland/rev/dbe7858573bd
Part 2: Remove obsolete StyleRuleActor.modifySelector() and rename modifySelector2(); r=gl
https://hg.mozilla.org/mozilla-central/rev/6dbab52dffb7
https://hg.mozilla.org/mozilla-central/rev/dbe7858573bd
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 64
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: