Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Get WebKitTestRunner loading TestNetscapePlugin on Windows
Fixes <http://webkit.org/b/43513> WebKitTestRunner on Windows fails to load TestNetscapePlugin Reviewed by Jon Honeycutt. WebKit2: Teach WebKit2 how to load the TestNetscapePlugin * Platform/Module.cpp: (WebKit::Module::Module): Initialize m_module on Windows. * Platform/Module.h: Added m_module on Windows. * Platform/win/ModuleWin.cpp: (WebKit::Module::load): Implemented using ::LoadLibraryExW. (WebKit::Module::unload): Implemented using ::FreeLibrary. (WebKit::Module::platformFunctionPointer): Implemented using ::GetProcAddress. * Platform/win/RunLoopWin.cpp: (RunLoop::TimerBase::timerFired): Kill the native timer before calling the fired callback. This makes all our timers non-repeating, but that's all we need currently. (RunLoop::TimerBase::start): Added an assertion to help us figure out when we need to implement repeating timers. Also fixed a typo. * UIProcess/Plugins/win/PluginInfoStoreWin.cpp: (WebKit::PluginInfoStore::pluginsDirectories): Added a FIXME. (WebKit::PathWalker::PathWalker): (WebKit::PathWalker::~PathWalker): (WebKit::PathWalker::isValid): (WebKit::PathWalker::data): (WebKit::PathWalker::step): Added. This class wraps the ::FindFirstFile/::FindNextFile APIs. (WebKit::PluginInfoStore::pluginPathsInDirectory): Implemented by porting logic from WebCore::PluginDatabase::getPluginPathsInDirectories. (WebKit::getVersionInfo): Copied from PluginDatabaseWin.cpp. (WebKit::PluginInfoStore::getPluginInfo): Implemented by porting logic from WebCore::PluginPackage::fetchInfo. (WebKit::PluginInfoStore::shouldUsePlugin): Changed to always return true for now. Added a FIXME about implementing this for real. * UIProcess/WebProcessProxy.cpp: (WebKit::WebProcessProxy::didReceiveSyncMessage): * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp: (WebKit::WebFrameLoaderClient::createPlugin): Removed PLATFORM(MAC) guards around plugin code. * win/WebKit2.vcproj: Let VS sort the file. WebKitTools: Fix the path to TestNetscapePlugin's directory on Windows * WebKitTestRunner/win/TestControllerWin.cpp: (WTR::TestController::initializeTestPluginDirectory): TestNetscapePlugin is in a TestNetscapePlugin[_Debug] directory that's next to WebKitTestRunner.exe. Previously we were passing the directory that contains WebKitTestRunner.exe. Also fixed some leaks. Canonical link: https://commits.webkit.org/55562@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64744 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
11 changed files
with
220 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -31,6 +31,9 @@ namespace WebKit { | ||
|
||
Module::Module(const String& path) | ||
: m_path(path) | ||
#if PLATFORM(WIN) | ||
, m_module(0) | ||
#endif | ||
{ | ||
} | ||
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -53,6 +53,8 @@ class Module : public Noncopyable { | ||
WebCore::String m_path; | ||
#if PLATFORM(MAC) | ||
RetainPtr<CFBundleRef> m_bundle; | ||
#elif PLATFORM(WIN) | ||
HMODULE m_module; | ||
#endif | ||
}; | ||
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.