Closed
Bug 237446
Opened 21 years ago
Closed 21 years ago
In <createProfileWizard.js>, "Error: newProfileRoot has no properties"
Categories
(SeaMonkey :: Startup & Profiles, defect)
SeaMonkey
Startup & Profiles
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
Assignee | ||
Updated•21 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.8alpha
Assignee | ||
Comment 1•21 years ago
|
||
Bug fix,
plus a little cleanup.
Assignee | ||
Updated•21 years ago
|
Attachment #143884 -
Flags: review?(ccarlen)
Comment 2•21 years ago
|
||
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.
Assignee | ||
Comment 3•21 years ago
|
||
Av1, with comment 2 suggestion(s);
== without the "used-once" |var| removals.
Assignee | ||
Updated•21 years ago
|
Attachment #143884 -
Attachment is obsolete: true
Attachment #143884 -
Flags: review?(ccarlen)
Assignee | ||
Updated•21 years ago
|
Attachment #144123 -
Flags: review?(ccarlen)
Comment 4•21 years ago
|
||
Comment on attachment 144123 [details] [diff] [review]
(Av1b) <createProfileWizard.js>
[Checked in: Comment 8]
r=ccarlen
Attachment #144123 -
Flags: review?(ccarlen) → review+
Assignee | ||
Updated•21 years ago
|
Attachment #144123 -
Flags: superreview?(jag)
Comment 5•21 years ago
|
||
Comment on attachment 144123 [details] [diff] [review]
(Av1b) <createProfileWizard.js>
[Checked in: Comment 8]
sr=jag
Attachment #144123 -
Flags: superreview?(jag) → superreview+
Assignee | ||
Comment 6•21 years ago
|
||
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 7•21 years ago
|
||
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+
Comment 8•21 years ago
|
||
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•21 years ago
|
Attachment #144123 -
Attachment description: (Av1b) <createProfileWizard.js> → (Av1b) <createProfileWizard.js>
[Checked in: Comment 8]
Attachment #144123 -
Attachment is obsolete: true
Assignee | ||
Updated•21 years ago
|
Target Milestone: mozilla1.8alpha → mozilla1.7final
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•