Closed Bug 765789 Opened 13 years ago Closed 13 years ago

An error occurred updating the cmd_saveAsTemplate command: TypeError: gMessageBrowser.contentPrincipal.URI is null

Categories

(SeaMonkey :: MailNews: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: philip.chee, Assigned: ewong)

References

Details

(Keywords: regression)

Attachments

(1 file)

Tue Jun 19 2012 00:06:00 Error: An error occurred updating the cmd_saveAsTemplate command: TypeError: gMessageBrowser.contentPrincipal.URI is null Source file: chrome://global/content/globalOverlay.js Line: 92 I get this quite often since I have the message pane hidden (F8) http://hg.mozilla.org/comm-central/annotate/cff415a502cb/suite/mailnews/mail3PaneWindowCommands.js#l263 263 var target = gMessageBrowser.contentPrincipal.URI.scheme; This line fails because gMessageBrowser.contentPrincipal.URI is null.
Assignee: nobody → ewong
Status: NEW → ASSIGNED
Comment on attachment 635211 [details] [diff] [review] Fixed error when updating the cmd_saveAsTemplate command. (v1) > case "cmd_saveAsTemplate": >+ var msgFolder = GetSelectedMsgFolders(); >+ var target = msgFolder[0].server.localStoreType; > if (GetNumSelectedMessages() > 1 || target == "news") > return false; // else fall thru Why can't we save a news message as a template? TB appears to allow it looking at their code, will test to confirm soon.
(In reply to Ian Neal from comment #2) > Comment on attachment 635211 [details] [diff] [review] > Fixed error when updating the cmd_saveAsTemplate command. (v1) > > > case "cmd_saveAsTemplate": > >+ var msgFolder = GetSelectedMsgFolders(); > >+ var target = msgFolder[0].server.localStoreType; > > if (GetNumSelectedMessages() > 1 || target == "news") > > return false; // else fall thru > Why can't we save a news message as a template? TB appears to allow it > looking at their code, will test to confirm soon. Hmmm, they allow it but it silently fails :(
> Hmmm, they allow it but it silently fails :( Please file a Thunderbird bug on this issue.
(In reply to Philip Chee from comment #4) > > Hmmm, they allow it but it silently fails :( > Please file a Thunderbird bug on this issue. Logged as bug 771777
Attachment #635211 - Flags: review?(iann_bugzilla) → review+
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: