Page MenuHomePhabricator

Always serve "{meme ...}" from the CDN domain, never from the primary domain
ClosedPublic

Authored by epriestley on Mar 8 2018, 3:40 PM.
Tags
None
Referenced Files
F19074423: D19196.id.diff
Mon, Dec 1, 5:11 AM
F19071777: D19196.diff
Sun, Nov 30, 8:42 PM
F18851954: D19196.id.diff
Oct 31 2025, 5:36 AM
F18850961: D19196.diff
Oct 30 2025, 8:55 PM
F18815981: D19196.id.diff
Oct 21 2025, 4:31 AM
F18785383: D19196.diff
Oct 14 2025, 1:45 AM
F18760929: D19196.id45975.diff
Oct 6 2025, 11:22 AM
F18624722: D19196.diff
Sep 15 2025, 8:54 PM
Subscribers
None

Details

Summary

Ref T13101. This is a minimal change to make "{meme ...}" work with the new Content-Security-Policy by using an Ajax request to generate the image and then swapping the source on the client.

This could be much cleaner (see T5258, etc).

Test Plan

Used {meme, src=cat6, above=i am, below=cat}, chuckled completely unironically.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Mar 8 2018, 3:47 PM
This revision was automatically updated to reflect the committed changes.