Closed Bug 35398 Opened 25 years ago Closed 25 years ago

accesing link properties hash, pathname, port, and search crash application for AREA.

Categories

(Core :: DOM: Core & HTML, defect, P3)

x86
Windows 95
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: desale, Assigned: jst)

Details

(Keywords: crash, Whiteboard: [HAVE FIX])

Attachments

(3 files)

accesing link properties hash, pathname, port, and search crash application for AREA Element. It does not happen with anchors. BUILDS USED: 2000-04-10-09. STEPS TO REPRODUCE: 1] Load Attachment I'm going to provide with above specified builds. OR 1] Copy HTML source I'm provideing. Save as HTML file. 2] Load this file with above specified builds. EXPECTD RESULTS: We should see one area and four properties printed on screen. ACTUAL RESULTS: Application crashes. TESTCASE CODE START: <HTML> <HEAD> <TITLE>Link Array Test</TITLE> </HEAD> <BODY > <FORM NAME="workform"> <A HREF="http://www.netscape.com/index.html#angels0?ser=20" TARGET="_new"> <MAP NAME="star"> <AREA NAME="topstar" SHAPE="RECT" COORDS="0,0,300,100" HREF="http://www.yahoo.com/index.html#angels?ser=15" TARGET="_new"> <AREA NAME="middlestar" SHAPE="RECT" COORDS="0,100,300,200" HREF="http://www.yahoo.com/index.html#angels1?ser=12" TARGET="_new"> <AREA NAME="bottomstar" SHAPE="RECT" COORDS="0,200,300,300" HREF="http://www.yahoo.com/index.html#angels2?ser=14" TARGET="_new"> </MAP> <IMG NAME="testimage" SRC="/testdata/highstar.gif" ALIGN="left" VSPACE="10" HEIGHT="300" WIDTH="300" BORDER="0" USEMAP="#star"> </A> </FORM> <SCRIPT TYPE="text/javascript"> document.write(document.links[1].hash); document.write(document.links[1].pathname); document.write(document.links[1].port); document.write(document.links[1].search); </SCRIPT> </BODY> </HTML> TESTCASE CODE END:
Attached file Same Testcase as above
Found the problem, we didn't inherit from the interface we claimed to support in QueryInterface(). The patch I just attached fixes this crash.
Status: NEW → ASSIGNED
Whiteboard: [HAVE FIX]
Target Milestone: --- → M16
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Adding crash keyword
Keywords: crash
Verified with 2000-02-22-08.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: