summaryrefslogtreecommitdiffstats
path: root/WebKitTools/DumpRenderTree/win/TestNetscapePlugin/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebKitTools/DumpRenderTree/win/TestNetscapePlugin/main.cpp')
-rw-r--r--WebKitTools/DumpRenderTree/win/TestNetscapePlugin/main.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/WebKitTools/DumpRenderTree/win/TestNetscapePlugin/main.cpp b/WebKitTools/DumpRenderTree/win/TestNetscapePlugin/main.cpp
index 89873b6..321d9cf 100644
--- a/WebKitTools/DumpRenderTree/win/TestNetscapePlugin/main.cpp
+++ b/WebKitTools/DumpRenderTree/win/TestNetscapePlugin/main.cpp
@@ -106,7 +106,9 @@ NPError NPP_New(NPMIMEType pluginType, NPP instance, uint16_t mode, int16_t argc
pluginLog(instance, "src: %s", argv[i]);
} else if (_stricmp(argn[i], "testdocumentopenindestroystream") == 0)
obj->testDocumentOpenInDestroyStream = TRUE;
- else if (_stricmp(argn[i], "testwindowopen") == 0)
+ else if (_stricmp(argn[i], "testGetURLOnDestroy") == 0)
+ obj->testGetURLOnDestroy = TRUE;
+ else if (_stricmp(argn[i], "testwindowopen") == 0)
obj->testWindowOpen = TRUE;
else if (_stricmp(argn[i], "onSetWindow") == 0 && !obj->onSetWindow)
obj->onSetWindow = strdup(argv[i]);
@@ -122,6 +124,9 @@ NPError NPP_Destroy(NPP instance, NPSavedData **save)
{
PluginObject *obj = (PluginObject*)instance->pdata;
if (obj) {
+ if (obj->testGetURLOnDestroy)
+ browser->geturlnotify(obj->npp, "about:blank", "", "");
+
if (obj->onStreamLoad)
free(obj->onStreamLoad);
@@ -137,7 +142,7 @@ NPError NPP_Destroy(NPP instance, NPSavedData **save)
}
if (obj->logDestroy)
- printf("PLUGIN: NPP_Destroy\n");
+ pluginLog(instance, "NPP_Destroy\n");
if (obj->onSetWindow)
free(obj->onSetWindow);