Bug 236071 - window.pageYOffset is not updated immediately after scroll using 'element.focus' method
Summary: window.pageYOffset is not updated immediately after scroll using 'element.foc...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari 15
Hardware: Mac (Intel) macOS 12
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-02-03 03:52 PST by miherlosev
Modified: 2022-02-10 03:53 PST (History)
3 users (show)

See Also:


Attachments
Page for reproduce (552 bytes, text/html)
2022-02-03 03:52 PST, miherlosev
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description miherlosev 2022-02-03 03:52:21 PST
Created attachment 450756 [details]
Page for reproduce

Reproduced with Safari 15.3

'window.pageYOffset' is not updated after scroll using 'element.focus' method. 

Steps to reproduce:
1)Open an attached page in the browser
2)Wait 5 seconds
3)After that, the 'document.title will' contain the 'window.pageYOffset' value.

The correct value is 200. Such value is getting for Chrome 97, Firefox 96, and Safari 11.1.
Comment 1 Simon Fraser (smfr) 2022-02-03 16:28:54 PST
The scroll happens asynchronously, so window.pageYOffset is not immediately updated.
Comment 2 Radar WebKit Bug Importer 2022-02-10 03:53:14 PST
<rdar://problem/88747283>