[Webkit-unassigned] [Bug 17761] window.onload fires before all subresources loaded
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu May 9 00:24:31 PDT 2024
https://bugs.webkit.org/show_bug.cgi?id=17761
--- Comment #7 from Karl Dubost <karlcow at apple.com> ---
> especially noticeable in the 2nd test 2d.pattern.basic.image -- on the first load it fails, but if you reload the page it passes.
This specific test doesn't fail for me on the 3 browsers.
There is a need for a better reduced test case to understand if this bug still occurs.
The current page in
https://philip.html5.org/tests/canvas/suite/tests/index.2d.pattern.html
is a series of iframe elements.
Some of these iframes are calling
https://philip.html5.org/tests/canvas/suite/tests.js
The window.onload is defined as
```
window.onload = function ()
{
try
{
var canvas = document.getElementById('c');
var ctx = canvas.getContext('2d');
test(canvas, ctx);
}
catch (e)
{
_fail('Aborted with exception: ' + e.message);
deferred = false; // cancel any deference
}
if (! deferred)
endTest();
};
```
The current tests failing (more likely) at first load, but green after reload are the tests toward the end of the page and it's randomly not the same set of tests.
--
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/20240509/62da4f2f/attachment-0001.htm>
More information about the webkit-unassigned
mailing list