mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-15 19:32:40 +01:00
5664c838fb
Summary: Ref T10262. Currently, we always render a tag like this when you `{F123}` an image in remarkup: ``` <img src="/xform/preview/abcdef/" /> ``` This either generates the preview or redirects to an existing preview. This is a good behavior in general, because the preview may take a while to generate and we don't want to wait for it to generate on the server side. However, this flickers a lot in Safari. We might be able to cache this, but we really shouldn't, since the preview URI isn't a legitimately stable/permanent one. Instead, do a (cheap) server-side check to see if the preview already exists. If it does, return a direct URI. This gives us a stable thumbnail in Safari. Test Plan: - Dragged a dog picture into comment box. - Typed text. - Thing didn't flicker like crazy all the time in Safari. Reviewers: chad Reviewed By: chad Maniphest Tasks: T10262 Differential Revision: https://secure.phabricator.com/D15646 |
||
---|---|---|
.. | ||
action | ||
application | ||
applicationpanel | ||
builtin | ||
capability | ||
conduit | ||
config | ||
controller | ||
edge | ||
editor | ||
engine | ||
exception | ||
garbagecollector | ||
iconset | ||
lipsum | ||
management | ||
markup | ||
phid | ||
query | ||
storage | ||
transform | ||
uploadsource | ||
view | ||
PhabricatorImageTransformer.php |