Page MenuHomePhabricator

[web] Remove `background.png` from `Splash` and rename to `placeholder.png`
ClosedPublic

Authored by atul on Mar 16 2022, 2:40 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 4, 1:54 AM
Unknown Object (File)
Tue, Dec 3, 12:34 PM
Unknown Object (File)
Fri, Nov 15, 6:06 AM
Unknown Object (File)
Nov 10 2024, 12:12 AM
Unknown Object (File)
Nov 10 2024, 12:07 AM
Unknown Object (File)
Nov 5 2024, 1:23 AM
Unknown Object (File)
Oct 16 2024, 8:35 AM
Unknown Object (File)
Oct 4 2024, 5:38 PM

Details

Summary

Here's how it looks:

967c.png (1×3 px, 726 KB)


depends on D3445

Test Plan

Did a search for "images/background.png" and found no other occurences.

Then did a search for "background.png" and found that we were actually using it in sanitization.js to replace image URLs as part of the "sanitization process." So I renamed background.png to placeholder.png and left the file in.

Diff Detail

Repository
rCOMM Comm
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

atul edited the test plan for this revision. (Show Details)
atul requested review of this revision.Mar 16 2022, 2:45 PM
lib/utils/sanitization.js
126

Can we replace the placeholder image? Is pretty ugly and doesn't match with anything.

Weird, not super clear why we're using it for sanitization but okay

This revision is now accepted and ready to land.Mar 16 2022, 9:16 PM
lib/utils/sanitization.js
126

It's not actually used for anything, not sure it makes sense to slow down @atul for this. It's just for the sanitization process, eg. we replace actual images with this placeholder image when we make crash reports. Users never see it

In D3446#93678, @ashoat wrote:

Weird, not super clear why we're using it for sanitization but okay

It's for when we load crash reports via Redux DevTools. We wanted to replace the contents of image messages with some sort of placeholder image and we went with this since it happened to be in the repo. It could really be anything?

This revision was landed with ongoing or failed builds.Mar 16 2022, 9:41 PM
This revision was automatically updated to reflect the committed changes.