Related: https://bugs.webkit.org/show_bug.cgi?id=241420 The new API does not have an equivalent that runs code in the default world, and there is no way to ensure the default world is used with the world-parameter API. The code seems to assume that an empty string will use the default world, but that is not the case - this will still use a completely separate world from the default. I will create a patch for this.
Pull request: https://github.com/WebKit/WebKit/pull/2751
Committed 252947@main (bd12d92e5f93): <https://commits.webkit.org/252947@main> Reviewed commits have been landed. Closing PR #2751 and removing active labels.