Closed Bug 894391 Opened 12 years ago Closed 6 years ago

Remove deprecated PageThumbs.getFileForURL from PageThumbs.jsm

Categories

(Firefox :: New Tab Page, defect, P3)

23 Branch
defect

Tracking

()

RESOLVED FIXED
Firefox 74
Tracking Status
firefox74 --- fixed

People

(Reporter: mkaply, Assigned: mkaply)

Details

(Keywords: good-first-bug)

Attachments

(1 file)

The PageThumbs deprecation warning says: PageThumbs.getFileForURL is deprecated. Please use PageThumbs.getFilePathForURL and OS.File This is incorrect. It should be: PageThumbsStorage.getFileForURL is deprecated. Please use PageThumbsStorage.getFilePathForURL and OS.File I realize this is only for one release, but it is quite confusing.
This has been deprecated (and documented wrong) for 23 releases now. At what point do we remove deprecated things?
Component: Tabbed Browser → New Tab Page
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
Closed: 7 years ago
Resolution: --- → INACTIVE
Assignee: nobody → mozilla
Status: RESOLVED → REOPENED
Resolution: INACTIVE → ---

We should just remove this.

And the tests that reference it.

Status: REOPENED → NEW
Keywords: good-first-bug
Summary: PageThumbs deprecation warning is incorrect → Remove deprecated PageThumbs.getFileForURL from PageThumbs.jsm
Priority: -- → P3

Hi, I'm a first time contributor and I would like to help with this. Can I work on it?

Yes, you can jsut contrib(In reply to Sharon Ho from comment #4)

Hi, I'm a first time contributor and I would like to help with this. Can I work on it?

Yes, that would be great.

Does the sanity check that ensures |getFileForURL| points to the same path as |getFilePathForURL| in browser_thumbnails_storage_migrate3.js (lines 77-87) need to be removed as well?

Yes, that should be able to be removed as well.

I've removed the related code and built it to verify there are no errors. Are there any tests I have to run to make sure it's okay?

Yes, you would run:

./mach test toolkit/components/thumbnails/test

The code passed the above tests. Is there anything else to do before I submit a patch? Who do I add as reviewer for the patch?

Go ahead and submit the patch. We'll find a reviewer.

Pushed by shindli@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fe29ec1ab8c3 Remove deprecated PageThumbs.getFileForURL from PageThumbs.jsm r=mkaply
Status: NEW → RESOLVED
Closed: 7 years ago6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 74
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: