Closed Bug 307024 Opened 19 years ago Closed 19 years ago

named named anchor links cause exception in phishingDetector.js :: isPhishingURL

Categories

(Thunderbird :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird1.1

People

(Reporter: mkmelin, Assigned: mscott)

Details

(Keywords: fixed1.8)

Attachments

(2 files)

Loading a message that contains a remote image throws an exception. 

Error: [Exception... "Component returned failure code: 0x804b000a
[nsIIOService.newURI]"  nsresult: "0x804b000a (<unknown>)"  location: "JS frame
:: chrome://messenger/content/phishingDetector.js :: isPhishingURL :: line 64" 
data: no]
Source File: chrome://messenger/content/phishingDetector.js
Line: 64

I see this using version 1.5 Beta 1 (20050903) and going back to at least start
of april. But not in thunderbird 1.0.x.
Attached file example β€”
When opening this example mail as a standalone message there are a lot of other
exceptions also. They don't appear loading it from the mailbox though.
Summary: loading message with remote image throws exception in phishingDetector.js :: isPhishingURL → loading message with remote image throws exception in phishingDetector.js :: isPhishingURL
In the function isPhishingURL, does adding, after var href = aLinkNode.href; :

if (!href)
  return false;

fix it?
(In reply to comment #2)
> In the function isPhishingURL, does adding, after var href = aLinkNode.href; :
> 
> if (!href)
>   return false;
> 
> fix it?

Yep, thanks. Patch coming up.
Summary: loading message with remote image throws exception in phishingDetector.js :: isPhishingURL → named named anchor links cause exception in phishingDetector.js :: isPhishingURL
Attached patch proposed fix β€” β€” Splinter Review
This fixes it. No exceptions for when loaded from mailbox.
Attachment #195044 - Flags: review?(mscott)
Comment on attachment 195044 [details] [diff] [review]
proposed fix

thanks for the patch
Attachment #195044 - Flags: superreview+
Attachment #195044 - Flags: review?(mscott)
Attachment #195044 - Flags: review+
fixed branch and trunk
Status: NEW → RESOLVED
Closed: 19 years ago
Keywords: fixed1.8
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird1.1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: