Fix Webview scroll position preserve broken (#21531)
**Bug** Some regression since 1.9 caused the scroll preserve behavior of webviews to stop working in certain cases. There appears to be a race condition where `newFrame.contentDocument.body` does not exist when the scroll update code is called **Fix** Instead of using a timeout, update the scroll position when `DOMContentLoaded` is fired from the webview window Fixes #21491
Showing
想要评论请 注册 或 登录