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
F19715232: D19196.diff
Thu, Feb 12, 4:34 AM
F19579646: D19196.diff
Feb 1 2026, 4:02 PM
F19074423: D19196.id.diff
Dec 1 2025, 5:11 AM
F19071777: D19196.diff
Nov 30 2025, 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
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
Branch
meme1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 19792
Build 26813: Run Core Tests
Build 26812: arc lint + arc unit

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.