Bug 260013 - [Win] WebCore::instanceHandle() always returns a null HINSTANCE
Summary: [Win] WebCore::instanceHandle() always returns a null HINSTANCE
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Fujii Hironori
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-08-09 23:00 PDT by Fujii Hironori
Modified: 2023-08-10 11:01 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fujii Hironori 2023-08-09 23:00:34 PDT
[Win] WebCore::instanceHandle() always returns a null HINSTANCE

WebCore::setInstanceHandle is called from nowhere in Win WK2.
WebCore::instanceHandle() is called in the following callsites.

WebCore/platform/graphics/win/FullScreenWindow.cpp
WebCore/platform/win/MainThreadSharedTimerWin.cpp
WebCore/platform/win/PasteboardWin.cpp
WebCore/platform/win/WebCoreBundleWin.cpp
WebKit/UIProcess/Inspector/win/WebInspectorUIProxyWin.cpp
WebKit/UIProcess/win/WebPopupMenuProxyWin.cpp
WebKit/UIProcess/win/WebView.cpp
Comment 1 Fujii Hironori 2023-08-09 23:01:25 PDT
What is the HINSTANCE passed to CreateWindow and RegisterClass used for? - The Old New Thing
https://devblogs.microsoft.com/oldnewthing/20050418-59/?p=35873
Comment 2 Fujii Hironori 2023-08-09 23:24:15 PDT
Pull request: https://github.com/WebKit/WebKit/pull/16558
Comment 3 EWS 2023-08-10 11:00:31 PDT
Committed 266769@main (a7bd570e6391): <https://commits.webkit.org/266769@main>

Reviewed commits have been landed. Closing PR #16558 and removing active labels.
Comment 4 Radar WebKit Bug Importer 2023-08-10 11:01:20 PDT
<rdar://problem/113703026>