[breadcrumb] Escape location line component '/' characters
A volume label can be the first part of a breadcrumb path - that label can contain a '/' which the breadcrumb uses as the path separator when splitting a path into it parts (components). Volume labels like "Nexus/Pixel (MTP)" break the breadcrumb's '/' path splitter (see bug). Escape the path '/' splitter in location line, before sending the path to the breadcrumb. The breadcrumb can then correctly split the path on '/' and compute its parts. When presenting the parts in the breadcrumb UI, window.unescape() them first to undo location line escaping. Add a new unit test fixture testBreadcrumbRendersEscapedPathParts() to test the breadcrumb path character unescaping behavior. Bug: 1094105 Change-Id: I25f7622d31a72458412a0a5271ffb3aa1d5b69ab Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2317246Reviewed-by:Alex Danilo <adanilo@chromium.org> Reviewed-by:
Noel Gordon <noel@chromium.org> Commit-Queue: Noel Gordon <noel@chromium.org> Cr-Commit-Position: refs/heads/master@{#791745}
Showing
Please register or sign in to comment