[Webkit-unassigned] [Bug 165242] REGRESSION: IndexedDB.IndexedDBMultiProcess and IndexedDB.WebProcessKillIDBCleanup are timing out
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Nov 30 22:57:46 PST 2016
https://bugs.webkit.org/show_bug.cgi?id=165242
--- Comment #5 from Brady Eidson <beidson at apple.com> ---
The event handler in question is as follows:
event.target.transaction.oncomplete = function() {
window.webkit.messageHandlers.testHandler.postMessage('Transaction complete');
}
~95% of the time, that message never gets back to native code.
Sometimes it does.
If I change it to the following:
sawTransactionComplete = false;
event.target.transaction.oncomplete = function() {
window.webkit.messageHandlers.testHandler.postMessage('Transaction complete');
sawTransactionComplete = true;
}
... and then pass the value of sawTransactionComplete through to the onsuccess event handler message, native code sees that sawTransactionComplete is in fact true.
If I change it to the following:
event.target.transaction.oncomplete = function() {
window.webkit.messageHandlers.testHandler.postMessage('Transaction complete');
alert("Made it here!");
}
Then the existence of that alert() call makes the test reliably pass!
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20161201/e2d66978/attachment-0001.html>
More information about the webkit-unassigned
mailing list