Merge M72: FileReader: Make a copy of the ArrayBuffer when returning partial results.

This is to avoid accidentally ending up with multiple references to the
same underlying ArrayBuffer. The extra performance overhead of this is
minimal as usage of partial results is very rare anyway (as can be seen

(cherry picked from commit ba9748e78ec7e9c0d594e7edf7b2c07ea2a90449)

Bug: 936448
Change-Id: Icd1081adc1c889829fe7fa4af9cf4440097e8854
Commit-Queue: Marijn Kruisselbrink <>
Reviewed-by: Adam Klein <>
Cr-Original-Commit-Position: refs/heads/master@{#636251}
Reviewed-by: Will Harris <>
Cr-Commit-Position: refs/branch-heads/3626@{#881}
Cr-Branched-From: d897fb137fbaaa9355c0c93124cc048824eb1e65-refs/heads/master@{#612437}
1 file changed