Closed Bug 520237 Opened 15 years ago Closed 15 years ago

Help>Migration Assistant from windows other than 3pane throws error document.getElementById("tabmail") is null

Categories

(Thunderbird :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: wsmwk, Assigned: davida)

Details

(Whiteboard: [no l10n impact])

Attachments

(1 file, 1 obsolete file)

Help>Migration Assistant from windows other than 3pane throws 

Error: document.getElementById("tabmail") is null
Source File: chrome://communicator/content/utilityOverlay.js
Line: 333

20091001 build
This should be fairly trivial to fix.  Sid, can you whip up a patch?
Flags: blocking-thunderbird3+
Hint: about dialog already does what we want. Maybe even Help -> What's New does - though if it doesn't we should fix that as well.
Whiteboard: [no l10n impact]
Attached patch patch v1 (obsolete) — Splinter Review
Assignee: nobody → david.ascher
Status: NEW → ASSIGNED
Attachment #404645 - Flags: review?(bugzilla)
Whiteboard: [no l10n impact] → [no l10n impact][has patch, needs review standard8]
Comment on attachment 404645 [details] [diff] [review]
patch v1

>+  let url = "chrome://messenger/content/featureConfigurator.xhtml";

Should be a const - we're not going to change it.

>+  if (mail3PaneWindow) {
>+    tabmail = mail3PaneWindow.document.getElementById("tabmail");
>+    mail3PaneWindow.focus();
>+    let tabmail = mail3PaneWindow.document.getElementById("tabmail");
>+    tabmail.openTab("chromeTab", {chromePage: url});

tabmail is "defined twice" but doesn't need defining at all as it is just an intermediate variable.
Attachment #404645 - Flags: review?(bugzilla) → review+
Attached patch patch v2Splinter Review
I've addressed the comments and checked it in:

http://hg.mozilla.org/comm-central/rev/71684616d1dc
Attachment #404645 - Attachment is obsolete: true
Attachment #404799 - Flags: review+
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
OS: Windows Vista → All
Hardware: x86 → All
Resolution: --- → FIXED
Whiteboard: [no l10n impact][has patch, needs review standard8] → [no l10n impact]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: