[beacon] Avoid using deprecated DOMArrayBufferView function
With this CL I remove a use of DOMArrayBufferView::deprecatedByteLengthAsUnsigned and replace it by using DOMArrayBufferView::byteLengthAsSizeT. To avoid potential problems with overflows I do an overflow check in NavigatorBeacon::sendBeacon and throw a RangeError if necessary. Additionally I added checks to the BeaconDOMArrayBufferView implementation where the byteLengthAsSizeT is actually used. R=yhirano@chromium.org Bug: chromium:1008840 Change-Id: Ifa94e08e47384232e9d112244ffc29e0e870b2b8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1948884Reviewed-by:Yutaka Hirano <yhirano@chromium.org> Commit-Queue: Andreas Haas <ahaas@chromium.org> Cr-Commit-Position: refs/heads/master@{#721417}
Showing
Please register or sign in to comment