Closed
Bug 216154
Opened 22 years ago
Closed 21 years ago
Anchors in e-mails are broken (Clicking Anchor doesn't go to target in e-mail) (is not a registered protocol)
Categories
(MailNews Core :: Backend, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: Peter, Assigned: sspitzer)
References
Details
Attachments
(5 files, 1 obsolete file)
34.23 KB,
image/jpeg
|
Details | |
6.25 KB,
image/jpeg
|
Details | |
12.56 KB,
text/html
|
Details | |
41.86 KB,
message/rfc822
|
Details | |
3.16 KB,
patch
|
Bienvenu
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.5b) Gecko/20030810
Build Identifier: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.5b) Gecko/20030810
Anchors in e-mails are broken (Clicking Anchor doesn't go to target in e-mail)
Reproducible: Always
Steps to Reproduce:
1. receive an HTML e-mail that contains anchors (e.g., GameSpy newsletter)
2. Click on table of Contents item (that should take you to article further down)
Actual Results:
- e-mail doesn't scroll to anchored location
- Error message appears (see screenshots)
Expected Results:
- e-mail is scrolled to anchored location (further down in e-mail).
Reporter | ||
Comment 1•22 years ago
|
||
Reporter | ||
Comment 2•22 years ago
|
||
Comment 3•22 years ago
|
||
*** Bug 214416 has been marked as a duplicate of this bug. ***
Reporter | ||
Comment 4•22 years ago
|
||
Reporter | ||
Comment 5•22 years ago
|
||
Interestingly, the anchors *do* work when opening the HTML e-mail in the
browser; but they do *not* work in mail-news.
Comment 6•22 years ago
|
||
Broken base url?
Reporter | ||
Comment 7•22 years ago
|
||
Unlikely, because this bug exists now for *all* e-mails (completely unrelated to
each other) i receive that have anchors. In older mozilla versions, the anchors
all used to work.
Comment 8•22 years ago
|
||
I was refering to a possible change that broke the base-url in mailnews.
Comment 9•22 years ago
|
||
*** Bug 216864 has been marked as a duplicate of this bug. ***
Comment 10•22 years ago
|
||
*** Bug 217722 has been marked as a duplicate of this bug. ***
Comment 11•22 years ago
|
||
*** Bug 219340 has been marked as a duplicate of this bug. ***
Comment 12•21 years ago
|
||
*** Bug 220048 has been marked as a duplicate of this bug. ***
Comment 13•21 years ago
|
||
updating summary
Summary: Anchors in e-mails are broken (Clicking Anchor doesn't go to target in e-mail) → Anchors in e-mails are broken (Clicking Anchor doesn't go to target in e-mail) (is not a registered protocol)
![]() |
||
Comment 14•21 years ago
|
||
The base URL may have been broken all along, but anchor scrolling was recently
changed to use nsIURI instead of strings.
Comment 15•21 years ago
|
||
Debug warning:
WARNING: malformed url: no scheme, file
c:/mozilla/netwerk/base/src/nsStandardURL.cpp, line 686
Comment 16•21 years ago
|
||
Hmmm ... one of the first steps when clicking on a link is resolving the link to
a new complete url. This also happens with anchors. The debug message indicates
that the resolving process results in a string that can not be identified as an
url. I see only one options here: The base url is already invalid (or not
existing) before the resolving ... the result does not change that. Maybe
switching to nsIURI (as Boris mentioned) caused the baseurl to get lost or
getting invalid. The link-strings from the testcase look ok, so I don't think
they can be the reason.
![]() |
||
Comment 17•21 years ago
|
||
Neil, what is the string that necko is passed when you get that warning? The
stack for the warning should be under TriggerLink(). What is the baseURI there?
Comment 18•21 years ago
|
||
The baseURI looks fine, but unfortunately nsMailboxService::NewURI appears to
ignore it, unless the spec contains "?uidl" or "&uidl" for some pop3 reason.
![]() |
||
Comment 20•21 years ago
|
||
*** Bug 221089 has been marked as a duplicate of this bug. ***
Comment 21•21 years ago
|
||
*** Bug 222170 has been marked as a duplicate of this bug. ***
Comment 22•21 years ago
|
||
I've observed that these email links to anchors within the email do work with
other email readers, just not with Mozilla 1.5 email reader.
I double checked with UNIX netscape communicater 4.77 email reader and the links
work fine there. So I believe the links are valid, just not working correctly
within the email reader.
Comment 23•21 years ago
|
||
Surprised this bug wasn't fixed in Moz 1.5 release as it is clearly regressive
to Moz 1.4.1, that is, the anchors worked fine in 1.4.1, not in any version of
1.5 so far. I haven't checked to see if the same bug occurs in FBird.
![]() |
||
Comment 24•21 years ago
|
||
*** Bug 222434 has been marked as a duplicate of this bug. ***
Comment 25•21 years ago
|
||
Mail are also broken when you send it with moz 1.5
Comment 26•21 years ago
|
||
Sorry, but is this bug being worked on? It has been out there for a very long
time..
Comment 27•21 years ago
|
||
I will try to take a look starting with neil's comment #18, can anybody send me
such an email for tests.
Comment 28•21 years ago
|
||
Comment 29•21 years ago
|
||
Added an attachment with an email with ancors that do not work.
Comment 30•21 years ago
|
||
Thanks to all sending me testmails ... I think I have a fix for this. Neil was
right. Unfortunally I already have a patched nsMailboxService.cpp from bug 93666
... the bug is more than 2 years old ... the patch rots away for more than half
a year now ... still assigned to a netscape.com address. So this needs a little
bit more work from my side.
Comment 31•21 years ago
|
||
Comment 32•21 years ago
|
||
Comment on attachment 134706 [details] [diff] [review]
This patch fixes the problem for me ... please apply and test
OK, so this does appear to fix the problem for POP3 and local accounts, but not
IMAP and presumably not news either.
> nsCOMPtr<nsIMailboxUrl> aMsgUrl;
> nsresult rv = NS_OK;
> nsACString::const_iterator b, e;
>+ nsCString newSpec;
Should be defined where it is used... but then again, so should aMsgUrl ;-)
>+ if (!aBaseURI) {
>+ aUrl->SetSpec(aSpec);
>+ } else {
>+ aBaseURI->Resolve(aSpec,newSpec);
>+ aUrl->SetSpec(newSpec);
>+ }
Brace style in this file is each brace on its own line.
![]() |
||
Comment 33•21 years ago
|
||
See
http://lxr.mozilla.org/seamonkey/source/mailnews/news/src/nsNntpService.cpp#1468
for news://
See
http://lxr.mozilla.org/seamonkey/source/mailnews/local/src/nsPop3Service.cpp#279
(probably only used for actual POP retrievals).
See
http://lxr.mozilla.org/seamonkey/source/mailnews/imap/src/nsImapService.cpp#2626
for IMAP.
None of these do the right thing.
Comment 34•21 years ago
|
||
patch beautified and extended for imap and news. I left pop3Service out, I
don't think it makes sense there.
Attachment #134706 -
Attachment is obsolete: true
![]() |
||
Comment 35•21 years ago
|
||
Comment on attachment 134730 [details] [diff] [review]
beautified patch
sr=bzbarsky if you switch to nsCAutoString and put spaces between "," and
"newSpec" in the Resolve() calls...
bienvenu, what do you think?
Attachment #134730 -
Flags: superreview+
Attachment #134730 -
Flags: review?(bienvenu)
Comment 36•21 years ago
|
||
Comment on attachment 134730 [details] [diff] [review]
beautified patch
yes, r=bienvenu, with the same conditions as bz (nsCAutoString, formatting...)
and no, nsPop3Service is not needed for this.
Attachment #134730 -
Flags: review?(bienvenu) → review+
Comment 37•21 years ago
|
||
*** Bug 215248 has been marked as a duplicate of this bug. ***
Comment 38•21 years ago
|
||
Patch tweaked slightly and checked in.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
![]() |
||
Comment 39•21 years ago
|
||
*** Bug 224690 has been marked as a duplicate of this bug. ***
Reporter | ||
Comment 40•21 years ago
|
||
Thanks Neal. :) Another of my most-hated bugs fixed by you. You're rapidly
turning into my mozilla-hero-of-the-year. ;)
Comment 41•21 years ago
|
||
As a user, I also thank you Neal! The nightly windows update seems to be frozen
at 28-Oct-2003. When will this patch be applied..
Thanks Again...
Comment 42•21 years ago
|
||
The build at http://frp.pryan.org/firebird/mozjf/ includes the patch for this bug.
I've got it working right now and all looks good.
It does have the calendar built in but that can be removed if you don't want it.
Comment 43•21 years ago
|
||
Sorry Rollin,
but I am looking for the Mozilla updated version not firebird.
Comment 44•21 years ago
|
||
The good mozilla build which includes the fix for this bug has been moved to
http://frederic.bezies.free.fr/weblog/mozilla/
Sorry about the earlier misdirection.
Comment 45•21 years ago
|
||
*** Bug 225154 has been marked as a duplicate of this bug. ***
Comment 46•21 years ago
|
||
*** Bug 225581 has been marked as a duplicate of this bug. ***
Comment 47•21 years ago
|
||
*** Bug 225600 has been marked as a duplicate of this bug. ***
Comment 48•21 years ago
|
||
*** Bug 225975 has been marked as a duplicate of this bug. ***
![]() |
||
Comment 49•21 years ago
|
||
*** Bug 226083 has been marked as a duplicate of this bug. ***
Comment 50•21 years ago
|
||
*** Bug 226966 has been marked as a duplicate of this bug. ***
Comment 51•21 years ago
|
||
*** Bug 227443 has been marked as a duplicate of this bug. ***
Comment 52•21 years ago
|
||
*** Bug 233042 has been marked as a duplicate of this bug. ***
Updated•20 years ago
|
Product: MailNews → Core
Updated•17 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•