Confirmed users, Bureaucrats and Sysops emeriti
1,680
edits
Line 17: | Line 17: | ||
The following NPAPI variable will be added: | The following NPAPI variable will be added: | ||
NPNVdocumentOrigin = TBA | |||
The value for this variable will be an NFKC-encoded (normalized) UTF-8 URL. Memory for this string must be freed by the plugin via <code>NPN_MemFree</code>. | The value for this variable will be an NFKC-encoded (normalized) UTF-8 URL. Memory for this string must be freed by the plugin via <code>NPN_MemFree</code>. | ||
char * | char *docOrigin = NULL; | ||
NPError error = NPN_GetValue(instance, | NPError error = NPN_GetValue(instance, NPNVdocumentOrigin, &docOrigin); | ||
/* ... use URL ... */ | /* ... use URL ... */ | ||
NPN_MemFree( | NPN_MemFree(docOrigin); | ||
= Open Issues = | = Open Issues = | ||
* None | * None |