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
F14844153: D19196.id45976.diff
Sun, Feb 2, 1:37 PM
F14844148: D19196.id45975.diff
Sun, Feb 2, 1:34 PM
Unknown Object (File)
Wed, Jan 29, 3:43 AM
Unknown Object (File)
Tue, Jan 28, 8:02 AM
Unknown Object (File)
Tue, Jan 28, 3:33 AM
Unknown Object (File)
Tue, Jan 28, 1:22 AM
Unknown Object (File)
Mon, Jan 27, 9:22 AM
Unknown Object (File)
Sat, Jan 25, 10:39 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.