Closed Bug 781956 Opened 9 years ago Closed 9 years ago
<wizard/> : Using advance(page
Id) on the last page should not close the wizard
I was trying to use advance() with a page ID parameter on the last page to send the user to a previous page. The use of goTo() is not a desired alternative, as it does not properly handle the page stack and makes the Back/Next buttons unreliable. Expected: The wizard would jump to the page ID specified as an argument to advance(). Result: The wizard calls the method in "wizardfinish" and closes. I believe a fix could be done with a single change at http://mxr.mozilla.org/mozilla-central/source/toolkit/content/widgets/wizard.xml#270 The existence of aPageId should also be checked with onLastPage to ensure that the wizard is really ready to finish and close. I am new to patching Mozilla, so I may or may not be successful in creating one myself.
This adds a check to ensure that there is no page ID before closing the wizard when advancing backwards on the last page.
Attachment #651022 - Flags: review?
Attachment #651022 - Flags: review? → review?(enndeakin)
Comment on attachment 651022 [details] [diff] [review] Add a check for aPageId before closing the wizard Thanks for the patch. I assume you don't have permission to check the patch in. In this case, you can set the 'checkin-needed' keyword on the bug and someone will check it in for you.
Attachment #651022 - Flags: review?(enndeakin) → review+
Trivial enough to land without a Try push. Thanks for the patch, Will! You can confirm that this bug is fixed once it lands on mozilla-central (probably tomorrow morning). https://hg.mozilla.org/integration/mozilla-inbound/rev/636c283ed0ed
Assignee: nobody → wnayes
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
You need to log in before you can comment on or make changes to this bug.