We can use webkit_web_view_run_javascript to replace the target list with the new one.
Created attachment 457036 [details] Patch
Created attachment 457037 [details] Patch
Committed r292599 (249432@trunk): <https://commits.webkit.org/249432@trunk>