<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>273466</bug_id>
          
          <creation_ts>2024-04-30 00:23:22 -0700</creation_ts>
          <short_desc>Expose document.fragmentDirective (feature detection for text fragments)</short_desc>
          <delta_ts>2024-05-24 00:38:23 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Scrolling</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Philip Jägenstedt">philip</reporter>
          <assigned_to name="sideshowbarker">mike</assigned_to>
          <cc>megan_gardner</cc>
    
    <cc>mike</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>thorton</cc>
    
    <cc>tomac</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2032155</commentid>
    <comment_count>0</comment_count>
    <who name="Philip Jägenstedt">philip</who>
    <bug_when>2024-04-30 00:23:22 -0700</bug_when>
    <thetext>Spec: https://wicg.github.io/scroll-to-text-fragment/#feature-detectability

The purpose of document.fragmentDirective is to be able to feature detect support for text fragments, but according to https://caniuse.com/url-scroll-to-text-fragment Safari 16.1 shipped support for text fragments, but in my testing of Safari 17.4 and searching WebKit source, the feature detection bit isn&apos;t implemented.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2032157</commentid>
    <comment_count>1</comment_count>
    <who name="Philip Jägenstedt">philip</who>
    <bug_when>2024-04-30 00:26:12 -0700</bug_when>
    <thetext>I&apos;ve also filed https://github.com/WICG/scroll-to-text-fragment/issues/257 for discussion.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2033644</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-05-07 00:24:14 -0700</bug_when>
    <thetext>&lt;rdar://problem/127650843&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2036384</commentid>
    <comment_count>3</comment_count>
    <who name="sideshowbarker">mike</who>
    <bug_when>2024-05-20 03:53:25 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/28784</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2036385</commentid>
    <comment_count>4</comment_count>
    <who name="sideshowbarker">mike</who>
    <bug_when>2024-05-20 03:58:14 -0700</bug_when>
    <thetext>The https://github.com/WebKit/WebKit/pull/28784 PR doesn’t actually build yet — I’m getting a linking error with the bindings-generated code that I still need to sort out:

Undefined symbols for architecture arm64:
  &quot;WebCore::JSFragmentDirective::getConstructor(JSC::VM&amp;, JSC::JSGlobalObject const*)&quot;, referenced from:
      WebCore::jsDOMWindow_FragmentDirectiveConstructorGetter(JSC::JSGlobalObject&amp;, WebCore::JSDOMWindow&amp;) in UnifiedSource6.o

  &quot;WebCore::toJS(JSC::JSGlobalObject*, WebCore::JSDOMGlobalObject*, WebCore::FragmentDirective&amp;)&quot;, referenced from:
      JSC::JSValue WebCore::JSConverter&lt;WebCore::IDLInterface&lt;WebCore::FragmentDirective&gt;&gt;::convert&lt;WebCore::FragmentDirective&gt;(JSC::JSGlobalObject&amp;, WebCore::JSDOMGlobalObject&amp;, WebCore::FragmentDirective const&amp;) in UnifiedSource6.o
      
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2037569</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-05-24 00:38:20 -0700</bug_when>
    <thetext>Committed 279258@main (04bd634bf209): &lt;https://commits.webkit.org/279258@main&gt;

Reviewed commits have been landed. Closing PR #28784 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>