WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
243743
window.onerror event.colno does not match event.error.stack
https://bugs.webkit.org/show_bug.cgi?id=243743
Summary
window.onerror event.colno does not match event.error.stack
Ahmad Saleem
Reported
2022-08-09 12:50:13 PDT
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@
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.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2022-08-16 12:51:16 PDT
<
rdar://problem/98744010
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug