[webkit-changes] [WebKit/WebKit] 04bd63: Expose document.fragmentDirective (feature detecti...
sideshowbarker
noreply at github.com
Fri May 24 00:38:39 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 04bd634bf20976f70014303e66875f22f8d65946
https://github.com/WebKit/WebKit/commit/04bd634bf20976f70014303e66875f22f8d65946
Author: Michael[tm] Smith <mike at w3.org>
Date: 2024-05-24 (Fri, 24 May 2024)
Changed paths:
A LayoutTests/imported/w3c/web-platform-tests/scroll-to-text-fragment/scroll-to-text-fragment-api-expected.txt
A LayoutTests/imported/w3c/web-platform-tests/scroll-to-text-fragment/scroll-to-text-fragment-api.html
M Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml
M Source/WebCore/CMakeLists.txt
M Source/WebCore/DerivedSources-input.xcfilelist
M Source/WebCore/DerivedSources-output.xcfilelist
M Source/WebCore/DerivedSources.make
M Source/WebCore/Headers.cmake
M Source/WebCore/Sources.txt
M Source/WebCore/WebCore.xcodeproj/project.pbxproj
M Source/WebCore/bindings/js/WebCoreBuiltinNames.h
M Source/WebCore/dom/Document.cpp
M Source/WebCore/dom/Document.h
M Source/WebCore/dom/Document.idl
A Source/WebCore/page/FragmentDirective.h
A Source/WebCore/page/FragmentDirective.idl
Log Message:
-----------
Expose document.fragmentDirective (feature detection for text fragments)
https://bugs.webkit.org/show_bug.cgi?id=273466
Reviewed by Ryosuke Niwa.
This change makes WebKit expose the document.fragmentDirective property
from https://wicg.github.io/scroll-to-text-fragment/#feature-detectability —
to enable developers to programmatically detect that WebKit supports the
scroll-to-text-fragment feature. (Controlled by the new preference
ScrollToTextFragmentFeatureDetectionEnabled, also introduced in this change.)
Otherwise, without this change, developers can’t programatically detect
that WebKit supports the scroll-to-text-fragment feature.
* LayoutTests/imported/w3c/web-platform-tests/scroll-to-text-fragment/scroll-to-text-fragment-api-expected.txt: Added.
* LayoutTests/imported/w3c/web-platform-tests/scroll-to-text-fragment/scroll-to-text-fragment-api.html: Added.
* Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml:
* Source/WebCore/CMakeLists.txt:
* Source/WebCore/DerivedSources-input.xcfilelist:
* Source/WebCore/DerivedSources-output.xcfilelist:
* Source/WebCore/DerivedSources.make:
* Source/WebCore/Headers.cmake:
* Source/WebCore/Sources.txt:
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
* Source/WebCore/bindings/js/WebCoreBuiltinNames.h:
* Source/WebCore/dom/Document.cpp:
* Source/WebCore/dom/Document.h:
(WebCore::Document::fragmentDirectiveForBindings):
* Source/WebCore/dom/Document.idl:
* Source/WebCore/page/FragmentDirective.h: Added.
(WebCore::FragmentDirective::create):
* Source/WebCore/page/FragmentDirective.idl: Added.
Canonical link: https://commits.webkit.org/279258@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list