Bug 32867 - IWebView::initWithFrame fails if OleInitialize has not been called
Summary: IWebView::initWithFrame fails if OleInitialize has not been called
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit API (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows XP
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar, PlatformOnly
Depends on:
Blocks:
 
Reported: 2009-12-22 07:05 PST by Adam Roben (:aroben)
Modified: 2009-12-22 07:05 PST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Roben (:aroben) 2009-12-22 07:05:12 PST
If a WebKit client calls IWebView::initWithFrame without calling OleInitialize, initWithFrame will fail. This is because initWithFrame treats failure of RegisterDragDrop as fatal, and RegisterDragDrop fails if OleInitialize hasn't been called.

See <http://trac.webkit.org/browser/trunk/WebKit/win/WebView.cpp?rev=52442#L2373> for where initWithFrame bails in this case.

We should either call OleInitialize automatically for the client, or just proceed without drag-and-drop support if RegisterDragDrop fails.
Comment 1 Adam Roben (:aroben) 2009-12-22 07:05:37 PST
<rdar://problem/7492756>