Contact emails
Spec
http://ecma-international.org/ecma-262/6.0/#sec-createbytedatablock
Summary
Avoid out-of-memory render process crashes when allocating ArrayBuffers by throwing an exception instead (as specified in ECMAScript 6.0)
Is this feature supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?
Yes
Compatibility Risk
For web application that do not trap the exceptions there is no risk: the script context where the error occurred will halt instead of crashing the whole process. For web content that does trap exceptions, there is a small (theoretical?) risk that this particular exception might not be handled correctly which might result in a confused application state.
The motivation for shipping this is that we have a significant bucket of renderer crashes caused by OOM exceptions in CanvasRenderingContext2D.getImageData(). The failures often happen in ads that are isolated in a iframe. By shipping this feature, the ad may halt or fail to render correctly in low memory conditions, without affecting the functionality of the host web page. This is a much better UX than to crash the entire tab. I believe this advantage strongly outweighs the compatibility risk.
OWP launch tracking bug
https://code.google.com/p/chromium/issues/detail?id=536816
Entry on the feature dashboard
None yet. Small change
A couple of questions:- what will you do for the array buffers that V8 uses internally, and without them it can't run (e.g. the one used to store the random seeds). Those are allocated per context, so it can happen that allocation fails during iframe setup.- what will you do for array buffers created in blink (and only later exposed to v8 if at all). Will you continue to crash there, or will you make sure that all codepaths that allocate array buffers can cope with allocation failures?
What do the other browser's do in this situation?
--
https://annevankesteren.nl/
On Mon, Sep 28, 2015 at 11:39 AM, Rick Byers <rby...@chromium.org> wrote:What do the other browser's do in this situation?According to Boris Zbarsky's reply on the whatwg thread, Gecko throws an exception : https://lists.w3.org/Archives/Public/public-whatwg-archive/2015Sep/0040.htmlIt is not clear however if this comment only related to the getImageData/createImageData APIs which were the subject of the discussion, or whether it related to all/most forms of ArrayBuffer allocations.
I have no information on other implementations
This should be trivial to check, right?
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
lgtm3
Please cc me on the CLs