JavaScriptCore:
Reviewed by Darin Adler.
- fix an ASSERT when getIntIdentifier is called with 0 or -1
* bindings/npruntime.cpp:
(_NPN_GetIntIdentifier): We cannot use the hashmap for 0 and -1 since
they are the empty value and the deleted value. Instead, keep the
identifiers for those two integers in a static array.
WebKitTools:
Reviewed by Darin Adler.
- added a testGetIntIdentifier() method to TestNetscapePlugIn
* DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.c:
(pluginInvoke):
LayoutTests:
Reviewed by Darin Adler.
- added a test of the behavior of getIntIdentifier with the integers
0 and -1
* plugins/getintidentifier-special-values-expected.txt: Added.
* plugins/getintidentifier-special-values.html: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28366
268f45cc-cd09-0410-ab3c-
d52691b4dbfc