[Mono-bugs] [Bug 629495] New: Error reading the number of frame in a HTML page using WebBrowser class
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Aug 9 06:34:13 EDT 2010
http://bugzilla.novell.com/show_bug.cgi?id=629495
http://bugzilla.novell.com/show_bug.cgi?id=629495#c0
Summary: Error reading the number of frame in a HTML page using
WebBrowser class
Classification: Mono
Product: Mono: Class Libraries
Version: 2.6.x
Platform: 32bit
OS/Version: Windows Server 2003
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Windows.Forms
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: maurizio.regoli at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
Description of Problem:
I'm try to get the number of frame in a HTML page using WebBrowser class
running on Mono.
Steps to reproduce the problem:
1. try to navigate in
http://localhost/index.html where
index.html source code
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<title>Test Page</title>
</head>
<frameset cols="175,*" bordercolor="white" border="0" framespacing="0"
frameborder="NO">
<frame src="index04_02.html" name="Menu" scrolling="NO" noresize>
<frame src="index04_04.html" name="body" noresize>
<noframes>
<body bgcolor="white">
</body>
</noframes>
</frameset>
</html>
index04_02.html source code
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<title>remote IU</title>
</head>
<body link="#0033ff" vlink="#0033ff" alink="red" bgcolor="#ccccff" >
Frame1
</body>
</html>
index04_04.html source code
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<title>remote IU</title>
</head>
<body link="#0033ff" vlink="#0033ff" alink="red" bgcolor="#ccccff" >
Frame2
</body>
</html>
2. get the
this.webBrowser1.Document.Window.Frames["Menu"].Document.Window.Frames.Count
property
Actual Results:
return 2
Expected Results:
return 0
How often does this happen?
Additional Information:
This piece of code produce the same error running under Linux Fedora 11 64
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list