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
F13275941: D21810.diff
Fri, May 31, 5:21 AM
F13270321: D21810.id51986.diff
Wed, May 29, 9:30 AM
F13270320: D21810.id51985.diff
Wed, May 29, 9:30 AM
F13270319: D21810.id.diff
Wed, May 29, 9:30 AM
F13258113: D21810.id51985.diff
Sun, May 26, 6:50 AM
F13198288: D21810.diff
Mon, May 13, 5:37 AM
F13195136: D21810.diff
Sun, May 12, 10:09 PM
F13193032: D21810.id.diff
Sun, May 12, 11:45 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
Branch
votex1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 25707
Build 35535: arc lint + arc unit

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.