We have moved to a new Sailfish OS Forum. Please start new discussions there.

# Long-pressing on image URL doesn't allow opening URL in new tab

Hi all,

I've noticed that by long-pressing an image URL in the browser it is not possible to open said URL in a new tab, as it is the case when long-pressing on a text URL. Instead, it is only allowed to download the image itself.

It's easy to test this behaviour, just try long-pressing the Jolla logo on this website.

I would like to see this feature implemented and offered as an alternative to downloading the image.

Thank you!

edit retag close delete

3

I can confirm this. It's very annoying when surfing phpBB forums: links included behind images are very common in them. Until this one is fixed, Sailfish browser is unusable for me and I'm forced to run Webcat or an Android browser. A shame, because the engine seems to be pretty fast.

( 2014-02-23 14:07:14 +0200 )edit

It's precisely perusing forums that pains me the most...

( 2014-02-23 17:34:24 +0200 )edit

@IZ1IVA said: still not implemented in 1.1.9.28

Hm... it's been partially implemented. "Jolla" logo works, but not your avatar. As to PHPbb forums, it works flawlessly.

( 2015-10-07 16:39:42 +0200 )edit

Thank you for your feedback @Mced, however it still doesn't for vBulletin forums ;-)

( 2015-10-07 19:48:24 +0200 )edit

Sort by » oldest newest most voted

I've complained it about it too here: https://together.jolla.com/question/84942/bug-cant-open-image-link-in-a-new-tab/ It was also reported upstream on github: https://github.com/sailfishos/sailfish-browser/issues/306

If you want, you can edit the qml file and fix it for yourself.

--- /usr/share/sailfish-browser/pages/components/BrowserContextMenu.qml.fixbrowser      2015-05-07 08:57:48.717868121 +0200
@@ -85,7 +85,7 @@ Rectangle {
width: parent.width

-            visible: root.linkHref.length > 0 && root.imageSrc.length === 0
//: Open link in current tab
@@ -98,7 +98,7 @@ Rectangle {

-            visible: root.linkHref.length > 0 && root.imageSrc.length === 0
//% "Open link in a new tab"
@@ -110,7 +110,7 @@ Rectangle {
}

-            visible: root.linkHref.length > 0 && root.imageSrc.length === 0
//% "Share"
@@ -122,7 +122,7 @@ Rectangle {
}

-            visible: root.linkHref.length > 0 && root.imageSrc.length === 0
//% "Copy to clipboard"
text: qsTrId("sailfish_browser-me-copy_to_clipboard")

more

Thank you very much @mihlit, I will try your patch. Nevertheless, I hope Jolla fixes it.

( 2015-05-27 11:19:37 +0200 )edit

The link with the Jolla Logo on top of this side is actually working, so it is not an example for this bug. But generally I can confirm it.

Technically spoken it occours on HTML <img /> image elements nested in <a> hyperlinks. The browser provides different dialogs for long pressing on a hyperlink and long pressing on an image. In this case of an image hyperlink we would need a dialog for both actions, which is currently not implemented.

more