<?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>114304</bug_id>
          
          <creation_ts>2013-04-09 13:21:19 -0700</creation_ts>
          <short_desc>Provide a way to prevent tooltip containing the full text over truncated text</short_desc>
          <delta_ts>2025-01-14 04:20:11 -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>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>UNCONFIRMED</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=66178</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Daniel Trebbien">dtrebbien</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugged.dev</cc>
    
    <cc>dtrebbien</cc>
    
    <cc>mitz</cc>
    
    <cc>oliverwilliams345</cc>
    
    <cc>philip</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>vladgrynchyshyn</cc>
    
    <cc>woodlxf00</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>872046</commentid>
    <comment_count>0</comment_count>
    <who name="Daniel Trebbien">dtrebbien</who>
    <bug_when>2013-04-09 13:21:19 -0700</bug_when>
    <thetext>Bug 66178 added an option to automatically show tooltips (with the full text) over text that is truncated via text-overflow:ellipsis.  This option seems to have been recently enabled by default in Safari 6 and WebKit nightly (r147999 built on 09 April 2013 tested), but not in Chrome 26.0.1410.63 or Chrome 28.0.1469.0 canary.

An app that I am writing displays its own tooltip containing the full text if truncated.  So, in Safari 6 and WebKit nightly, I get two tooltips containing the full text.  This &quot;two tooltip&quot; issue has been mentioned on www-style recently as well:  http://lists.w3.org/Archives/Public/www-style/2013Apr/0013.html

Please provide an option to disable this tooltip so that I can use my JavaScript tooltip solution rather than WebKit&apos;s native tooltip, which in many cases is not as good as the JavaScript tooltip because the WebKit tooltip cannot be customized.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>872063</commentid>
    <comment_count>1</comment_count>
    <who name="">mitz</who>
    <bug_when>2013-04-09 13:49:48 -0700</bug_when>
    <thetext>If the setting is on by default then that’s a bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>872107</commentid>
    <comment_count>2</comment_count>
    <who name="Daniel Trebbien">dtrebbien</who>
    <bug_when>2013-04-09 15:45:13 -0700</bug_when>
    <thetext>The following command:

    defaults read /Applications/Safari.app/Contents/Resources/Defaults.plist WebKitShowsToolTipOverTruncatedText

shows that the default is TRUE (Safari 6.0.3, Mac OS 10.7.5).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>872270</commentid>
    <comment_count>3</comment_count>
    <who name="Daniel Trebbien">dtrebbien</who>
    <bug_when>2013-04-09 16:17:05 -0700</bug_when>
    <thetext>I found that changing the value of the WebKitShowsToolTipOverTruncatedText key to FALSE does not disable the tooltip.  Instead, if I change the value of the com.apple.Safari.ContentPageGroupIdentifier.WebKit2ShowsToolTipOverTruncatedText key from TRUE (the default) to FALSE, then the native tooltip is disabled.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>872359</commentid>
    <comment_count>4</comment_count>
    <who name="">mitz</who>
    <bug_when>2013-04-09 16:35:20 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; The following command:
&gt; 
&gt;     defaults read /Applications/Safari.app/Contents/Resources/Defaults.plist WebKitShowsToolTipOverTruncatedText
&gt; 
&gt; shows that the default is TRUE (Safari 6.0.3, Mac OS 10.7.5).

I see. These are Safari defaults, not WebKit’s. WebKit defaults (in both WebKit1 and WebKit2) to having this feature turned off.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>872360</commentid>
    <comment_count>5</comment_count>
    <who name="">mitz</who>
    <bug_when>2013-04-09 16:37:28 -0700</bug_when>
    <thetext>Just to clarify, by “JavaScript tooltip”, do you mean a DOM element styled to look like a tooltip or a native tooltip somehow triggered by JavaScript (how?)?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>872724</commentid>
    <comment_count>6</comment_count>
    <who name="Daniel Trebbien">dtrebbien</who>
    <bug_when>2013-04-10 04:47:09 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; Just to clarify, by “JavaScript tooltip”, do you mean a DOM element styled to look like a tooltip or a native tooltip somehow triggered by JavaScript (how?)?

I mean a DOM element styled to look like a tooltip.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>872922</commentid>
    <comment_count>7</comment_count>
    <who name="Philip Walton">philip</who>
    <bug_when>2013-04-10 10:09:45 -0700</bug_when>
    <thetext>I experienced this problem as well and sent a note to the www-style list to clarify the desired result in the spec. As far as I can tell, Webkit nightly and Safari 6 are the only browsers that show a tooltip for `overflow:ellipsis`.

Anthony Ticknor put together this test case for me, perhaps it will be helpful:
http://jsfiddle.net/apticknor/kc444/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1469309</commentid>
    <comment_count>8</comment_count>
    <who name="">bugged.dev</who>
    <bug_when>2018-10-15 10:34:24 -0700</bug_when>
    <thetext>On 2013-04-09 this was confirmed as a bug by mitz@webkit.org
Will this be getting fixed? It looks like it may have slipped through the cracks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1858520</commentid>
    <comment_count>9</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2022-04-05 12:56:02 -0700</bug_when>
    <thetext>*** Bug 238808 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2080421</commentid>
    <comment_count>10</comment_count>
    <who name="Woody Lee">woodlxf00</who>
    <bug_when>2024-12-09 22:23:33 -0800</bug_when>
    <thetext>Any progress with it?
We want to use a customized-style tooltip instead of the native one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2087023</commentid>
    <comment_count>11</comment_count>
    <who name="">vladgrynchyshyn</who>
    <bug_when>2025-01-14 04:20:11 -0800</bug_when>
    <thetext>You can cover the original text with a transparent element to prevent the original tooltip from appearing. If left position of the custom tooltip match to the left of the text, just use part of the popup itself (make it transparent).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>