webnn: Do not allow partial MLTensor writes
The buffer to be written may be sliced before being passed to
the writeTensor() method
Bug: 328105506
Cq-Include-Trybots: luci.chromium.try:win11-blink-rel
Change-Id: Ia1fb607606653a1c9f781a202a6953e49d54af76
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5968203
Reviewed-by: Phillis Tang phillis@chromium.org
Commit-Queue: Austin Sullivan asully@chromium.org
Reviewed-by: ningxin hu ningxin.hu@intel.com
Cr-Commit-Position: refs/heads/main@{#1375665}