Closed Bug 1683648 Opened 5 years ago Closed 5 years ago

Remove unused pluginHelp-16.png and contentPluginDisabled.png

Categories

(Toolkit :: Themes, task)

task

Tracking

()

RESOLVED FIXED
86 Branch
Tracking Status
firefox86 --- fixed

People

(Reporter: ntim, Assigned: soniasingla, Mentored)

References

Details

(Keywords: good-first-bug)

Attachments

(1 file)

These look completely unused:

toolkit/themes/shared/plugins/contentPluginDisabled.png
toolkit/themes/osx/global/plugins/pluginHelp-16.png
toolkit/themes/windows/global/plugins/pluginHelp-16.png

Running hg remove on those files and making a patch should be enough.

Summary: Remove pluginHelp-16.png and contentPluginDisabled.png → Remove unused pluginHelp-16.png and contentPluginDisabled.png
Assignee: nobody → soniasingla.1812
Status: NEW → ASSIGNED
Pushed by ntim.bugs@gmail.com: https://hg.mozilla.org/integration/autoland/rev/3f1967bdcd23 Remove unused pluginHelp-16.png and contentPluginDisabled.png. r=ntim

Why browser_all_files_referenced.js didn't catch this?

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch

(In reply to Masatoshi Kimura [:emk] from comment #3)

Why browser_all_files_referenced.js didn't catch this?

This is because these are files not packaged in jar.mn or moz.build or such. The test you mentioned only catches resource:// or chrome:// unused files to reduce binary size. Sylvestre, is there any bug covering non-packaged unused files? This seems feasible with a whitelist of allowed files.

Flags: needinfo?(sledru)

I don't think so. Is that common?

Flags: needinfo?(sledru)

(In reply to Sylvestre Ledru [:Sylvestre] from comment #6)

I don't think so. Is that common?

It's fairly common after large code removals/refactors that unreferenced files are left around, mainly because this is quite hard to do catch in large code changes.

OK, if you have an idea on how to automate this detection, please open a new bug :)

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: