Bug #3332
Mis à jour par Matthieu Decorde il y a presque 2 ans
This bug affects Linux and Mac OS X -> Webkit
When one click on a link the current page is not reloaded with the new URL + an empty "WebBrowser" window is opened
working links:
<pre>
<a href=""></a>
</pre>
non working links:
<pre>
<a target="_blank" href=""></a>
</pre>
_target links still don't work in Eclipse 2022-12
h3. Solution 1
Catch the opening event and use TXM's browser :
<code>
getBrowser().addOpenWindowListener(new OpenWindowListener() {
@Override
public void open(WindowEvent event) {
if (org.txm.utils.OSDetector.isFamilyUnix()) {
event.browser = getBrowser();
event.required = true;
}
}
});
</code>
note : opening another browser in a new tab or windows doesn't work :s
When one click on a link the current page is not reloaded with the new URL + an empty "WebBrowser" window is opened
working links:
<pre>
<a href=""></a>
</pre>
non working links:
<pre>
<a target="_blank" href=""></a>
</pre>
_target links still don't work in Eclipse 2022-12
h3. Solution 1
Catch the opening event and use TXM's browser :
<code>
getBrowser().addOpenWindowListener(new OpenWindowListener() {
@Override
public void open(WindowEvent event) {
if (org.txm.utils.OSDetector.isFamilyUnix()) {
event.browser = getBrowser();
event.required = true;
}
}
});
</code>
note : opening another browser in a new tab or windows doesn't work :s