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)
Sun, Feb 9, 5:38 AM
Unknown Object (File)
Sun, Feb 9, 5:38 AM
Unknown Object (File)
Sun, Feb 9, 5:38 AM
Unknown Object (File)
Sun, Feb 9, 5:38 AM
Unknown Object (File)
Sun, Feb 9, 5:38 AM
Unknown Object (File)
Sat, Jan 25, 10:04 AM
Unknown Object (File)
Sat, Jan 25, 2:07 AM
Unknown Object (File)
Sat, Jan 25, 12:33 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
Branch
lightbox1
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 19774
Build 26786: Run Core Tests
Build 26785: arc lint + arc unit

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.