Page MenuHomePhabricator

Correct various minor diff copy behaviors
ClosedPublic

Authored by epriestley on Feb 17 2019, 4:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 17, 8:01 AM
Unknown Object (File)
Mon, Dec 9, 12:11 PM
Unknown Object (File)
Fri, Dec 6, 8:09 AM
Unknown Object (File)
Fri, Dec 6, 6:19 AM
Unknown Object (File)
Nov 23 2024, 2:15 PM
Unknown Object (File)
Nov 12 2024, 2:42 PM
Unknown Object (File)
Nov 7 2024, 6:11 AM
Unknown Object (File)
Nov 1 2024, 4:01 AM
Subscribers
None

Details

Summary

Ref T12822. Fixes a few things:

  • Firefox selection of weird ranges with an inline between the start and end of the range now works correctly.
  • "Show More Context" rows now render, highlight, and select properly.
  • Prepares for nodes to have copy-text which is different from display-text.
  • Don't do anything too fancy in 1-up/unified mode. We don't copy line numbers after the content: attr(data-n) change, but that's as far as we go, because trying to do more than that is kind of weird and not terribly intuitive.
Test Plan
  • Selected and copied weird ranges in Firefox.
  • Kept an eye on "Show More Context" rows across select and copy operations.
  • Generally poked around in Safari/Firefox/Chrome.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Feb 19 2019, 10:50 PM
This revision was automatically updated to reflect the committed changes.