Closed
Bug 1133350
Opened 11 years ago
Closed 10 years ago
Gecko Webbrowser in a .NET TabControl not using TabPage(0) crashes if Navigate(PAGE) is called before the Tab has been shown; also in the Designer.
Categories
(Core :: XUL, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: roderich.duerselen, Unassigned)
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0
Build ID: 20150122214805
Steps to reproduce:
Create a WinForms Application (both VB.NET, C#) with a TabControl and the Gecko Browser at the 2nd page.
Close Designer.
Insert "Skybound.Gecko.Xpcom.Initialize("C:\Projekte\_Gecko\xulrunner\")" before InitializeComponent()
Compile
Open Designer.
Click at 2nd Tab => Crash (Image1)
------
Start the Program,
Click Button Browser.Navigate at the 1st Tab => Crash
Actual results:
reproducable Exceptions in Designer (can be ignored)
and runtime:
---------------------------
"Cannot call Navigate() before the window handle is created."
==> StackTrace:
bei Skybound.Gecko.GeckoWebBrowser.Navigate(String url, GeckoLoadFlags loadFlags, String referrer, Byte[] postData, String additionalHeaders)
bei Skybound.Gecko.GeckoWebBrowser.Navigate(String url)
bei WindowsApplication1.Form1.Button1_Click(Object sender, EventArgs e) in C:\Projekte\Download\DownloadWatcher\DownloadWatcher\Form1.vb:Zeile 79.
bei System.Windows.Forms.Control.OnClick(EventArgs e)
bei System.Windows.Forms.Button.OnClick(EventArgs e)
bei System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
bei System.Windows.Forms.Control.WndProc(Message& m)
bei System.Windows.Forms.ButtonBase.WndProc(Message& m)
bei System.Windows.Forms.Button.WndProc(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
bei System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
bei System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
bei System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
bei System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
bei System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
bei System.Windows.Forms.Application.Run(ApplicationContext context)
bei Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
bei Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
bei Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
bei WindowsApplication1.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:Zeile 81.
bei System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
bei System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
bei Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
bei System.Threading.ThreadHelper.ThreadStart_Context(Object state)
bei System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
bei System.Threading.ThreadHelper.ThreadStart()
---------------------------
Expected results:
No Exceptions, the Window Handle should be created while instantiating the Gecko instance (like other .NET components).
=====================================
Other question: Is it possible to add more than one images to one Bug?
=====================================
Comment 1•10 years ago
|
||
Hi Roderich, we apologize for the late reply.
I'm wondering if you managed to do anything with this. I don't think we can do much with the info you left here, can you please see if the problem is still actual and if it is, reopen this issue and add more relevant info?
As a side note, I'm not even sure that this is a Gecko issue and most likely has several workarounds.
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → INCOMPLETE
| Reporter | ||
Comment 2•10 years ago
|
||
This is a VB.NET VS 2013 project designer file.
Add Gecko.dll V 1.9.1.0.
The default 1st tab is empty, the Gecko browser is on the 2nd tab.
Click in Designer on the 2nd Tab, then an Exception occurs.
| Reporter | ||
Updated•10 years ago
|
OS: Windows 7 → Windows 10
Hardware: x86_64 → x86
Comment 3•10 years ago
|
||
Unfortunately, I don't have VS2013 installed so i cannot try to reproduce the reported issue.
But based on the information provided on Comment 2, reopening the issue and assigning the core/xul component.
Status: RESOLVED → REOPENED
Component: Untriaged → XUL
Ever confirmed: true
Product: Firefox → Core
Resolution: INCOMPLETE → ---
Comment 4•10 years ago
|
||
It looks like you are running into issues using a third-party library that we do not officially support so the bug should be filed against the project that provides the library. In addition, it looks like the library is built on a very old version of Gecko that has reached end-of-life.
Status: REOPENED → RESOLVED
Closed: 10 years ago → 10 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•