Bug 178923

Summary: Find a better way to prevent flicker on enter element fullscreen
Product: WebKit Reporter: Jeremy Jones <jeremyj-wk>
Component: WebKit2Assignee: Jeremy Jones <jeremyj-wk>
Status: NEW    
Severity: Normal    
Priority: P2    
Version: WebKit Nightly Build   
Hardware: iPhone / iPad   
OS: Unspecified   

Jeremy Jones
Reported 2017-10-26 21:42:28 PDT
element fullscreen swapping wkebview and the place holder view and changing the style of the WKWebView is pretty bad. dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ _repaintCallback = VoidCallback::create([self](WebKit::CallbackBase::Error) { dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ [self _manager]->willEnterFullScreen(); }); }); _page->forceRepaint(_repaintCallback.copyRef()); }); This is currently required to make sure web view is completely laid out before entering fullscreen.
Attachments
Note You need to log in before you can comment on or make changes to this bug.