WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
251657
avoid creating ElementRareData when lang="" matches the effective document language
https://bugs.webkit.org/show_bug.cgi?id=251657
Summary
avoid creating ElementRareData when lang="" matches the effective document la...
Cameron McCormack (:heycam)
Reported
2023-02-02 18:48:26 PST
On Wikipedia, there's a lang="" attribute on the <div> that contains the article content. On the page I'm looking at, this lang="" matches the value on the document element. Currently we'll create ElementRareData to store the effective language for the entire subtree, which for large articles can be several MB worth. We can optimize this by detecting when the explicitly set lang="" matches the effective document language, and avoid the subtree traversal / restyle / ElementRareData creation.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2023-02-02 18:48:49 PST
<
rdar://problem/104987630
>
Cameron McCormack (:heycam)
Comment 2
2023-02-02 20:14:33 PST
Pull request:
https://github.com/WebKit/WebKit/pull/9566
Cameron McCormack (:heycam)
Comment 3
2023-02-02 20:19:20 PST
Pull request:
https://github.com/WebKit/WebKit/pull/9580
EWS
Comment 4
2023-02-06 19:16:33 PST
Committed
259931@main
(8858f1de792a): <
https://commits.webkit.org/259931@main
> Reviewed commits have been landed. Closing PR #9580 and removing active labels.
Darin Adler
Comment 5
2023-02-08 07:21:11 PST
Since this landed the !hasLanguageAttribute() assertion has been firing when running regression tests on bots:
https://ews-build.s3-us-west-2.amazonaws.com/macOS-AppleSilicon-Ventura-Debug-WK2-Tests-EWS/72c673b1-6062/css3/masking/mask-svg-no-fragmentId-tiled-crash-log.txt
https://ews-build.s3-us-west-2.amazonaws.com/macOS-AppleSilicon-Ventura-Debug-WK2-Tests-EWS/72c673b1-6062/fast/css/large-font-size-crash-crash-log.txt
https://ews-build.s3-us-west-2.amazonaws.com/macOS-AppleSilicon-Ventura-Debug-WK2-Tests-EWS/72c673b1-6062/imported/w3c/web-platform-tests/css/css-pseudo/first-letter-with-span-crash-log.txt
https://ews-build.s3-us-west-2.amazonaws.com/macOS-AppleSilicon-Ventura-Debug-WK2-Tests-EWS/72c673b1-6062/imported/w3c/web-platform-tests/css/selectors/invalidation/lang-pseudo-class-in-has-xhtml-crash-log.txt
WebKit Commit Bot
Comment 6
2023-02-08 10:06:21 PST
Re-opened since this is blocked by
bug 251932
Ryan Haddad
Comment 7
2023-02-08 10:12:39 PST
Reverted in
https://commits.webkit.org/260019@main
due to the assertion failures.
Cameron McCormack (:heycam)
Comment 8
2023-02-08 12:07:07 PST
***
Bug 251904
has been marked as a duplicate of this bug. ***
Cameron McCormack (:heycam)
Comment 9
2023-02-08 12:55:27 PST
Pull request:
https://github.com/WebKit/WebKit/pull/9833
EWS
Comment 10
2023-02-08 21:11:43 PST
Committed
260047@main
(f31c6cd34376): <
https://commits.webkit.org/260047@main
> Reviewed commits have been landed. Closing PR #9833 and removing active labels.
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