Closed Bug 37532 Opened 25 years ago Closed 25 years ago

asserts clicking on javascript hrefs

Categories

(Core :: DOM: Navigation, defect, P3)

x86
Windows 2000
defect

Tracking

()

VERIFIED DUPLICATE of bug 40160

People

(Reporter: sean, Assigned: mscott)

Details

http://lxr.mozilla.org/seamonkey/source/webshell/src/nsWebShell.cpp#1206 recently changed from: rv = aURL->GetHost(getter_Copies(host)); if (NS_FAILED(rv)) return rv; to: NS_ENSURE_SUCCESS(aURL->GetHost(getter_Copies(host)), NS_ERROR_FAILURE); This causes asserts when aURL->scheme is 'javascript'. For example, clicking on the following causes an assert: <a href="javascript://" onClick="alert('assert');">Some link</a> Should javascript schemes have a host? If not, please restore the old code. Otherwise there are other problems.
warren, should we ditch the ensure success, or should js urls succeed on this call?
Assignee: travis → warren
I don't know. Isn't this mscott's thing?
Assignee: warren → mscott
I have a fix for this it just isn't nsbeta2... *** This bug has been marked as a duplicate of 40160 ***
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
verifying
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.