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)
SeaMonkey
MailNews: General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: philip.chee, Assigned: ewong)
References
Details
(Keywords: regression)
Attachments
(1 file)
1.20 KB,
patch
|
iannbugzilla
:
review+
|
Details | Diff | Splinter Review |
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 | |
Updated•13 years ago
|
Assignee: nobody → ewong
Status: NEW → ASSIGNED
![]() |
Assignee | |
Comment 1•13 years ago
|
||
Attachment #635211 -
Flags: review?(iann_bugzilla)
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 :(
![]() |
Reporter | |
Comment 4•13 years ago
|
||
> 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+
![]() |
Assignee | |
Comment 6•13 years ago
|
||
Pushed to comm-central:
http://hg.mozilla.org/comm-central/rev/eca74a832489
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.
Description
•