Bug 223632

Summary: CORS error on ResizeObserver loop
Product: WebKit Reporter: vitekio
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal    
Priority: P2    
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
CORS error on ResizeObserver loop none

Description vitekio 2021-03-23 03:49:21 PDT
Created attachment 424008 [details]
CORS error on ResizeObserver loop

'ResizeObserver loop completed with undelivered notifications' error is causing the CORS error why?
User sees only 'Script error. Error in cross-origin script..'.
It looks like a default message when an error has no file, line, or column, which is usually the case for security reasons on CORS error.
The 'ResizeObserver loop' error shouldn't cause an artificial CORS error.
Comment 1 Alexey Proskuryakov 2021-03-23 15:54:00 PDT
The ResizeObserver error appears to be an uncaught exception, and some JavaScript code (possibly in window.onerror) reports it. There is no evidence of a browser engine bug here, this all looks normal.

The link displayed by the handler (https://blog.sentry.io/2016/05/17/what-is-script-error) has some reasonable looking explanation too.
Comment 2 vitekio 2021-03-23 23:58:29 PDT
(In reply to Alexey Proskuryakov from comment #1)
> The ResizeObserver error appears to be an uncaught exception, and some
> JavaScript code (possibly in window.onerror) reports it. There is no
> evidence of a browser engine bug here, this all looks normal.
> 
> The link displayed by the handler
> (https://blog.sentry.io/2016/05/17/what-is-script-error) has some reasonable
> looking explanation too.

Initially, the issue is, why does 'cross-origin' error occur on ResizeObserver loop?