Page MenuHomePhabricator

Prevent Differential changeset HTML anchors from colliding with comment anchors
ClosedPublic

Authored by epriestley on Aug 24 2017, 8:40 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jan 24, 10:20 PM
Unknown Object (File)
Fri, Jan 24, 10:20 PM
Unknown Object (File)
Fri, Jan 24, 10:20 PM
Unknown Object (File)
Dec 20 2024, 11:26 PM
Unknown Object (File)
Dec 20 2024, 6:50 PM
Unknown Object (File)
Dec 12 2024, 2:39 AM
Unknown Object (File)
Dec 5 2024, 9:22 PM
Unknown Object (File)
Nov 27 2024, 5:57 AM
Subscribers

Details

Summary

Fixes T12970. This is easier than I expected, and appears to occur in only one place.

This prevents a change from ever generating with an anchor like #12345678, which is ambiguous because it may be a comment anchor.

Test Plan

Viewed a revision, saw new change-xxxyyyzzz anchors, clicked one, got jumped to the right place.

Diff Detail

Repository
rP Phabricator
Branch
hash1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 18147
Build 24392: Run Core Tests
Build 24391: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Aug 24 2017, 8:52 PM
This revision was automatically updated to reflect the committed changes.

Would this break anyone's bookmarks to file locations in a diff~

Yes, but surely no one has those?

I don't know anyone that has those

tbh it sounds like something only weirdo internet experts would do