Closed Bug 1915774 Opened 1 year ago Closed 1 year ago

Stop using setFaviconForPage of head_common.js

Categories

(Toolkit :: Places, task, P3)

task

Tracking

()

RESOLVED FIXED
138 Branch
Tracking Status
firefox138 --- fixed

People

(Reporter: daisuke, Assigned: daisuke)

References

Details

(Whiteboard: [favicons-2024][sng])

Attachments

(2 files)

Many tests are using setFaviconForPage of head_common.js. But, as we stop using nsIFaviconService.setAndFetchFaviconForPage() in bug 1894633, the function came to simulate old behavior of setAndFetchFaviconForPage. As it hides API logic, we stop using this function, and then will do the old behavior in each tests.

The main concern here is many tests don't need to fetch from the database, and even less from the network.
So each test should just do what they effectively need.

Whiteboard: [favicons-2024][sng]
Severity: -- → N/A
Priority: -- → P3
Assignee: nobody → daisuke
Status: NEW → ASSIGNED
Pushed by dakatsuka.birchill@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/005ebb0e2753 Remove setFaviconForPage() in head_common r=places-reviewers,mak https://hg.mozilla.org/integration/autoland/rev/c2623d0fa807 Use PlacesTestUtils.setFaviconForPage() helper in places test r=places-reviewers,mak
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 138 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: