Last Comment Bug 705451 - html anchors do not always update in url bar
: html anchors do not always update in url bar
Product: Firefox for Android
Classification: Client Software
Component: General (show other bugs)
: unspecified
: All Android
P3 normal (vote)
: ---
Assigned To: Sriram Ramasubramanian [:sriram]
: Sebastian Kaspari (:sebastian)
Depends on:
  Show dependency treegraph
Reported: 2011-11-26 08:43 PST by (away until Feb21) Kartikaya Gupta (
Modified: 2016-07-29 14:20 PDT (History)
4 users (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---

Patch (1.31 KB, patch)
2011-12-06 15:17 PST, Sriram Ramasubramanian [:sriram]
mark.finkle: review+
Details | Diff | Splinter Review

Description User image (away until Feb21) Kartikaya Gupta ( 2011-11-26 08:43:14 PST
1. Load
2. Click on the "Go to bottom" link (ignore the fact that this may not actually scroll to the bottom - that's bug 704690)
3. Observe how the URL displayed in the url bar now has #bottom appended to it
4. Go to the bottom of the page and click on the "Go to top" link (again, ignore that this may not actually scroll)

Expected behaviour: the URL displayed in the URL bar should have #top instead of #bottom appended to it.
Observed behaviour: the URL displayed still has #bottom displayed.

Note also that if you tap on the URL bar at this point to edit the URL, the editable URL field shows #top (as is expected) but canceling the edit and returning to the page view again shows #bottom.
Comment 1 User image John Hammink 2011-11-28 10:30:20 PST
I can reproduce this on my Samsung Galaxy tab 3.1 with latestly nightly fennec native (11.28)
Comment 2 User image Sriram Ramasubramanian [:sriram] 2011-12-01 23:05:57 PST
I tried it today, and it seems to work fine for me. Please reopen if you still find this bug.

I/GeckoApp(10338): Got message: Content:LocationChange
I/GeckoApp(10338): URI -
I/GeckoTab(10338): Updated url: for tab with id: 2
Comment 3 User image (away until Feb21) Kartikaya Gupta ( 2011-12-02 13:57:16 PST
I'm still seeing this, but now the URL bar never updates. Reopening after discussing with Sriram on IRC - the expected behaviour is that the URL bar should always update and show the correct #target.
Comment 4 User image Sriram Ramasubramanian [:sriram] 2011-12-06 15:17:41 PST
Created attachment 579479 [details] [diff] [review]

The anchors are updated in the url bar. Earlier we were returning, if it was just a "#" change. Now the url bar alone is updated.
Comment 5 User image Mark Finkle (:mfinkle) (use needinfo?) 2011-12-07 07:14:13 PST
Comment 6 User image Matt Brubeck (:mbrubeck) 2011-12-07 12:26:46 PST
Comment 7 User image Aaron Train [:aaronmt] 2011-12-08 06:20:47 PST
Samsung Galaxy SII (Android 2.3.4)

Note You need to log in before you can comment on or make changes to this bug.