Mail snapshot has black webview in multitasking switcher
Created attachment 281866 [details]
Comment on attachment 281866 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=281866&action=review
> + UIKit suggested instead waiting for the window context teardown notification,
> + which does indeed seem to fire after the snapshotting is complete. I have a small
> + change to WebCore::IOSurface and RemoteLayerBackingStore that makes the problem
> + much more reproducible, and this fixes it perfectly, while the layers still
> + eventually end up being made volatile.
A bit too much story-telling here.
> -ApplicationStateTracker::ApplicationStateTracker(UIView *view, SEL didEnterBackgroundSelector, SEL willEnterForegroundSelector)
> +ApplicationStateTracker::ApplicationStateTracker(UIView *view, SEL didEnterBackgroundSelector, SEL didFinishSnapshottingAfterEnteringBackgroundSelector, SEL willEnterForegroundSelector)
Why all this selector magic, rather than just an Obj-C protocol or something?