In GTK there isn't GTK_WINDOW_POPUP and we can't create GdkEvents, so we need to use toplevel windows everywhere and use the new internal api to synthesize events.
Created attachment 404140 [details] Patch
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See http://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API
Comment on attachment 404140 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=404140&action=review > Tools/TestWebKitAPI/glib/WebKitGLib/gtk/WebViewTestGtk.cpp:45 > + g_main_context_iteration(nullptr, TRUE); Wow, it's amazing that it's 2020 and we were still using the gtk_* main loop functions 😅️
Committed r264647: <https://trac.webkit.org/changeset/264647>
<rdar://problem/65871310>