Bug 114304 - Provide a way to prevent tooltip containing the full text over truncated text
Summary: Provide a way to prevent tooltip containing the full text over truncated text
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Critical
Assignee: Nobody
URL:
Keywords:
: 238808 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-04-09 13:21 PDT by Daniel Trebbien
Modified: 2022-10-25 20:03 PDT (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Trebbien 2013-04-09 13:21:19 PDT
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 "two tooltip" 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's native tooltip, which in many cases is not as good as the JavaScript tooltip because the WebKit tooltip cannot be customized.
Comment 1 mitz 2013-04-09 13:49:48 PDT
If the setting is on by default then that’s a bug.
Comment 2 Daniel Trebbien 2013-04-09 15:45:13 PDT
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).
Comment 3 Daniel Trebbien 2013-04-09 16:17:05 PDT
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.
Comment 4 mitz 2013-04-09 16:35:20 PDT
(In reply to comment #2)
> 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).

I see. These are Safari defaults, not WebKit’s. WebKit defaults (in both WebKit1 and WebKit2) to having this feature turned off.
Comment 5 mitz 2013-04-09 16:37:28 PDT
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?)?
Comment 6 Daniel Trebbien 2013-04-10 04:47:09 PDT
(In reply to comment #5)
> 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.
Comment 7 Philip Walton 2013-04-10 10:09:45 PDT
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/
Comment 8 bugged.dev 2018-10-15 10:34:24 PDT
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.
Comment 9 Alexey Proskuryakov 2022-04-05 12:56:02 PDT
*** Bug 238808 has been marked as a duplicate of this bug. ***