Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 10396bf507cc815f725b7c17bad57e7b93b84e2b
https://github.com/WebKit/WebKit/commit/10396bf507cc815f725b7c17bad57e7b93b84e2b
Author: Ahmad Saleem <[email protected]>
Date: 2025-12-03 (Wed, 03 Dec 2025)
Changed paths:
M LayoutTests/highlight/highlight-interfaces-expected.txt
M LayoutTests/highlight/highlight-interfaces.html
M
LayoutTests/imported/w3c/web-platform-tests/css/css-highlight-api/HighlightRegistry-maplike-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/css/css-highlight-api/HighlightRegistry-maplike-tampered-Map-prototype.html
M
LayoutTests/imported/w3c/web-platform-tests/css/css-highlight-api/idlharness.window-expected.txt
M Source/WebCore/Modules/highlight/HighlightRegistry.idl
Log Message:
-----------
Remove `constructor` from `HighlightRegistry.idl`
https://bugs.webkit.org/show_bug.cgi?id=271360
rdar://problem/125529396
Reviewed by Brent Fulgham.
This patch aligns WebKit with Gecko / Firefox, Blink / Chromium and
Web Specification [1]:
[1] https://drafts.csswg.org/css-highlight-api/#highlightregistry
This removes `constructor` since it is not in web specification.
Additionally, this patch addresses two issues with the HighlightRegistry
tampered prototype test:
1. Removes reliance on the non-standard HighlightRegistry constructor and
instead uses CSS.highlights to access the standard HighlightRegistry
instance.
2. Properly restores Map.prototype to its original state after the test
completes. Since Map.prototype is frozen during the test, restoration is
done by creating a new prototype object with the saved descriptors and
replacing Map's prototype, rather than attempting to modify the frozen
object directly.
NOTE: Both of above changes were suggested by Alexey Shvaika (original
test author).
* LayoutTests/highlight/highlight-interfaces-expected.txt:
* LayoutTests/highlight/highlight-interfaces.html:
*
LayoutTests/imported/w3c/web-platform-tests/css/css-highlight-api/idlharness.window-expected.txt:
* Source/WebCore/Modules/highlight/HighlightRegistry.idl:
*
LayoutTests/imported/w3c/web-platform-tests/css/css-highlight-api/HighlightRegistry-maplike-tampered-Map-prototype.html:
*
LayoutTests/imported/w3c/web-platform-tests/css/css-highlight-api/HighlightRegistry-maplike-expected.txt:
Canonical link: https://commits.webkit.org/303858@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications