Changeset 54940 in webkit
- Timestamp:
- Feb 18, 2010 12:06:03 AM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r54938 r54940 1 2010-02-18 Xan Lopez <xlopez@igalia.com> 2 3 Reviewed by Eric Seidel. 4 5 [Linux] Webkit incompatible with Java plugins 6 https://bugs.webkit.org/show_bug.cgi?id=24912 7 8 The NP Version supported by WebKit is at the moment hardcoded in 9 PluginPackage.cpp (to 24), but not all backends actually implement 10 the methods needed to claim this. Introduce a new method to be 11 implemented by each backend where the maximum supported version 12 can be specified, and set the GTK+ port NPVersion to 19. This 13 fixes an instantaneous crasher in the Sun Java NPAPI plugin. 14 15 * plugins/PluginPackage.cpp: 16 (WebCore::PluginPackage::initializeBrowserFuncs): 17 * plugins/PluginPackage.h: 18 * plugins/gtk/PluginPackageGtk.cpp: 19 (WebCore::PluginPackage::NPVersion): 20 * plugins/mac/PluginPackageMac.cpp: 21 (WebCore::PluginPackage::NPVersion): 22 * plugins/qt/PluginPackageQt.cpp: 23 (WebCore::PluginPackage::NPVersion): 24 * plugins/symbian/PluginPackageSymbian.cpp: 25 (WebCore::PluginPackage::NPVersion): 26 * plugins/win/PluginPackageWin.cpp: 27 (WebCore::PluginPackage::NPVersion): 28 1 29 2010-02-17 Dmitry Titov <dimich@chromium.org> 2 30 -
trunk/WebCore/plugins/PluginPackage.cpp
r53036 r54940 254 254 memset(&m_browserFuncs, 0, sizeof(m_browserFuncs)); 255 255 m_browserFuncs.size = sizeof(m_browserFuncs); 256 m_browserFuncs.version = NP _VERSION_MINOR;256 m_browserFuncs.version = NPVersion(); 257 257 258 258 m_browserFuncs.geturl = NPN_GetURL; -
trunk/WebCore/plugins/PluginPackage.h
r52791 r54940 56 56 const String& fileName() const { return m_fileName; } 57 57 const String& parentDirectory() const { return m_parentDirectory; } 58 uint16 NPVersion() const; 58 59 time_t lastModified() const { return m_lastModified; } 59 60 -
trunk/WebCore/plugins/gtk/PluginPackageGtk.cpp
r54887 r54940 158 158 } 159 159 160 uint16 PluginPackage::NPVersion() const 161 { 162 return NPVERS_HAS_PLUGIN_THREAD_ASYNC_CALL; 160 163 } 164 } -
trunk/WebCore/plugins/mac/PluginPackageMac.cpp
r51490 r54940 303 303 } 304 304 305 uint16 PluginPackage::NPVersion() const 306 { 307 return NP_VERSION_MINOR; 308 } 305 309 } // namespace WebCore 306 310 -
trunk/WebCore/plugins/qt/PluginPackageQt.cpp
r49054 r54940 144 144 } 145 145 146 uint16 PluginPackage::NPVersion() const 147 { 148 return NP_VERSION_MINOR; 146 149 } 150 } -
trunk/WebCore/plugins/symbian/PluginPackageSymbian.cpp
r49574 r54940 174 174 m_pluginLoader = 0; 175 175 } 176 177 uint16 PluginPackage::NPVersion() const 178 { 179 return NP_VERSION_MINOR; 180 } 176 181 } 177 182 -
trunk/WebCore/plugins/win/PluginPackageWin.cpp
r52791 r54940 336 336 } 337 337 338 } 338 uint16 PluginPackage::NPVersion() const 339 { 340 return NP_VERSION_MINOR; 341 } 342 }
Note: See TracChangeset
for help on using the changeset viewer.