[quickview] Render text files as UTF-8
For files that are known to be text: convert them to a UTF-8 blob, and use it to source the <webview src="params.contentUrl"> to convince the <webview> to render UTF-8 (issue 1064855). A follow-up change will add test coverage. Files that are not known to be text (issue 772600): continue to render as before (no UTF-8 support), using the default "browsable" code. This code is already covered by our test system. Store task verb in a local variable to aid debugging. Remove local |browsable| variable. Bug: 1064855 No-try: true Change-Id: Ic2cb580a97d25d2c90d95a72a954b6aa33b4c6a0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2425551 Commit-Queue: Noel Gordon <noel@chromium.org> Reviewed-by:Jeremie Boulic <jboulic@chromium.org> Reviewed-by:
François Degros <fdegros@chromium.org> Cr-Commit-Position: refs/heads/master@{#809732}
Showing
Please register or sign in to comment