Bug #3332
Ubuntu, WebBrowser, link, TXM dont follow links with _blank target
Statut: | New | Début: | 25/01/2023 | ||
---|---|---|---|---|---|
Priorité: | High | Echéance: | |||
Assigné à: | - | % réalisé: | 20% |
||
Catégorie: | UI | Temps passé: | - | ||
Version cible: | TXM 0.8.4 |
Description
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:
<a href=""></a>
non working links:
<a target="_blank" href=""></a>
_target links still don't work in Eclipse 2022-12
Solution 1¶
Catch the opening event and use TXM's browser :
getBrowser().addOpenWindowListener(new OpenWindowListener() {
@Override
public void open(WindowEvent event) {
if (org.txm.utils.OSDetector.isFamilyUnix()) {
event.browser = getBrowser();
event.required = true;
}
}
});
note : opening another browser in a new tab or windows doesn't work :s
Historique
#1 Mis à jour par Matthieu Decorde il y a plus de 2 ans
- Sujet changé de WebBrowser, link, TXM dont follow links à WebBrowser, link, TXM dont follow links with _blank target
- Description mis à jour (diff)
#2 Mis à jour par Matthieu Decorde il y a plus de 2 ans
- Version cible changé de TXM 0.8.2 à TXM 0.8.3
#3 Mis à jour par Matthieu Decorde il y a plus de 2 ans
- Description mis à jour (diff)
- Version cible changé de TXM 0.8.3 à TXM 0.8.4
#4 Mis à jour par Serge Heiden il y a plus de 2 ans
Ça veut dire quoi "_target links still don't work in Eclipse 2022-12" ?
#5 Mis à jour par Matthieu Decorde il y a presque 2 ans
- Sujet changé de WebBrowser, link, TXM dont follow links with _blank target à Ubuntu, WebBrowser, link, TXM dont follow links with _blank target
- Description mis à jour (diff)
- % réalisé changé de 0 à 20