Page MenuHomePhabricator

Restore lightbox behavior for thumbnailed images
ClosedPublic

Authored by epriestley on Mar 7 2018, 3:25 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 18, 12:51 AM
Unknown Object (File)
Mon, Dec 9, 2:18 PM
Unknown Object (File)
Sun, Dec 8, 1:17 PM
Unknown Object (File)
Wed, Dec 4, 3:00 AM
Unknown Object (File)
Tue, Dec 3, 2:24 AM
Unknown Object (File)
Sat, Nov 30, 6:18 PM
Unknown Object (File)
Fri, Nov 29, 10:51 AM
Unknown Object (File)
Wed, Nov 27, 1:56 AM
Subscribers
None

Details

Summary

Ref T13099. See https://discourse.phabricator-community.org/t/lightbox-not-working/1201. The Content-Security-Policy changes rewrote some of this code and the handling for "Download" links is incorrectly catching clicks on thumbnailed images.

Test Plan

Clicked a thumbnailed image, got a lightbox. Command-clicked a download link, still got link behavior instead of a lightbox.

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 7 2018, 3:33 PM
This revision was automatically updated to reflect the committed changes.