Public bug reported:

# Platform

Firefox Developer Edition v 39.0a2 on Ubuntu Gnome 14.10 x86_64
GNU/Linux

# Steps to reproduce

1.  Go to a web page that contains relative links to a fragment, eg.

    * http://en.wikipedia.org/wiki/Fragment_identifier

    * https://github.com/request/request (in the *Table of contents*
section)

2.  Enter the Reader View (click on a book icon on the right side of the
address bar)

3.  Click any of the fragment links

    eg. on Wikipedia page any of the reference links, like `[1]` which
points to `#cite_note-1`

    on Request's GitHub page it would be `usage examples` which points
to `#examples`

# Expected behavior

In case of Wikipedia page:

* The URL changes to
http://en.wikipedia.org/wiki/Fragment_identifier#cite_note-1

* Viewport jumps to the fragment with given identifier

* Browser makes no new request (no page refresh)

* The Reader View stays on (doesn't switch to normal view)

# What happens instead

* The URL changes to http://en.wikipedia.org/wiki/#cite_note-1 (**last
part of path is missing**, in this example it would be
`Fragment_identifier`)

* The browser makes a request and displays the result

* The browser exits the Reader View and switches to normal view

Last two steps are actually expected given the path in the URL is
changed.

# Notes

When the mouse is hovered above the link in reader mode the URL
displayed on the bottom of the browser window is already corrupted.

If fragment identifier is manually added to the URL (typed into address
bar) in Reader View, the browser refreshes the page and exits the Reader
View.

Entering Reader View when a fragment identifier is already in the URL
doesn't respect it. The viewport goes to the top of the page. The URL in
the bar is not changed (the identifier is still there).

In normal view no new request is made when fragment identifier changes.
I believe in Reader View it should work the same way.

Also there is a new request whenever one enters or exits the Reader
View, but I don't believe it's related to this issue.

ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: firefox 39.0~a2~hg20150429r255253-0ubuntu1~umd1~utopic
ProcVersionSignature: Ubuntu 3.16.0-34.47-generic 3.16.7-ckt8
Uname: Linux 3.16.0-34-generic x86_64
AddonCompatCheckDisabled: False
ApportVersion: 2.14.7-0ubuntu8.4
Architecture: amd64
AudioDevicesInUse:
 USER        PID ACCESS COMMAND
 /dev/snd/controlC0:  tadeusz    2608 F.... pulseaudio
BuildID: 20150429232253
Channel: Unavailable
CurrentDesktop: GNOME
Date: Tue May  5 10:41:36 2015
DefaultProfileExtensions: extensions.sqlite corrupt or missing
DefaultProfileIncompatibleExtensions: Unavailable (corrupt or non-existant 
compatibility.ini or extensions.sqlite)
DefaultProfileLocales: extensions.sqlite corrupt or missing
DefaultProfilePlugins:
 iTunes Application Detector - 
/usr/lib/mozilla/plugins/librhythmbox-itms-detection-plugin.so 
(rhythmbox-mozilla)
 Gnome Shell Integration - 
/usr/lib/mozilla/plugins/libgnome-shell-browser-plugin.so (gnome-shell)
DefaultProfilePrefSources:
 prefs.js
 
/usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/[email protected]/defaults/preferences/001ubuntu-gnome-mods.js
DefaultProfileThemes: extensions.sqlite corrupt or missing
EcryptfsInUse: Yes
ForcedLayersAccel: False
IfupdownConfig:
 # interfaces(5) file used by ifup(8) and ifdown(8)
 auto lo
 iface lo inet loopback
InstallationDate: Installed on 2015-04-10 (24 days ago)
InstallationMedia: Ubuntu-GNOME 14.10 "Utopic Unicorn" - Release amd64 
(20141022.1)
IpRoute:
 default via 10.0.1.1 dev wlan0  proto static 
 10.0.1.0/24 dev wlan0  proto kernel  scope link  src 10.0.1.112  metric 9 
 172.17.0.0/16 dev docker0  proto kernel  scope link  src 172.17.42.1
Profile1Extensions: extensions.sqlite corrupt or missing
Profile1IncompatibleExtensions: Unavailable (corrupt or non-existant 
compatibility.ini or extensions.sqlite)
Profile1Locales: extensions.sqlite corrupt or missing
Profile1Plugins:
 iTunes Application Detector - 
/usr/lib/mozilla/plugins/librhythmbox-itms-detection-plugin.so 
(rhythmbox-mozilla)
 Gnome Shell Integration - 
/usr/lib/mozilla/plugins/libgnome-shell-browser-plugin.so (gnome-shell)
 Java(TM) Plug-in 11.45.2 - /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libnpjp2.so
Profile1PrefSources:
 prefs.js
 
/usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/[email protected]/defaults/preferences/001ubuntu-gnome-mods.js
Profile1Themes: extensions.sqlite corrupt or missing
Profiles:
 Profile0 (Default) - LastVersion=39.0a2/20150422183303 (Out of date)
 Profile1 - LastVersion=39.0a2/20150429232253 (In use)
RelatedPackageVersions:
 rhythmbox-mozilla 3.0.3-1ubuntu2
 gnome-shell       3.12.2-1ubuntu7
RunningIncompatibleAddons: False
SourcePackage: firefox
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 04/26/2010
dmi.bios.vendor: LENOVO
dmi.bios.version: 6QET45WW (1.15 )
dmi.board.name: 3626F7G
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: 
dmi:bvnLENOVO:bvr6QET45WW(1.15):bd04/26/2010:svnLENOVO:pn3626F7G:pvrThinkPadX201:rvnLENOVO:rn3626F7G:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 3626F7G
dmi.product.version: ThinkPad X201
dmi.sys.vendor: LENOVO

** Affects: firefox (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug utopic

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1451757

Title:
  Links to document fragment (#hash) gets corrupted in reader mode

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1451757/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to