Usually specs don't cover what happens when you run out of memory, as
implied by https://infra.spec.whatwg.org/#algorithm-limits. I think this is
fine. I'm interested in what other browsers do, but it's hard to test
unless you have a VM handy.

On Fri, 2 Aug 2024 at 01:17, Mike Taylor <miketa...@chromium.org> wrote:

> Hi there,
>
> Have we done any sort of web compatibility analysis of what this change
> implies? A broken page might be a better choice than a crashed tab, but
> it's hard to know without any sense of the potential impact of this change.
> Also, is there a plan to specify this behavior? What's the interop
> situation?
>
> thanks,
> Mike
> On 8/1/24 4:38 AM, 'xu ms' via blink-dev wrote:
>
> *Contact emails*: xuzha...@microsoft.com
>
> *Summary:*
>
> We are currently observing many renderer crashes occurring in text 
> encode.Encoding
> Standard (whatwg.org) <https://encoding.spec.whatwg.org/>
> This is because DOMArrayBuffer::Create is currently used to create a
> buffer, and when memory allocation fails, renderer process crashes. The
> reasons for memory allocation failure are unclear and not solely due to
> allocating excessively large memory.
>
> Therefore, we want to change the logic here so that when memory allocation
> fails, a DOMException is thrown from text encode instead of crashing.
>
> *Blink component*: Blink>TextEncoding
> <https://issues.chromium.org/issues?q=customfield1222907:%22Blink%3ETextEncoding%22>
>
> *Tracking bug*:[OOM] Is it a real OOM for blink::DOMArrayBuffer::Create?
> [355018938] - Chromium <https://issues.chromium.org/issues/355018938>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "blink-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to blink-dev+unsubscr...@chromium.org.
> To view this discussion on the web visit
> https://groups.google.com/a/chromium.org/d/msgid/blink-dev/f4cfdc62-707f-4d21-80d5-43ed37ce52fan%40chromium.org
> <https://groups.google.com/a/chromium.org/d/msgid/blink-dev/f4cfdc62-707f-4d21-80d5-43ed37ce52fan%40chromium.org?utm_medium=email&utm_source=footer>
> .
>
> --
> You received this message because you are subscribed to the Google Groups
> "blink-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to blink-dev+unsubscr...@chromium.org.
> To view this discussion on the web visit
> https://groups.google.com/a/chromium.org/d/msgid/blink-dev/c6b00d44-599f-47bf-be3d-9e977681b827%40chromium.org
> <https://groups.google.com/a/chromium.org/d/msgid/blink-dev/c6b00d44-599f-47bf-be3d-9e977681b827%40chromium.org?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to blink-dev+unsubscr...@chromium.org.
To view this discussion on the web visit 
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAC_ixdwDfGZQgUNP7HSkU03heC8VG2Zy8fqhJJWzxDerV1i8zA%40mail.gmail.com.

Reply via email to