Bug 178923 - Find a better way to prevent flicker on enter element fullscreen
Summary: Find a better way to prevent flicker on enter element fullscreen
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: WebKit Nightly Build
Hardware: iPhone / iPad Unspecified
: P2 Normal
Assignee: Jeremy Jones
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-26 21:42 PDT by Jeremy Jones
Modified: 2017-10-26 21:42 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Jones 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.