Implemented NPN_GetValueForURL and NPN_SetValueForURL and NPN_GetAuthenticationInfo.
authorcommit-queue <commit-queue@webkit.org>
Thu, 14 Oct 2010 22:16:34 +0000 (22:16 +0000)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Thu, 18 Nov 2010 17:29:18 +0000 (14:29 -0300)
commit3c8023cac0af7415e8e6f65a8e7b5633f2f5b549
treee7fad6603b67667fd689956ce0caf5a98811e6ec
parent4b6d887c726cba040cbfe65653e8a827bf3b8cce
Implemented NPN_GetValueForURL and NPN_SetValueForURL and NPN_GetAuthenticationInfo.
https://bugs.webkit.org/show_bug.cgi?id=34539

Patch by Dawit Alemayehu <adawit@kde.org> on 2010-10-14
Reviewed by Andreas Kling

These missing NPN functions cause Java applets to crash in ports such
as QtWebkit that rely on webkit for Java applet support.

Patch backported by Diego Gonzalez <diegohcg@webkit.org>
to work without NetworkingContext running on top of Qt WebKit Release 2.1

Rubberstamped by Ademar de Souza Reis Jr.

* plugins/PluginDebug.cpp:
(WebCore::prettyNameForNPNURLVariable):
* plugins/PluginDebug.h:
* plugins/PluginPackage.cpp:
(WebCore::PluginPackage::initializeBrowserFuncs):
* plugins/PluginView.cpp:
(WebCore::PluginView::getValueForURL):
(WebCore::PluginView::setValueForURL):
(WebCore::PluginView::getAuthenticationInfo):
* plugins/PluginView.h:
* plugins/npapi.cpp:
(NPN_GetValueForURL):
(NPN_SetValueForURL):
(NPN_GetAuthenticationInfo):
* platform/network/ProxyServer.h:
* platform/network/cf/ProxyServerCFNet.cpp:
(WebCore::proxyServersForURL):
* platform/network/qt/ProxyServerQt.cpp:
(WebCore::proxyServersForURL):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@69808 268f45cc-cd09-0410-ab3c-d52691b4dbfc
14 files changed:
WebCore/ChangeLog
WebCore/WebCore.pro
WebCore/platform/network/ProxyServer.h
WebCore/platform/network/cf/ProxyServerCFNet.cpp
WebCore/platform/network/qt/ProxyServerQt.cpp
WebCore/plugins/PluginDebug.cpp
WebCore/plugins/PluginDebug.h
WebCore/plugins/PluginPackage.cpp
WebCore/plugins/PluginView.cpp
WebCore/plugins/PluginView.h
WebCore/plugins/npapi.cpp
WebKit/mac/Plugins/Hosted/NetscapePluginInstanceProxy.mm
WebKit/mac/Plugins/WebNetscapePluginView.mm
WebKit2/WebProcess/Plugins/PluginView.cpp