[Mono-bugs] [Bug 445457] New: WebBrowser: Setting ScrollBarsEnabled crashes mono
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sun Nov 16 00:15:37 EST 2008
https://bugzilla.novell.com/show_bug.cgi?id=445457
Summary: WebBrowser: Setting ScrollBarsEnabled crashes mono
Product: Mono: Class Libraries
Version: 2.0
Platform: Other
OS/Version: Windows Vista
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Windows.Forms
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: apper at apper.de
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Created an attachment (id=252486)
--> (https://bugzilla.novell.com/attachment.cgi?id=252486)
Test case
When setting the ScrollBarsEnabled property, my Mono 2.0.1 using windows
crashes without any message.
The Mono WebBrowser.cs uses Document.InvokeScript() to set this property, so
the problem must be somewhere at this point. Using this directly results in the
same behavior, of course. But this is no surprise: the Document property of the
WebBrowser element is initially null, so calling InvokeScript() gets a
NullReferenceException even using MS.NET, as long as there is no page loaded
(which is the normal case, when setting a property like ScrollBarsEnabled).
Besides fixing the ScrollBarsEnabled setter, it should be evaluated, why Mono
crashes (without an error message) when accessing the Document property of a
WebBrowser element, where this is null.
The test case is a simple C# example, which creates a window with a webbrowser
and sets the ScrollBarsEnabled property, which results in a crash using Windows
Vista and Mono 2.0.1.
--
Configure bugmail: https://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