1) Launch MiniBrowser and load https://www.khronos.org/registry/webgl/sdk/demos/webkit/SpiritBox.html
2) After a rotating cube is drawn resize the Window.
Window is resized and we see a rotating cube.
Nothing is drawn after resize.
A better use case to test this:
Created attachment 183622 [details]
Comment on attachment 183622 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=183622&action=review
> + // Client doesn't own the Window. Delete surface only
> + // on writing side.
I would make that one line and write Window with lowercase
Created attachment 183625 [details]
Comment on attachment 183625 [details]
Clearing flags on attachment: 183625
Committed r140252: <http://trac.webkit.org/changeset/140252>
All reviewed patches have been landed. Closing bug.