Reviewed by Tim O.
[WebKit-https.git] / WebKitTools / DumpRenderTree / TestNetscapePlugIn.subproj / PluginObject.c
index 22c41f0..d05cc14 100644 (file)
@@ -184,6 +184,13 @@ static bool pluginInvoke(NPObject *header, NPIdentifier name, const NPVariant *a
 
             VOID_TO_NPVARIANT(*result);
             return true;
+        } else if (argCount == 1 && NPVARIANT_IS_STRING(args[0])) {
+            NPUTF8* urlString = createCStringFromNPVariant(&args[0]);
+            browser->geturl(obj->npp, urlString, 0);
+            free(urlString);
+
+            VOID_TO_NPVARIANT(*result);
+            return true;
         }
     } else if (name == pluginMethodIdentifiers[ID_REMOVE_DEFAULT_METHOD]) {
         pluginClass.invokeDefault = 0;