Closed
Bug 1269210
Opened 10 years ago
Closed 9 years ago
Forward button state not updated on subframe navigation
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(firefox49 affected, firefox54 verified)
VERIFIED
FIXED
Firefox 54
People
(Reporter: JanH, Assigned: JanH)
References
()
Details
Attachments
(2 files)
STR:
1. Go to http://www.railfaneurope.net/pix_frameset.html, click on a country flag and go down a few subdirectories.
2. Go back one page.
Expected:
Go forward button becomes enabled.
Observed:
Go forward button remains disabled.
Navigating via the history menu (long pressing the back/forward button) is working normally.
Alternative STR (once bug 1269189 lands):
1. Go to http://www.railfaneurope.net/pix_frameset.html, click on a country flag and go down a few subdirectories.
2. Go back one page.
3. Close the tab and then restore it.
4. Tab is restored with forward button enabled.
5. Go forward.
Expected:
Forward button becomes disabled once you've reached the end of the history stack.
Observed:
Forward button remains enabled.
afaik, we sync this state with Gecko:
* Tab.handleLocationChange sets mCanDoBack & mCanDoForward from the Gecko message [1]
* This sends the tab change event LOCATION_CHANGE [2]
* BrowserToolbar receives the event and calls, updateNavigationButtons [3] (it also calls this for a few other events like ADDED)
[1]: https://dxr.mozilla.org/mozilla-central/rev/0a25833062a880f369e6f9f622413a94cc671bf4/mobile/android/base/java/org/mozilla/gecko/Tab.java#627
[2]: https://dxr.mozilla.org/mozilla-central/rev/0a25833062a880f369e6f9f622413a94cc671bf4/mobile/android/base/java/org/mozilla/gecko/Tab.java#669
[3]: https://dxr.mozilla.org/mozilla-central/rev/0a25833062a880f369e6f9f622413a94cc671bf4/mobile/android/base/java/org/mozilla/gecko/toolbar/BrowserToolbar.java#479
| Assignee | ||
Updated•9 years ago
|
Assignee: nobody → jh+bugzilla
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
Comment 4•9 years ago
|
||
| mozreview-review | ||
Comment on attachment 8836398 [details]
Bug 1269210 - Part 1 - Remove unused variables from location change message and Java tab object.
https://reviewboard.mozilla.org/r/111820/#review113400
Attachment #8836398 -
Flags: review?(ahunt) → review+
Comment 5•9 years ago
|
||
| mozreview-review | ||
Comment on attachment 8836399 [details]
Bug 1269210 - Part 2 - Notify the UI to update the button state on subframe navigation.
https://reviewboard.mozilla.org/r/111822/#review113404
Looks good to me!
Attachment #8836399 -
Flags: review?(ahunt) → review+
Pushed by mozilla@buttercookie.de:
https://hg.mozilla.org/integration/autoland/rev/391c08abb710
Part 1 - Remove unused variables from location change message and Java tab object. r=ahunt
https://hg.mozilla.org/integration/autoland/rev/fd05b1c1758c
Part 2 - Notify the UI to update the button state on subframe navigation. r=ahunt
Comment 7•9 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/391c08abb710
https://hg.mozilla.org/mozilla-central/rev/fd05b1c1758c
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox54:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 54
Comment 8•9 years ago
|
||
Verified as fixed on Nightly 54.0a1(2017-02-16), on Motorola Nexus 6 (Android 7.0) & Huawei Honor 5X (Android 5.1.1).
Status: RESOLVED → VERIFIED
Updated•5 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•