Closed Bug 47981 Opened 25 years ago Closed 24 years ago

news://host/group (and news:group) urls launch new 3 pane window

Categories

(SeaMonkey :: MailNews: Message Display, defect, P3)

defect

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9.6

People

(Reporter: dcoyle, Assigned: hwaara)

References

()

Details

Attachments

(3 files, 1 obsolete file)

[build 2000080712] Clicking on HTML links to newsgroups e.g. news://news.mozilla.org/netscape.public.mozilla.webtools or news://news.mozilla.org/netscape.public.mozilla.mail-news launches a new Mail window each time, even though one was already open. Pasting above url into browser location bar produces the same behavior. Clicking link or pasting url also launches blank 'account wizard' dialog box. Dialog box reappears immediately after restarting Mail.
Confirmed 2000080804 Linux
Really confirm it...
Status: UNCONFIRMED → NEW
Ever confirmed: true
the "blank" wizard is bug 47123
future per mail triage
Target Milestone: --- → Future
accepting all "future" bugs to get them off my "new" bug radar.
Status: NEW → ASSIGNED
Seeing this also on Windows 2000, build 2000121608. Setting Platform/OS to ALL.
OS: Linux → All
QA Contact: lchiang → stephend
Hardware: PC → All
This is really annoying. Fix coming up soon.
Assignee: sspitzer → hwaara
Status: ASSIGNED → NEW
Attached patch Fix (obsolete) — Splinter Review
The patch uses the windowmediator to walk to windowtree, to see if there's any messenger window open, if there is, we focus it, if not, we open a new window. I've done extensive testing with this patch, together with the patch in bug 40033. Bienvenu, can you please r= so sspitzer can sr=?
Keywords: patch, review
I'll let Seth r and I'll sr, if that's OK.
Comment on attachment 54870 [details] [diff] [review] Fix This patch broke multiple mail window handling. I'm working on a better patch.
Attachment #54870 - Attachment is obsolete: true
Actually, it looks like this is broken in trunk builds as well, so this is not my fault.
Attached patch New fixSplinter Review
The new fix does only affect news urls. My last patch may have affected other parts of mailnews, since it was very general.
looks good, but instead of defining the static id, use the contract id. NS_WINDOWMEDIATOR_CONTRACTID
New patch posted with a change to use the CONTRACTID, as suggested. Now awaiting additional review.
Status: NEW → ASSIGNED
Target Milestone: Future → mozilla0.9.6
nsCOMPtr<nsIWindowMediator> mediator(do_GetService(NS_WINDOWMEDIATOR_CONTRACTID)); we should check either check rv or if the mediator was null. I'd suggest: nsCOMPtr<nsIWindowMediator> mediator = do_GetService(NS_WINDOWMEDIATOR_CONTRACTID, &rv); NS_ENSURE_SUCCESS(rv,rv);
Comment on attachment 55076 [details] [diff] [review] Patch -- add and prefer NS_ENSURE_SUCCESS for safety r=sspitzer the removal of the if (!aChannel) is safe because QI will return error on failure.
Attachment #55076 - Flags: superreview+
Attachment #55076 - Flags: review+
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Summary: link to newsgroups launches new mail window → news://host/group (and news:group) urls launch new 3 pane window
This works great on Windows and Linux (and, great for the _1st_ time on Mac). Subsequent parses of either |news://news.mozilla.org/netscape.test| or |news:netscape.test| URLs on Mac fail as follows: Entering news:netscape.test and hitting enter results in: * news://news.mozilla.org:119/netscape.test Entering news://news.mozilla.org:119/netscape.test results in: * news://news.mozilla.org:119/netscape.test On Mac, we still don't open up a new window (which is what this bug was about), but we're still doing something weird in the URL field [extractFromPort()], perhaps? On Windows and Linux, this is fixed because we don't open a new window and we don't change the url field. I'll spin up a new bug about the Mac, or maybe just note the case in bug 106553. See also semi-related bug 40033. Mac OS 9.1 - build 2001-10-30-08 Windows 2K - build 2001-10-30-03 RedHat 7.1 - build 2001-10-30-12
Status: RESOLVED → VERIFIED
Correction: 'Entering news://news.mozilla.org:119/netscape.test results in: * news://news.mozilla.org:119/netscape.test' Should read: 'Entering news://news.mozilla.org/netscape.test results in: * news://news.mozilla.org:119/netscape.test' I think the port should be transparent to the user, since 119 is the default for NNTP.
Product: Browser → Seamonkey
Component: MailNews: Subscribe → MailNews: Message Display
QA Contact: stephend → search
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: