<?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>264702</bug_id>
          
          <creation_ts>2023-11-12 05:18:44 -0800</creation_ts>
          <short_desc>Handle empty title attribute tooltips</short_desc>
          <delta_ts>2024-01-04 18:50:34 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</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>BrowserCompat, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ahmad Saleem">ahmad.saleem792</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>akeerthi</cc>
    
    <cc>annevk</cc>
    
    <cc>karlcow</cc>
    
    <cc>mike</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1991956</commentid>
    <comment_count>0</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-11-12 05:18:44 -0800</bug_when>
    <thetext>Hi Team,

While going through Blink&apos;s commit, I came across another potential merge and to fix the bugs.

Blink Commit: https://chromium.googlesource.com/chromium/blink/+/a57f7f4625cd5d699a41154c67436ae423f7a5e1

WebKit Source: https://searchfox.org/wubkat/rev/6e975c79b0d4766d80b0421a6dedeae64ca84b63/Source/WebCore/rendering/HitTestResult.cpp#281

Test Case: https://jsfiddle.net/2fsd1La3/

^ hover on &apos;PageTitle&apos; and you will get tooltip while if you hover on &apos;span element..&apos;, in STP182, you will get parent&apos;s tooltip. While Chrome Canary 121 and Firefox Nightly 121 does not show parent&apos;s tooltip.

Just wanted to raise and fix it.

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1991957</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-11-12 05:21:14 -0800</bug_when>
    <thetext>Web-Spec: https://html.spec.whatwg.org/#the-title-attribute

The advisory information of an element is the value that the following algorithm returns, with the algorithm being aborted once a value is returned. When the algorithm returns the empty string, then there is no advisory information.

If the element has a title attribute, then return its value.

If the element has a parent element, then return the parent element&apos;s advisory information.

Return the empty string.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1993044</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-11-16 01:13:01 -0800</bug_when>
    <thetext>@Aditya - do we have any &apos;test mechanism&apos; for &apos;tooltips&apos; like Blink / Chromium in WebKit?

The attached test from PR or from source.chromium.org does not work 1-1 in WebKit and also I checked WPT, if we have any similar test (which we might be failing etc.).

In local testing, this PR does fix the issue in Test Case from Comment 0.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1993745</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-11-19 05:19:14 -0800</bug_when>
    <thetext>&lt;rdar://problem/118619793&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2003037</commentid>
    <comment_count>4</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2024-01-04 15:31:15 -0800</bug_when>
    <thetext>PR - https://github.com/WebKit/WebKit/pull/22403

Manage to make test. Yuppee!!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2003089</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-01-04 18:50:02 -0800</bug_when>
    <thetext>Committed 272667@main (e7d1f5b567cb): &lt;https://commits.webkit.org/272667@main&gt;

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

    </bug>

</bugzilla>