Fix Webview scroll position preserve broken (#21531)
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
veeramarni/vscode,0xmohit/vscode,the-ress/vscode,cleidigh/vscode,0xmohit/vscode,matthewshirley/vscode,landonepps/vscode,rishii7/vscode,rishii7/vscode,radshit/vscode,DustinCampbell/vscode,joaomoreno/vscode,landonepps/vscode,joaomoreno/vscode,gagangupt16/vscode,gagangupt16/vscode,eamodio/vscode,the-ress/vscode,hoovercj/vscode,veeramarni/vscode,hungys/vscode,eamodio/vscode,hoovercj/vscode,hungys/vscode,hoovercj/vscode,rishii7/vscode,microlv/vscode,microlv/vscode,hungys/vscode,hashhar/vscode,KattMingMing/vscode,microlv/vscode,hungys/vscode,microsoft/vscode,hashhar/vscode,Zalastax/vscode,mjbvz/vscode,joaomoreno/vscode,gagangupt16/vscode,Zalastax/vscode,KattMingMing/vscode,stringham/vscode,Microsoft/vscode,hashhar/vscode,microlv/vscode,the-ress/vscode,mjbvz/vscode,stringham/vscode,cleidigh/vscode,eamodio/vscode,DustinCampbell/vscode,cleidigh/vscode,Microsoft/vscode,mjbvz/vscode,matthewshirley/vscode,eamodio/vscode,hungys/vscode,hungys/vscode,joaomoreno/vscode,eamodio/vscode,gagangupt16/vscode,Microsoft/vscode,microsoft/vscode,hashhar/vscode,0xmohit/vscode,eamodio/vscode,Krzysztof-Cieslak/vscode,eamodio/vscode,Microsoft/vscode,rishii7/vscode,DustinCampbell/vscode,joaomoreno/vscode,stringham/vscode,Krzysztof-Cieslak/vscode,rishii7/vscode,Microsoft/vscode,Microsoft/vscode,rishii7/vscode,mjbvz/vscode,veeramarni/vscode,landonepps/vscode,radshit/vscode,Microsoft/vscode,hungys/vscode,DustinCampbell/vscode,stringham/vscode,eamodio/vscode,hungys/vscode,Zalastax/vscode,0xmohit/vscode,Krzysztof-Cieslak/vscode,the-ress/vscode,hoovercj/vscode,microlv/vscode,0xmohit/vscode,Zalastax/vscode,veeramarni/vscode,microsoft/vscode,matthewshirley/vscode,matthewshirley/vscode,microlv/vscode,mjbvz/vscode,Krzysztof-Cieslak/vscode,the-ress/vscode,landonepps/vscode,veeramarni/vscode,DustinCampbell/vscode,radshit/vscode,the-ress/vscode,hungys/vscode,gagangupt16/vscode,0xmohit/vscode,hungys/vscode,joaomoreno/vscode,KattMingMing/vscode,matthewshirley/vscode,microlv/vscode,cleidigh/vscode,hoovercj/vscode,radshit/vscode,rishii7/vscode,stringham/vscode,joaomoreno/vscode,joaomoreno/vscode,mjbvz/vscode,Krzysztof-Cieslak/vscode,landonepps/vscode,DustinCampbell/vscode,hoovercj/vscode,joaomoreno/vscode,stringham/vscode,landonepps/vscode,joaomoreno/vscode,microsoft/vscode,rishii7/vscode,hoovercj/vscode,rishii7/vscode,microlv/vscode,rishii7/vscode,mjbvz/vscode,matthewshirley/vscode,stringham/vscode,microsoft/vscode,microlv/vscode,Zalastax/vscode,cleidigh/vscode,the-ress/vscode,mjbvz/vscode,stringham/vscode,landonepps/vscode,the-ress/vscode,cleidigh/vscode,Zalastax/vscode,rishii7/vscode,veeramarni/vscode,Zalastax/vscode,Zalastax/vscode,cleidigh/vscode,the-ress/vscode,rishii7/vscode,DustinCampbell/vscode,cleidigh/vscode,rishii7/vscode,DustinCampbell/vscode,KattMingMing/vscode,hoovercj/vscode,hungys/vscode,landonepps/vscode,landonepps/vscode,hoovercj/vscode,hoovercj/vscode,mjbvz/vscode,Krzysztof-Cieslak/vscode,KattMingMing/vscode,KattMingMing/vscode,Microsoft/vscode,cleidigh/vscode,stringham/vscode,hungys/vscode,hungys/vscode,microsoft/vscode,hungys/vscode,cleidigh/vscode,microsoft/vscode,microsoft/vscode,Krzysztof-Cieslak/vscode,microlv/vscode,KattMingMing/vscode,hashhar/vscode,matthewshirley/vscode,rishii7/vscode,gagangupt16/vscode,radshit/vscode,veeramarni/vscode,gagangupt16/vscode,Krzysztof-Cieslak/vscode,hashhar/vscode,radshit/vscode,mjbvz/vscode,0xmohit/vscode,Microsoft/vscode,hashhar/vscode,stringham/vscode,Zalastax/vscode,gagangupt16/vscode,KattMingMing/vscode,landonepps/vscode,stringham/vscode,the-ress/vscode,landonepps/vscode,cleidigh/vscode,hoovercj/vscode,microlv/vscode,DustinCampbell/vscode,DustinCampbell/vscode,eamodio/vscode,microlv/vscode,Zalastax/vscode,matthewshirley/vscode,0xmohit/vscode,stringham/vscode,microsoft/vscode,matthewshirley/vscode,microlv/vscode,cleidigh/vscode,DustinCampbell/vscode,Microsoft/vscode,joaomoreno/vscode,joaomoreno/vscode,joaomoreno/vscode,hashhar/vscode,mjbvz/vscode,matthewshirley/vscode,Krzysztof-Cieslak/vscode,cleidigh/vscode,Microsoft/vscode,matthewshirley/vscode,Zalastax/vscode,Zalastax/vscode,Microsoft/vscode,DustinCampbell/vscode,hoovercj/vscode,landonepps/vscode,Krzysztof-Cieslak/vscode,landonepps/vscode,Microsoft/vscode,DustinCampbell/vscode,microlv/vscode,landonepps/vscode,mjbvz/vscode,the-ress/vscode,gagangupt16/vscode,matthewshirley/vscode,Microsoft/vscode,Krzysztof-Cieslak/vscode,hashhar/vscode,landonepps/vscode,matthewshirley/vscode,0xmohit/vscode,gagangupt16/vscode,matthewshirley/vscode,Zalastax/vscode,cleidigh/vscode,gagangupt16/vscode,stringham/vscode,hoovercj/vscode,hashhar/vscode,Microsoft/vscode,matthewshirley/vscode,cleidigh/vscode,hashhar/vscode,radshit/vscode,gagangupt16/vscode,radshit/vscode,landonepps/vscode,hoovercj/vscode,0xmohit/vscode,radshit/vscode,Zalastax/vscode,DustinCampbell/vscode,joaomoreno/vscode,0xmohit/vscode,microsoft/vscode,the-ress/vscode,joaomoreno/vscode,gagangupt16/vscode,gagangupt16/vscode,DustinCampbell/vscode,Krzysztof-Cieslak/vscode,joaomoreno/vscode,joaomoreno/vscode,radshit/vscode,0xmohit/vscode,matthewshirley/vscode,microlv/vscode,mjbvz/vscode,radshit/vscode,landonepps/vscode,hashhar/vscode,veeramarni/vscode,Microsoft/vscode,hungys/vscode,eamodio/vscode,rishii7/vscode,0xmohit/vscode,veeramarni/vscode,cleidigh/vscode,cleidigh/vscode,microsoft/vscode,veeramarni/vscode,KattMingMing/vscode,eamodio/vscode,veeramarni/vscode,veeramarni/vscode,eamodio/vscode,stringham/vscode,veeramarni/vscode,rishii7/vscode,microsoft/vscode,radshit/vscode,hungys/vscode,mjbvz/vscode,veeramarni/vscode,DustinCampbell/vscode,KattMingMing/vscode,the-ress/vscode,the-ress/vscode,cra0zy/VSCode,Zalastax/vscode,radshit/vscode,0xmohit/vscode,Zalastax/vscode,matthewshirley/vscode,Krzysztof-Cieslak/vscode,the-ress/vscode,radshit/vscode,0xmohit/vscode,hoovercj/vscode,microsoft/vscode,KattMingMing/vscode,KattMingMing/vscode,KattMingMing/vscode,KattMingMing/vscode,hashhar/vscode,veeramarni/vscode,Krzysztof-Cieslak/vscode,veeramarni/vscode,microlv/vscode,stringham/vscode,mjbvz/vscode,hashhar/vscode,hashhar/vscode,radshit/vscode,microlv/vscode,radshit/vscode,KattMingMing/vscode,microsoft/vscode,eamodio/vscode,0xmohit/vscode,Krzysztof-Cieslak/vscode,hoovercj/vscode,the-ress/vscode,Krzysztof-Cieslak/vscode,gagangupt16/vscode,KattMingMing/vscode,gagangupt16/vscode,Zalastax/vscode,eamodio/vscode,0xmohit/vscode,DustinCampbell/vscode,stringham/vscode,hungys/vscode,Microsoft/vscode,microsoft/vscode,microsoft/vscode,eamodio/vscode,eamodio/vscode,Krzysztof-Cieslak/vscode,hoovercj/vscode,gagangupt16/vscode,eamodio/vscode,rishii7/vscode,hashhar/vscode,hashhar/vscode,veeramarni/vscode,microsoft/vscode,stringham/vscode,mjbvz/vscode,KattMingMing/vscode,radshit/vscode,mjbvz/vscode