[Webkit-unassigned] [Bug 181125] New: WKWebView's didMoveToWindow doesn't call it's super

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Dec 22 04:18:23 PST 2017


https://bugs.webkit.org/show_bug.cgi?id=181125

            Bug ID: 181125
           Summary: WKWebView's didMoveToWindow doesn't call it's super
           Product: WebKit
           Version: Safari 11
          Hardware: iPhone / iPad
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit2
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: gbanfalvi at gmail.com

WKWebView doesn't call UIView's (it's super-class') didMoveToWindow despite overriding it. 

It looks like this in UIProcess/API/Cocoa/WKWebView.mm

- (void)didMoveToWindow
{
    _page->activityStateDidChange(WebCore::ActivityState::AllFlags);
}

While in principle didMoveToWindow tends to be empty, I'm swizzling out will/didMoveToWindow on UIView to track hierarchy changes in UIViews (haven't found a better way to do that), and this breaks that.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20171222/44570c29/attachment.html>


More information about the webkit-unassigned mailing list