NPAPI:DocumentOrigin: Difference between revisions

Line 17: Line 17:
The following NPAPI variable will be added:
The following NPAPI variable will be added:


   NPNVdocumentURL = TBA
   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 *docURL = NULL;
   char *docOrigin = NULL;
   NPError error = NPN_GetValue(instance, NPNVdocumentURL, &docURL);
   NPError error = NPN_GetValue(instance, NPNVdocumentOrigin, &docOrigin);
   /* ... use URL ... */
   /* ... use URL ... */
   NPN_MemFree(docURL);
   NPN_MemFree(docOrigin);


= Open Issues =
= Open Issues =


* None
* None
Confirmed users, Bureaucrats and Sysops emeriti
1,680

edits