| Summary: | [Browser][WebKit] Javadoc tooltip cannot be closed with Esc | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Florian Wunderlich <fwunderlich> |
| Component: | SWT | Assignee: | Grant Gayed <grant_gayed> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | burkskinka, diamant.michael, eclipse.felipe, markus.kell.r, piers, remy.suen |
| Version: | 3.7 | ||
| Target Milestone: | 3.8 M7 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
Sounds like a problem with the WebKit browser. The Javadoc hover uses an SWT Browser widget, and since 3.7, that defaults to WebKit. I could not reproduce the problem on our Linux box, but I don't have WebKit installed. (In reply to comment #1) > Sounds like a problem with the WebKit browser. The Javadoc hover uses an SWT > Browser widget, and since 3.7, that defaults to WebKit. > > I could not reproduce the problem on our Linux box, but I don't have WebKit > installed. This is indeed correct, WebKit is most probably causing the problems. Thank you very much for the quick response. As soon as I move /usr/lib/libwebkit-1.0.so.2* away and start Eclipse, the JavaDoc tooltip can be closed with Esc. Thus, a simple workaround is: mkdir ~/eclipse-ld ln -s /dev/null libwebkit-1.0.so.2 LD_LIBRARY_PATH=~/eclipse-ld /opt/eclipse/eclipse In 3.7.1 and 3.8, the flag from bug 349837 will offer a better workaround (choose mozilla without fiddling with the installed WebKit library). This likely has the same cause as bug 350989, that events aren't delivered when JS is disabled. Marking report as a duplicate. *** This bug has been marked as a duplicate of bug 350098 *** Reopening, the fix for bug 350098 is apparently not enough to fix this case as well. *** Bug 364908 has been marked as a duplicate of this bug. *** Fixed > 20120412, patch: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=a7026b1b456498a95fd3935ab7b613f4c353caa4 . Can this be backported into 3.7.2? 3.7.2 has been finished for ~ a year, there aren't any more builds being made. Can anyone give me a clue as to how I can use this patch? I'm using Ubuntu 12.10 64 bit and the patch did not work for me!
I used a method similar to Missing Names's approach
Found all my libwebkit libs
$ ls -l /usr/lib/libwebkit*
lrwxrwxrwx 1 root root 26 Nov 27 2012 /usr/lib/libwebkitgtk-1.0.so.0 -> libwebkitgtk-1.0.so.0.17.3
-rw-r--r-- 1 root root 26539176 Nov 27 2012 /usr/lib/libwebkitgtk-1.0.so.0.17.3
lrwxrwxrwx 1 root root 26 Nov 27 2012 /usr/lib/libwebkitgtk-3.0.so.0 -> libwebkitgtk-3.0.so.0.17.3
-rw-r--r-- 1 root root 26534984 Nov 27 2012 /usr/lib/libwebkitgtk-3.0.so.0.17.3
Made a dir inside my eclipse folder and switch to it
$ mkdir ~/Programs/eclipse_indigo/libs
$ cd ~/Programs/eclipse_indigo/libs
Copied the libwebkit libs there
$ (cd /usr/lib/ ;for file in libwebkitgtk-*; do cp ${file} ~/Programs/eclipse_indigo/libs/${file}; done);
Then removed the libs but created same named softlinks to /dev/null in their place
$ for file in *; do rm ${file}; ln -s /dev/null ${file}; done;
Then made a script to run eclipse that exports LD_LIBRARY_PATH with the afformentioned folder on it and then launches eclipse!
#!/bin/bash
export LD_LIBRARY_PATH=~/Programs/eclipse_indigo/libs;
./eclipse_executable;
|
Build Identifier: 20110615-0604 Tooltips opened with F2 ("Show Tooltip Description") can be closed by pressing Esc, except Javadoc tooltips. This worked fine in Eclipse-3.4, it ceased to work in 3.7. Reproducible: Always Steps to Reproduce: 1. Enter the following into a new Java class with an arbitrary name: public static void test() { final String s = new String(); } 2. Place the cursor over String and press F2. A javadoc tooltip appears. Press Esc, nothing happens, the tooltip remains on the screen. Place the cursor over s, which is underlined in yellow, and press F2. The warning appears in a tooltip. Press Esc, and the tooltip disappears.