[Webkit-unassigned] [Bug 243743] New: window.onerror event.colno does not match event.error.stack

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 9 12:50:13 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=243743

            Bug ID: 243743
           Summary: window.onerror event.colno does not match
                    event.error.stack
           Product: WebKit
           Version: Safari 15
          Hardware: Mac (Apple Silicon)
                OS: macOS 12
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: DOM
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: zlip.792 at gmail.com

Hi Team,

I was looking into some test cases for DOM bugs in Chrome Bugzilla (or equivalent) and came across another test case where all browsers are showing different behavior and I think it would be something worth fixing:

Test Case - https://jsfiddle.net/a219snz7/

Chrome Bug - https://bugs.chromium.org/p/chromium/issues/detail?id=513608

*** STEPS TO REPRODUCE ***

1) Run JSFiddle and note "Console Logs"

Now I will share output of all browsers:

<< Safari 15.6 on macOS 12.5 >>

"<a class='gotoLine' href='#46:41'>46:41</a> Error: I am a test error"
"Caught error with stack:"
["global code at https://fiddle.jshell.net/_display/?editor_console=true:116:20"]
"Error colno: 41" ----------------- NOTE THIS

<< Chrome Canary 106 >>

"<a class='gotoLine' href='#46:5'>46:5</a> Uncaught Error: I am a test error"
"Caught error with stack:"
["Error: I am a test error", "    at https://fiddle.jshell.net/a219snz7/show/?editor_console=:116:11"]
"Error colno: 5"
"First stack line colno: 11"

<< Firefox Nightly 105 >>

"<a class='gotoLine' href='#46:11'>46:11</a> Error: I am a test error"
"Caught error with stack:"
["@https://fiddle.jshell.net/a219snz7/show/?editor_console=:116:11", ""]
"Error colno: 11"
"First stack line colno: "

______

Summary:

No browser is matching "Error colno" and Safari is missing "First Stack line colon:" as well.

Appreciate if this is something can be fixed or at least match with other browser to enable developers have consistent experience with window.onerror and event.colno.

Thanks for continuously making Webkit awesome.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220809/d70a59b7/attachment.htm>


More information about the webkit-unassigned mailing list