Closed
Bug 75022
Opened 23 years ago
Closed 23 years ago
nsSHistory::GoBack/Forward's check is redundant
Categories
(Core :: DOM: Navigation, defect)
Tracking
()
VERIFIED
WONTFIX
People
(Reporter: bugzilla, Assigned: radha)
Details
nsSHistory::GoBack (and its Forward counterpart) calls nsSHistory::GetCanGoBack before going back. This seems a bit like a waste, because we have a canGoBack broadcaster that ensures that the user can't go back anyways (by updating the UI appropriately). Is it better to force people to call GetCanGoBack first, or should they be allowed to just call GoBack unequivocably, which then checks implicitly?
Assignee | ||
Comment 1•23 years ago
|
||
I think GoBack() calling CanGoBack() is OK. The browser is not the only client to the SH. Some embedding applications may not choose to call CanGoback() and expect SH to do the job for them. I'm going to leave the code as it is.
Comment 2•23 years ago
|
||
I have to agree with radha on this one - what happens if an embedder calls GoBack() when we're not allowed to go back.. we shouldn't barf, so we should call CanGoBack()
Assignee | ||
Comment 3•23 years ago
|
||
There is no bug here.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → WONTFIX
Comment 4•22 years ago
|
||
mass-verifying WontFix bugs which haven't changed since 2001-12-31. use the search string "BoletusEdulis" if you want to filter out this msg.
Status: RESOLVED → VERIFIED
Component: History: Session → Document Navigation
QA Contact: claudius → docshell
You need to log in
before you can comment on or make changes to this bug.
Description
•