mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-09 08:33:28 +02:00
This fixes a timeout in WPT's abort-in-initial-upgradeneeded.any.html test. The timeout was a rare one, caused by idbfactory_open.any.html leaving the second connection in the final test open, since support.js only tracks the connection created by the first createdb call. By leaving the connection open, the harness's deleteDatabase() call would never take effect. This in turn meant that the upgradeneeded test would fail an assertion on the number of databases. That assertion was also uncaught by the harness, turning it into a timeout instead of a fail. By closing the connections when a document is destroyed, we can ensure that the connection doesn't leak over to the next test and cause the exception to be thrown.
71 KiB
71 KiB