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

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

asked 2014-02-03 00:05:38 +0300

IZ1IVA gravatar image

updated 2017-05-02 13:29:54 +0300

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 flag offensive close delete

Comments

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.

Mced ( 2014-02-23 14:07:14 +0300 )edit

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

IZ1IVA ( 2014-02-23 17:34:24 +0300 )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.

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

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

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

2 Answers

Sort by » oldest newest most voted
5

answered 2015-05-27 10:58:48 +0300

mihlit gravatar image

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
+++ /usr/share/sailfish-browser/pages/components/BrowserContextMenu.qml 2015-05-07 08:59:22.748205360 +0200
@@ -85,7 +85,7 @@ Rectangle {
         width: parent.width

         MenuItem {
-            visible: root.linkHref.length > 0 && root.imageSrc.length === 0
+            visible: root.linkHref.length > 0 
             //: Open link in current tab
             //% "Open link"
             text: qsTrId("sailfish_browser-me-open_link")
@@ -98,7 +98,7 @@ Rectangle {


         MenuItem {
-            visible: root.linkHref.length > 0 && root.imageSrc.length === 0
+            visible: root.linkHref.length > 0
             //: Open link in a new tab from browser context menu
             //% "Open link in a new tab"
             text: qsTrId("sailfish_browser-me-open_link_in_new_tab")
@@ -110,7 +110,7 @@ Rectangle {
         }

         MenuItem {
-            visible: root.linkHref.length > 0 && root.imageSrc.length === 0
+            visible: root.linkHref.length > 0
             //: Share link from browser context menu
             //% "Share"
             text: qsTrId("sailfish_browser-me-share_link")
@@ -122,7 +122,7 @@ Rectangle {
         }

         MenuItem {
-            visible: root.linkHref.length > 0 && root.imageSrc.length === 0
+            visible: root.linkHref.length > 0
             //: Copy link to clipboard from browser context menu
             //% "Copy to clipboard"
             text: qsTrId("sailfish_browser-me-copy_to_clipboard")
edit flag offensive delete publish link more

Comments

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

IZ1IVA ( 2015-05-27 11:19:37 +0300 )edit
1

answered 2015-03-19 12:59:53 +0300

wanderer gravatar image

updated 2015-05-26 12:51:57 +0300

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.

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
3 followers

Stats

Asked: 2014-02-03 00:05:38 +0300

Seen: 562 times

Last updated: May 02 '17