From 57f7edd5e79bba97565a75c5a33c2b1216961220 Mon Sep 17 00:00:00 2001 From: "agl@chromium.org" Date: Tue, 15 Sep 2009 19:11:08 +0000 Subject: Revert "Fix LayoutTests/plugins/destroy-during-npp-new.html" This reverts commit r26234. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26249 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/tools/npapi_layout_test_plugin/main.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'webkit/tools/npapi_layout_test_plugin') diff --git a/webkit/tools/npapi_layout_test_plugin/main.cpp b/webkit/tools/npapi_layout_test_plugin/main.cpp index b546efe..fbd9b82 100644 --- a/webkit/tools/npapi_layout_test_plugin/main.cpp +++ b/webkit/tools/npapi_layout_test_plugin/main.cpp @@ -143,8 +143,6 @@ void NPAPI NP_Shutdown(void) { } -static void executeScript(const PluginObject* obj, const char* script); - NPError NPP_New(NPMIMEType pluginType, NPP instance, uint16 mode, int16 argc, char *argn[], char *argv[], NPSavedData *saved) { if (browser->version >= 14) { @@ -166,8 +164,7 @@ NPError NPP_New(NPMIMEType pluginType, NPP instance, uint16 mode, int16 argc, ch fflush(stdout); } } - } else if (strcasecmp(argn[i], "cleardocumentduringnew") == 0) - executeScript(obj, "document.body.innerHTML = ''"); + } } instance->pdata = obj; -- cgit v1.1