Move/resize window is asynchronous in GTK, but automation expects it to be synchronous so that get window rect after setting it always returns the value set.
Created attachment 380119 [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 380119 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=380119&action=review > Source/WebKit/UIProcess/API/glib/WebKitUIClient.cpp:156 > + if (geometry.x >= 0 && geometry.y >= 0) { curly braces are not needed around this if. > Source/WebKit/UIProcess/API/glib/WebKitUIClient.cpp:159 > + if (geometry.width > 0 && geometry.height > 0) { Same here.
Committed r250707: <https://trac.webkit.org/changeset/250707>