Closed
Bug 1217769
Opened 10 years ago
Closed 9 years ago
Cannot go back a page from "about:debugging" page
Categories
(DevTools :: about:debugging, defect, P2)
DevTools
about:debugging
Tracking
(firefox44 wontfix, firefox45 wontfix, firefox46 affected, firefox47 affected, firefox48 affected, firefox49 verified)
VERIFIED
FIXED
Firefox 49
People
(Reporter: magicp.jp, Assigned: jdescottes, Mentored)
References
()
Details
Attachments
(2 files)
|
331.28 KB,
video/mp4
|
Details | |
|
1.33 KB,
patch
|
janx
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:44.0) Gecko/20100101 Firefox/44.0
Build ID: 20151021030212
Steps to reproduce:
1. Run Nightly 44.0a1
2. Open "about:about"
3. Click "about:debugging" link
4. Click Back button
Please refer to attached movie.
Actual results:
Cannot go back a page from "about:debugging" page.
Expected results:
Can go back a page from "about:debugging" page.
URL: about:debugging
Has STR: --- → yes
status-firefox44:
--- → affected
Component: Untriaged → Document Navigation
OS: Unspecified → Windows 10
Product: Firefox → Core
Hardware: Unspecified → x86_64
Reproduce on OS X, Ubuntu and Windows.
OS: Windows 10 → All
Hardware: x86_64 → All
Comment 2•10 years ago
|
||
Looks like the about:about history entry is still there, but upon visiting about:debugging, an entry to about:debugging#addons is pushed onto the browsing history.
When the user hits back, we must hit the same script that re-injects about:debugging#addons. So the user is stuck there unless they click and hold the back button to go back to about:about.
status-firefox45:
--- → affected
status-firefox46:
--- → affected
Comment 3•9 years ago
|
||
Does seem to be document navigation bug, but an issue in about:debugging itself.
Component: Document Navigation → Developer Tools: about:debugging
Product: Core → Firefox
Comment 4•9 years ago
|
||
er, does _not_ seem to be document navigation issue...
Comment 5•9 years ago
|
||
Agreed, this behavior is annoying.
We should probably make it so that the initial change from about:debugging to about:debugging#addons doesn't push onto the browsing history, e.g. with something like `window.history.replaceState()`.
Priority: -- → P2
Updated•9 years ago
|
Mentor: janx
Whiteboard: [good-taipei-bug]
| Assignee | ||
Comment 6•9 years ago
|
||
Jan: I think we should make sure that the displayed view is in sync with the url hash. I would not like "addons" to be displayed if the URL bar contains "about:debugging#whatever". Using window.history.replaceState That being said, It's fine to have the "addons" view mapped to both "about:debugging" and "about:debugging#addons".
(I tried playing with replaceState here, but didn't manage to get the behavior I wanted. If you have an implementation in mind, feel free to override this patch and submit another one.)
FYI: we still trap the navigation history if the user enters a wrong hash. I think this is a minor issue, but I see two potential solutions here:
- we could either display an error view
- we say we don't care about having the URL in sync with the view: we display the default tab even if the hash matches no valid tab
Updated•9 years ago
|
Whiteboard: [good-taipei-bug]
Comment 7•9 years ago
|
||
Comment on attachment 8745979 [details] [diff] [review]
bug1217769.v1.patch
Review of attachment 8745979 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good to me, thanks for the quick fix!
(In reply to Julian Descottes [:jdescottes] from comment #6)
> Jan: I think we should make sure that the displayed view is in sync with the
> url hash. I would not like "addons" to be displayed if the URL bar contains
> "about:debugging#whatever".
Agreed, this would be confusing.
> That being
> said, It's fine to have the "addons" view mapped to both "about:debugging"
> and "about:debugging#addons".
That sounds fair.
> (I tried playing with replaceState here, but didn't manage to get the
> behavior I wanted. If you have an implementation in mind, feel free to
> override this patch and submit another one.)
That's OK, I like the behavior you implemented.
> FYI: we still trap the navigation history if the user enters a wrong hash. I
> think this is a minor issue, but I see two potential solutions here:
> - we could either display an error view
> - we say we don't care about having the URL in sync with the view: we
> display the default tab even if the hash matches no valid tab
I agree that it's a minor issue, but I do like your first follow-up suggestion. Would you mind opening another bug for it? Feel free to take it as well, or mark it [good-taipei-bug].
Attachment #8745979 -
Flags: review?(janx) → review+
| Assignee | ||
Comment 8•9 years ago
|
||
Thanks for the review. Just created the follow up Bug 1217769.
Try : https://treeherder.mozilla.org/#/jobs?repo=try&revision=09194ac3093f
Comment 10•9 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 49
Comment 11•9 years ago
|
||
I have reproduced the bug in Nightly 44.0a1 (2015-10-23)(Build ID:20151023030245) with the instruction from comment 0 and linux 64 bit
Bug is fixed now on latest Developer Edition 49.0a2 (2016-06-25)(Build ID:20160625004039)
User Agent:Mozilla/5.0 (X11; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0
[testday-20160624]
Updated•9 years ago
|
Status: RESOLVED → VERIFIED
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•