KeyPath validity checks should happen on the cloned value, not the original one: - https://www.w3.org/TR/IndexedDB/#add-or-put (Step 11.1) - https://www.w3.org/TR/IndexedDB/#dom-idbcursor-update (Step 9.1) This is causing the following WPT test to fail in WebKit: https://wpt.live/IndexedDB/clone-before-keypath-eval.html This test is passing in Chrome and Gecko.
Created attachment 433162 [details] Patch
Comment on attachment 433162 [details] Patch r=me
Committed r279767 (239537@main): <https://commits.webkit.org/239537@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 433162 [details].
<rdar://problem/80350450>