Skip to content

Conversation

robwalch
Copy link
Collaborator

@robwalch robwalch commented Jul 1, 2025

This PR will...

This change ensures that QuotaExceededError is handled properly even after changes proposed in whatwg/webidl#1465 or any other change that would prevent identification of an append error as a "buffer full" (QuotaExceededError) error.

Why is this Pull Request needed?

Handles error object with incorrect code (!= 22), and always reduces max buffer length on append error.

Prevents first append error that is not a buffer full from being escalated to fatal when there are no other levels (allowing for retries up to appendErrorMaxRetry).

Are there any points in the code the reviewer needs to double check?

Resolves issues:

Fixes #7367

Checklist

  • changes have been done against master branch, and PR does not conflict
  • new unit / functional tests have been added (whenever applicable)
  • API or design changes are documented in API.md

@robwalch robwalch marked this pull request as ready for review July 1, 2025 23:09
@robwalch robwalch added this to the 1.6.6 milestone Jul 1, 2025
@robwalch robwalch changed the title Improve quota exceeded error handling Fix QuotaExceededError regression in Chrome 138 Jul 2, 2025
@robwalch robwalch changed the title Fix QuotaExceededError regression in Chrome 138 Fix QuotaExceededError regression caused br change in Chrome 138 Jul 2, 2025
@robwalch robwalch changed the title Fix QuotaExceededError regression caused br change in Chrome 138 Fix QuotaExceededError regression caused by change in Chrome 138 Jul 2, 2025
…thout interfering with append retries when there is no alternate
@robwalch robwalch merged commit 0e842b1 into master Jul 2, 2025
16 checks passed
@robwalch robwalch deleted the task/workaround-quota-exceeded-error-code-0 branch July 2, 2025 20:33
luwes added a commit to muxinc/elements that referenced this pull request Jul 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

QuotaExceededError not handled correctly in Chrome 138 and Edge 138
1 participant