Page MenuHomePhabricator

Restore lightbox behavior for thumbnailed images
ClosedPublic

Authored by epriestley on Mar 7 2018, 3:25 PM.
Tags
None
Referenced Files
F19014130: D19188.id45958.diff
Nov 22 2025, 6:27 PM
F18862115: D19188.id.diff
Nov 2 2025, 6:09 PM
F18855912: D19188.diff
Nov 1 2025, 7:17 AM
F18855446: D19188.id45957.diff
Nov 1 2025, 5:17 AM
F18855432: D19188.id45959.diff
Nov 1 2025, 5:16 AM
F18790831: D19188.id45959.diff
Oct 15 2025, 7:36 PM
F18775842: D19188.id.diff
Oct 10 2025, 8:23 PM
F18764676: D19188.id45959.diff
Oct 7 2025, 7:15 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.