-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DOM: Observer error handler called with subscribe callback exception
This CL implements the proper Observable error handling when a subscribe callback throws an error, when their is an existing `Observer#error()` handler passed in. Observable error handling semantics have the error being piped through to the user's error handler (when it exists), and reported to the global otherwise. This CL also adds another detached global test, where `subscribe()` is called from within a detached document. We assert that the callback is never run. R=masonf@chromium.org Bug: 1485981 Change-Id: Iccbdbdcbe2492c6850b938bea111ca7e0ab91b01 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4922212 Commit-Queue: Dominic Farolino <dom@chromium.org> Reviewed-by: Mason Freed <masonf@chromium.org> Cr-Commit-Position: refs/heads/main@{#1209426}
- Loading branch information
1 parent
35bd681
commit 3e6b76f
Showing
6 changed files
with
62 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 0 additions & 16 deletions
16
...k/web_tests/external/wpt/dom/observable/tentative/observable-constructor.any-expected.txt
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
...ests/external/wpt/dom/observable/tentative/observable-constructor.any.worker-expected.txt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters