5.99 KB, text/plain
Alex, this is not actually a bug, it is more of an enhancement request. Please mark it accordingly.
Benjamin Smedberg pointed out on the plugin-futures mailing list (message-id <4E70FA2A.firstname.lastname@example.org>) that one can use NPRuntime to accomplish this without evaluating a string at all. His code sketch (with "error and type checking code removed for simplicity") is as follows: NPObject* window = NULL; NPN_GetValue(inst, NPNVDOMWindow, &window); NPVariant documentv; NPN_GetProperty(inst, window, NPN_GetStringIdentifier("document"), &document); NPObject* document = NPVARIANT_TO_OBJECT(documentv); NPVariant title; STRINGZ_TO_NPVARIANT("mynewtitlestring", title); NPN_SetProperty(inst, document, NPN_GetStringIdentifier("title"), &title); NPN_ReleaseObject(document); NPN_ReleaseObject(window);
Status: UNCONFIRMED → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.