Closed Bug 237446 Opened 21 years ago Closed 21 years ago

In <createProfileWizard.js>, "Error: newProfileRoot has no properties"

Categories

(SeaMonkey :: Startup & Profiles, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.7final

People

(Reporter: sgautherie, Assigned: sgautherie)

Details

Attachments

(2 obsolete files)

[Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7a) Gecko/20040219] (W98SE) {{ Error: newProfileRoot has no properties Source File: chrome://communicator/content/profile/createProfileWizard.js Line: 109 }} Steps: 1. ... Create Profile 2. ... Choose Folder 3. Cancel (without choosing anything) Updating: *(A.To) nobody#mozilla.org -> me
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.8alpha
Attached patch (Av1) <createProfileWizard.js> (obsolete) — Splinter Review
Bug fix, plus a little cleanup.
Attachment #143884 - Flags: review?(ccarlen)
I like the fix, of course, but I'm not sure about the cleanup. For example: - var currentProfileName = document.getElementById("profileName").value; var profilePathAndName = gProfileRoot.clone(); - profilePathAndName.append(currentProfileName); + profilePathAndName.append(document.getElementById("profileName").value); It's handy, for debugging purposes, to have the local var. Unless there's a significant cost for using local vars, I'd keep them. CC'ing Ben as he might know better on this issue. Also, I'm a little leery of whitespace cleanup in JS. At least with a compiled language, you can compile and run a binary comparison on the before and after object code to ensure equality.
Av1, with comment 2 suggestion(s); == without the "used-once" |var| removals.
Attachment #143884 - Attachment is obsolete: true
Attachment #143884 - Flags: review?(ccarlen)
Attachment #144123 - Flags: review?(ccarlen)
Comment on attachment 144123 [details] [diff] [review] (Av1b) <createProfileWizard.js> [Checked in: Comment 8] r=ccarlen
Attachment #144123 - Flags: review?(ccarlen) → review+
Attachment #144123 - Flags: superreview?(jag)
Comment on attachment 144123 [details] [diff] [review] (Av1b) <createProfileWizard.js> [Checked in: Comment 8] sr=jag
Attachment #144123 - Flags: superreview?(jag) → superreview+
Comment on attachment 144123 [details] [diff] [review] (Av1b) <createProfileWizard.js> [Checked in: Comment 8] approval1.7=?: Trivial UI flow fix; no risk.
Attachment #144123 - Flags: approval1.7?
Comment on attachment 144123 [details] [diff] [review] (Av1b) <createProfileWizard.js> [Checked in: Comment 8] a=chofmann for 1.7
Attachment #144123 - Flags: approval1.7? → approval1.7+
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Attachment #144123 - Attachment description: (Av1b) <createProfileWizard.js> → (Av1b) <createProfileWizard.js> [Checked in: Comment 8]
Attachment #144123 - Attachment is obsolete: true
Target Milestone: mozilla1.8alpha → mozilla1.7final
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: