Closed Bug 240648 Opened 22 years ago Closed 21 years ago

'Next' button disabled when last checkbox unchecked in Import Wizard

Categories

(Firefox :: Migration, defect, P2)

x86
Windows XP
defect

Tracking

()

RESOLVED FIXED
Firefox0.9

People

(Reporter: sgupta, Assigned: mconnor)

Details

(Whiteboard: fixed0.9,fixed-aviary1.0)

Attachments

(4 files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b) Gecko/20040412 Firefox/0.8.0+ Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b) Gecko/20040412 Firefox/0.8.0+ While trying to import data using the Import Wizard, and not selecting 'Bookmarks' for Netscape/Mozilla and Opera, or Favorites for I.E. disables the next button. Even on reverting to previous display (using back button) does not enable the 'Next' button. Reproducible: Always Steps to Reproduce: 1.Open Import Wizard under File menu and select any one of the browsers in the listing. 2.Navigate using the Next button and under "Select which items to import" check off 'Favorites' for I.E., Bookmarks for Netscape or Mozilla. 3.Now navigate back (using back button). Actual Results: On selecting as described above i.e. not selecting 'Favorites' for I.E. and 'Bookmarks' for Mozilla or Netscape, the 'Next' button is disabled. Not only for this display dialog, but when reverting to the previous display(s), the 'Next button continues to be disabled and the user cannot navigate further. Refer Snapshots. Expected Results: If selecting the 'Favorites' or 'Bookmarks' is mandatory and not doing so disables the 'Next' button, then on reverting to previous selection screen, the 'Next' button should be enabled. Refer Snapshots. Follow up tests --------------- 1. Tried verifying the same behavior with different combinations of the options provided, however only checking of 'Favorites' or 'Bookmarks' causes this behavior. 2. Went ahead and imported the checked items and then re-imported the data from the same browser(s). *Instead of prompting or updating/appending the existing bookmarks, a new bookmark directory gets created and so we have redundant bookmark information from the respective browser(s). Importance of the bug --------------------- 1. It seems that somehow navigation within the Import Wizard is entirely dependent on what selections the user makes from the choices listed. This is obvious when the user finishes selection and wants to go ahead and import data. However if the user wishes to revert or change some previous selections (profile, browser) then the navigation should not be dependent on the choices selected. This bug indicates 'feature interrrupting feature' and prevents ease of use (since one has to cancel and reopen the wizard everytime the big occurs).
er, wha?
Assignee: firefox → bugs
Status: UNCONFIRMED → NEW
Component: General → Migration
Ever confirmed: true
Flags: blocking0.9?
QA Contact: mconnor
Severity: normal → major
I can confirm this on windows xp. Could someone change the summary to show that the next button is disabled on the item page when last checkbox is unchecked. When deselecting the last checkbox on import wizard it disables the next button. It looks like the issue is in the migration.js file. The code below: onImportItemCommand: function (aEvent) { var items = document.getElementById("dataSources"); var checkboxes = items.getElementsByTagName("checkbox"); var oneChecked = false; for (var i = 0; i < checkboxes.length; ++i) oneChecked = checkboxes[i].checked; this._wiz.getButton("next").disabled = !oneChecked; }, There probably needs to be some sort of break after finding a checked checkbox.
Summary: 'Next' button disabled unexpectedly in Import Wizard → 'Next' button disabled when last checkbox unchecked in Import Wizard
that's fun logic :) I'll attach a patch tonight
Assignee: bugs → mconnor
Priority: -- → P2
Target Milestone: --- → Firefox0.9
Attachment #146635 - Flags: review?(bugs)
we shouldn't ship with this, its a clean patch
Status: NEW → ASSIGNED
Flags: blocking0.9? → blocking0.9+
Comment on attachment 146635 [details] [diff] [review] clean up the logic a little r=ben@mozilla.org
Attachment #146635 - Flags: review?(bugs) → review+
checked in branch and trunk 2004-05-21 18:33
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Whiteboard: fixed0.9
Whiteboard: fixed0.9 → fixed0.9,fixed-aviary1.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: