Page MenuHomePhabricator

Prevent embedded remarkup content from cycling when it contains embedded self-references
ClosedPublic

Authored by epriestley on May 9 2022, 6:20 PM.
Tags
None
Referenced Files
F15502955: D21810.diff
Mon, Apr 14, 5:44 AM
F15501156: D21810.id51985.diff
Sun, Apr 13, 8:56 PM
F15497069: D21810.id51986.diff
Sun, Apr 13, 9:42 AM
F15494307: D21810.id.diff
Sat, Apr 12, 11:12 PM
F15490754: D21810.diff
Fri, Apr 11, 8:20 PM
F15460769: D21810.id51986.diff
Tue, Apr 1, 2:04 AM
F15452547: D21810.id51986.diff
Sat, Mar 29, 5:55 AM
F15452534: D21810.id51985.diff
Sat, Mar 29, 5:50 AM
Subscribers
None

Details

Summary

Ref T13678. When remarkup content embeds other remarkup content, detect and degrade if the references have nesting depth greater than 1. This is a coarse cycle detector, since rendering shallow (but technically non-cycling) trees doesn't seem valuable.

Test Plan

Created various objects with self-references, saw everything degrade properly (after one level of embedding) when embedded in itself and in other contexts. See attached screenshot.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley created this revision.
This revision was not accepted when it landed; it landed in state Needs Review.May 9 2022, 6:21 PM
This revision was automatically updated to reflect the committed changes.