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)
Fri, Oct 4, 5:38 PM
Unknown Object (File)
Tue, Sep 24, 6:08 AM
Unknown Object (File)
Tue, Sep 24, 6:07 AM
Unknown Object (File)
Mon, Sep 23, 4:00 PM
Unknown Object (File)
Wed, Sep 18, 4:22 AM
Unknown Object (File)
Wed, Sep 18, 4:22 AM
Unknown Object (File)
Wed, Sep 18, 4:10 AM
Unknown Object (File)
Fri, Sep 6, 11:50 AM

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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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 ↗(On Diff #10462)

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 ↗(On Diff #10462)

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.