Closed
Bug 37532
Opened 25 years ago
Closed 25 years ago
asserts clicking on javascript hrefs
Categories
(Core :: DOM: Navigation, defect, P3)
Tracking
()
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.
Comment 1•25 years ago
|
||
warren, should we ditch the ensure success, or should js urls succeed on this
call?
Assignee: travis → warren
| Assignee | ||
Comment 3•25 years ago
|
||
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
You need to log in
before you can comment on or make changes to this bug.
Description
•