Closed Bug 1485324 Opened 6 years ago Closed 6 years ago

Font editor: remove obsolete code once feature reaches Firefox stable.

Categories

(DevTools :: Inspector, enhancement, P3)

enhancement

Tracking

(firefox65 fixed)

RESOLVED FIXED
Firefox 65
Tracking Status
firefox65 --- fixed

People

(Reporter: rcaliman, Assigned: rcaliman)

References

(Blocks 2 open bugs)

Details

Attachments

(3 files)

The Font Editor feature replaces the Font Inspector.

Once the Font Editor reaches Firefox Stable:
- remove the pref flag: devtools.inspector.fonteditor.enabled
- cleanup tests to not require the pref
- remove obsolete font inspector code
- remove font inspector test: client/inspector/fonts/test/browser_fontinspector_other-fonts.js
- cleanup client/inspector/fonts/test/head.js
Blocks: 1449894
This patch removes the devtools.inspector.fonteditor.enabled pref and all its uses in the Fonts panel.
Obsolete actions for the case when the pref was off are also removed. This is mostly old font inspector code.

One test is temporarily disabled because it tests the old font inspector. It will be removed along with other
pieces on the next part of this commit series.
Depends on D11505
The `otherFonts` field in the Redux store slice for Fonts was used by the old Font Inspector to differentiate
between fonts on the element and fonts elsewhere on the page. This is no longer used with the Font Editor.
Depends on D11506
Removes the `fonts` field from the Redux slice previously used by the FontOverview component
in the Font Inspector version of the Fonts panel. This field is duplicated with the `fonts`
used by the Font Editor. The telemetry can use that one instead.

Refactors the update() method which updates the Redux slice for the FontOverview component.
In time, the update() and refreshFontEditor() method will merge. So will the Redux slices:
`fontEditor` and `fonts` in order to save a duplicate call to the server for `allFonts`.
Attachment #9024048 - Attachment description: Bug 1485324 - (Part 1) Remove pref for Font editor and obsolete conditionals; r=gl → Bug 1485324 - (Part 1) Remove pref for Font Editor and obsolete conditionals; r=gl
Pushed by rcaliman@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/dd1eadadbeeb
(Part 1) Remove pref for Font Editor and obsolete conditionals; r=gl
https://hg.mozilla.org/integration/autoland/rev/13a15cc93107
(Part 2) Remove obsolete subset of fonts not used on current element; r=gl
https://hg.mozilla.org/integration/autoland/rev/003af6524115
(Part 3) Remove obsolete font on element no longer used in Fonts panel; r=gl
https://hg.mozilla.org/mozilla-central/rev/dd1eadadbeeb
https://hg.mozilla.org/mozilla-central/rev/13a15cc93107
https://hg.mozilla.org/mozilla-central/rev/003af6524115
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 65
Depends on: 1526054
Component: Inspector: Fonts → Inspector
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: