Closed Bug 864256 Opened 11 years ago Closed 11 years ago

Build failure in nsMsgStatusFeedback.cpp: "error: 'class nsIXULBrowserWindow' has no member named 'SetJSDefaultStatus'"

Categories

(MailNews Core :: Backend, defect)

defect
Not set
blocker

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 23.0

People

(Reporter: mcsmurf, Assigned: neil)

References

Details

(Keywords: regression)

Attachments

(1 file, 1 obsolete file)

Since Bug 862917 landed on mozilla-central, the Thunderbird and SeaMonkey builds fail with this error:
../../../../mailnews/base/src/nsMsgStatusFeedback.cpp: In member function 'virtual nsresult nsMsgStatusFeedback::SetStatusString(const nsAString_internal&)':
../../../../mailnews/base/src/nsMsgStatusFeedback.cpp:202:23: error: 'class nsIXULBrowserWindow' has no member named 'SetJSDefaultStatus'
make[8]: *** [nsMsgStatusFeedback.o] Error 1

I'm not really sure how to fix this.
OS: Windows 8 → All
Hardware: x86_64 → All
q.v.
  Bug 862917 - Remove window.defaultStatus.
  Bug 842017 - Remove broken support for displaying window.status / window.defaultStatus.
  Bug 862540 - window.status can no longer be set to anything, ever.
  Bug 863339 - remove unneeded code that supports setting window.status.

> I'm not really sure how to fix this.
Dunno. If Bug 863339 lands then I suppose we could replace "SetJSDefaultStatus" with "SetOverLink"
The default status is just a fallback for if we're not displaying any status text. We should be able to write some code to take account for that and just replace what was there I believe.

I'm not going to get time for this over the next week, though you might be able to ping me on irc if you want ideas. This code has felt a bit messy in the past, so a tidy up wouldn't hurt.
Or we could restore nsIXULBrowserWindow::SetJSDefaultStatus, if it actually has a consumer and an implementation in Thunderbird...
I think we can work around this by renaming the JS method name to setStatusString, which will allow us to call it on the nsIMsgStatusFeedback interface. (But my build is busted right now for other reasons which is why I don't have a patch ready yet.)
Attached patch Possible patch (obsolete) — Splinter Review
Comment on attachment 740689 [details] [diff] [review]
Possible patch

(Autocomplete fail...)
Attachment #740689 - Attachment description: Poss → Possible patch
Comment on attachment 740689 [details] [diff] [review]
Possible patch

WORKSFORME. f=Ratty
Attachment #740689 - Flags: feedback+
A build with Possible patch shows a non-stopping progress bar on MailNews. A subsequent build without this patch, instead with a backout of the patch of Bug 864256, does not show this unpleasant behavior.

SM Linux x86_64, Modern
As a check yet another build with Proposed patch. The progress bar in MailNews again doesn't stop to spin.
(In reply to Hartmut Figge from comment #9)
> As a check yet another build with Proposed patch. The progress bar in
> MailNews again doesn't stop to spin.

Probably due to
Error: ReferenceError: defaultStatus is not defined
Source File: chrome://messenger/content/mailWindow.js
Line: 388
(In reply to Hartmut Figge from comment #10)
> (In reply to Hartmut Figge from comment #9)
> > As a check yet another build with Proposed patch. The progress bar in
> > MailNews again doesn't stop to spin.
> 
> Probably due to
> Error: ReferenceError: defaultStatus is not defined
> Source File: chrome://messenger/content/mailWindow.js
> Line: 388

Ah, that must have been accidentally using window.defaultStatus which was also removed as part of bug 862917...
That reminds me of the C&P error in comment 8. Should have been 'backout of the patch of Bug 862917'. Sigh.
> Ah, that must have been accidentally using window.defaultStatus which was also removed
> as part of bug 862917...
I wonder if Bienvenu meant to use "myDefaultStatus" instead in Bug 181627

http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/mailnews/base/resources/content/mailWindow.js&rev=1.100.2.6&mark=426#418
Attached patch Proposed patchSplinter Review
Seems reasonable.
Assignee: nobody → neil
Attachment #740689 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #742083 - Flags: feedback?
(In reply to neil@parkwaycc.co.uk from comment #14)
> Created attachment 742083 [details] [diff] [review]

WFM on SM Linux x86_64
Comment on attachment 742083 [details] [diff] [review]
Proposed patch

Tested the patch locally, status bar updates seem to work fine, progress bar also works fine. No errors are visible in JS Console.
Attachment #742083 - Flags: feedback? → feedback+
Attachment #742083 - Flags: review?(mbanner)
TB builds OK as well:
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Thunderbird/23.0a1 ID:20130426174337 CSet: 3267f9ecf52c
Comment on attachment 742083 [details] [diff] [review]
Proposed patch

Review of attachment 742083 [details] [diff] [review]:
-----------------------------------------------------------------

I can't test this at the moment, but given others have, and the code looks fine, r=me.
Attachment #742083 - Flags: review?(mbanner) → review+
https://hg.mozilla.org/comm-central/rev/dabe938d0e09
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 23.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: