WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 224415
209376
Text content not getting updated in sticky element.
https://bugs.webkit.org/show_bug.cgi?id=209376
Summary
Text content not getting updated in sticky element.
jianbo.wu
Reported
2020-03-20 23:22:11 PDT
When updating HTML content and sticky status at the same time in a macrotask/microtask (e.g. setTimeout or Promise.then), the value shown on the screen seems to be stale value. (still 0) Code sandbox:
https://codesandbox.io/s/focused-solomon-z3i79
To replicate the issue, open this link in Safari:
https://z3i79.csb.app/
(a popped out version of the sandbox above) Observation: - In other browsers, the text content of that sticky footer should be 1. - In safari, it's 0, until user scroll to bottom.
Attachments
Testcase
(864 bytes, text/html)
2020-03-23 10:23 PDT
,
Simon Fraser (smfr)
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2020-03-21 18:50:51 PDT
<
rdar://problem/60733061
>
Simon Fraser (smfr)
Comment 2
2020-03-23 09:44:42 PDT
We're failing to repaint the sticky layer.
Simon Fraser (smfr)
Comment 3
2020-03-23 09:47:41 PDT
Oddly this doesn't happen if
https://codesandbox.io/public/sse-hooks/sse-hooks.js
is not included, yet this JS isn't necessary for the test.
Simon Fraser (smfr)
Comment 4
2020-03-23 10:08:31 PDT
Actually I can reproduce without the included JS file. It's a bit timing dependent.
Simon Fraser (smfr)
Comment 5
2020-03-23 10:23:14 PDT
Created
attachment 394275
[details]
Testcase
Simon Fraser (smfr)
Comment 6
2020-03-23 10:23:34 PDT
The repaint we issue in the sticky layer is offset incorrectly. This testcase shows that sometimes the text half-paints.
Simon Fraser (smfr)
Comment 7
2020-03-23 10:26:16 PDT
And the repaint rect is getting offset by layoutDelta().
Martin Robinson
Comment 8
2021-08-25 04:00:14 PDT
I have confirmed that
r281185
fixed this in the repository. This fix should be available for Safari in the future. *** This bug has been marked as a duplicate of
bug 224415
***
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