Bug 243123
Summary: | Thousands of window.onload events makes Safari hang and page loading slower than other browsers | ||
---|---|---|---|
Product: | WebKit | Reporter: | Ahmad Saleem <ahmad.saleem792> |
Component: | Page Loading | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | achristensen, ap, beidson, bfulgham, cdumez, karlcow, rniwa, webkit-bug-importer |
Priority: | P2 | Keywords: | BrowserCompat, InRadar |
Version: | Safari 15 | ||
Hardware: | Mac (Apple Silicon) | ||
OS: | macOS 12 | ||
URL: | https://bug1542995.bmoattachments.org/attachment.cgi?id=9056867 | ||
See Also: |
https://bugs.webkit.org/show_bug.cgi?id=244154 https://bugs.webkit.org/show_bug.cgi?id=188499 |
Ahmad Saleem
Hi Team,
Thanks for doing good job, while trying to find how other browsers work for window.onload, I came across following test case in Mozilla Bugzilla:
Link - https://bug1542995.bmoattachments.org/attachment.cgi?id=9056867
It causes Safari tab to hang and also it makes interacting with other tabs bit difficult for few seconds and then it also take longer than other browsers (Chrome Canary 105 and Firefox Nightly 104) to load it.
** Steps to Reproduce ***
1. Load Link
2. Notice the page loading speed
EXPECTED RESULT: Page Loading should not be slower than other browsers and it should not hang Safari even in slightest
ACTUAL RESULT: Page Loading is slower and it do hang Safari on few occasion but it does not lead to crash
Looking forward for this bug to get fixed.
Thanks in advance.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Karl Dubost
Oh this is a bug I have created on Firefox, which came from a Webcompat issue.
https://bugzilla.mozilla.org/show_bug.cgi?id=1542995 (which should be closed probably)
The bug is based on a recursion limit.
On Firefox windows, the issue was fixed with a stack limit.
https://hg.mozilla.org/releases/mozilla-release/rev/c6f45f6f744d
And this one fixed it for other platforms.
https://bugzilla.mozilla.org/show_bug.cgi?id=1578350
Radar WebKit Bug Importer
<rdar://problem/97536058>