Bug 43231 - wxWebView crashes if no Top Level Parent Window available
Summary: wxWebView crashes if no Top Level Parent Window available
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit wx (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows XP
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-29 20:54 PDT by Malcolm MacLeod
Modified: 2010-08-02 13:08 PDT (History)
0 users

See Also:


Attachments
Patch to correct TLW behaviour (1.34 KB, patch)
2010-07-29 20:54 PDT, Malcolm MacLeod
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Malcolm MacLeod 2010-07-29 20:54:27 PDT
Created attachment 63023 [details]
Patch to correct TLW behaviour

In some situations when a wxWebView is created it is unable to find a top level (grand)parent window.
The code currently assumes it will always be able to do this so in these instances it either crashes or behaves erratically, I attach a patch below that attempts to handle the situation more gracefully as well as warning about the problem when in debug mode.
Comment 1 Malcolm MacLeod 2010-08-02 13:08:32 PDT
It appears that the solution is not as simple as I thought and that the attached patch does not really fix it fully. This will have to be approached in another way. The latest trunk version seems to be addressing this so I am withdrawing the report.