WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
181125
WKWebView's didMoveToWindow doesn't call it's super
https://bugs.webkit.org/show_bug.cgi?id=181125
Summary
WKWebView's didMoveToWindow doesn't call it's super
Gabriel Banfalvi
Reported
2017-12-22 04:18:23 PST
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.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2017-12-22 12:44:02 PST
<
rdar://problem/36197325
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug