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
F15512181: D19196.diff
Thu, Apr 17, 8:36 AM
F15494113: D19196.diff
Sat, Apr 12, 10:37 PM
F15491146: D19196.diff
Fri, Apr 11, 11:49 PM
F15452905: D19196.id45976.diff
Sat, Mar 29, 8:04 AM
F15439298: D19196.id.diff
Wed, Mar 26, 6:50 AM
F15438028: D19196.diff
Tue, Mar 25, 10:52 PM
F15418688: D19196.id45975.diff
Fri, Mar 21, 12:53 AM
F15376737: D19196.diff
Mar 13 2025, 5:15 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
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.