After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 731490 - Clicking a HTML link pointing to an anchor on the page currently viewed opens Nautilus
Clicking a HTML link pointing to an anchor on the page currently viewed opens...
Status: RESOLVED OBSOLETE
Product: yelp
Classification: Applications
Component: General
3.12.x
Other Linux
: Normal normal
: ---
Assigned To: Yelp maintainers
Yelp maintainers
Depends on:
Blocks:
 
 
Reported: 2014-06-10 23:41 UTC by intrigeri
Modified: 2018-05-22 13:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
reproducer (14.60 KB, text/html)
2014-06-10 23:41 UTC, intrigeri
Details

Description intrigeri 2014-06-10 23:41:54 UTC
Created attachment 278229 [details]
reproducer

My usecase is to browse a tree of local HTML files.

Both on Debian Wheezy (Yelp 3.4.2) + the patch that fixes #686095, and on Debian sid; both when opening the file with a relative path, and when opening it with a file:/// absolute path:

1. clicking on a link that points to an anchor, on a different page than the one currently viewed (e.g. <a href="../../about.en.html#cryptography">about page</a>): OK
2. clicking on a link that points to a different page than the one currently viewed, with no anchor involved: OK
3. clicking on a link that points to an anchor within the page currently viewed (e.g. <a href="./build.html/#index1h1">Using Vagrant</a> when viewing build.html): OK
4. clicking on a link that points to an anchor within the page currently viewed, but does not specify the page name, only the relative anchor (e.g. <a href="#index1h1">): FAIL --> opens a Nautilus window

All four cases are handled correctly when browsing the very same local tree of HTML files in Firefox, so I'm naively believing even the 4th case is correct HTML, and should ideally be handled correctly by Yelp.

Note that, even for the 4th (buggy) case:

* double-clicking an anchor link works fine
* "right click -> open link" works fine
* "right click -> open link in new window" works fine

I'm attaching a HTML file that I can reproduce the bug (4th case above) with, using the links in the table of contents on top of the page (e.g. "Using Vagrant").

I tried attaching gdb to the yelp process to get an idea of what code is getting Nautilus started, but clearly my gdb-fu is not up to that level.
Comment 1 GNOME Infrastructure Team 2018-05-22 13:05:59 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/yelp/issues/98.