Changeset 80067 in webkit
- Timestamp:
- Mar 1, 2011 4:56:50 PM (13 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r80053 r80067 1 2011-03-01 Anders Carlsson <andersca@apple.com> 2 3 Reviewed by Sam Weinig. 4 5 WKPluginSiteDataManagerClearAllSiteData is not working 6 https://bugs.webkit.org/show_bug.cgi?id=55528 7 <rdar://problem/9071823> 8 9 * Shared/Plugins/Netscape/NetscapePluginModule.cpp: 10 (WebKit::NetscapePluginModule::tryGetSitesWithData): 11 Remove version checks, checking that the function pointer is not null is enough. 12 13 (WebKit::NetscapePluginModule::tryClearSiteData): 14 Remove version checks, checking that the function pointer is not null is enough. 15 Also, correctly convert a null String to a null CString. 16 1 17 2011-03-01 Adam Roben <aroben@apple.com> 2 18 -
trunk/Source/WebKit2/Shared/Plugins/Netscape/NetscapePluginModule.cpp
r80053 r80067 95 95 96 96 // Check if the plug-in supports NPP_GetSitesWithData. 97 if (m_pluginFuncs.size < sizeof(NPPluginFuncs))98 return false;99 100 if ((m_pluginFuncs.version & 0xff) < NPVERS_HAS_CLEAR_SITE_DATA)101 return false;102 103 97 if (!m_pluginFuncs.getsiteswithdata) 104 98 return false; … … 124 118 return false; 125 119 126 // Check if the plug-in supports NPP_GetSitesWithData. 127 if (m_pluginFuncs.size < sizeof(NPPluginFuncs)) 128 return false; 129 130 if ((m_pluginFuncs.version & 0xff) < NPVERS_HAS_CLEAR_SITE_DATA) 131 return false; 132 120 // Check if the plug-in supports NPP_ClearSiteData. 133 121 if (!m_pluginFuncs.clearsitedata) 134 122 return false; 135 123 136 return m_pluginFuncs.clearsitedata(site.utf8().data(), flags, maxAge) != NPERR_NO_ERROR; 124 CString siteString; 125 if (!site.isNull()) 126 siteString = site.utf8(); 127 128 return m_pluginFuncs.clearsitedata(siteString.data(), flags, maxAge) == NPERR_NO_ERROR; 137 129 } 138 130
Note: See TracChangeset
for help on using the changeset viewer.