NPAPI:DocumentOrigin
Status
Under Consideration
Contributors
- Last modified: August 7, 2011
- Authors: Josh Aas (Mozilla Corporation)
- Contributors:
Problem Summary
Plugins frequently need to make security decisions based on document URLs. This is usually done using NPRuntime to access "window.location" in the DOM. We should provide a secure and convenient way to access and instance's document URL.
Current Proposal
The following NPAPI variable will be added:
NPNVdocumentURL = TBA
The value for this variable will be an NFKC-encoded (normalized) UTF-8 URL.
NPError error = NPN_GetValue(instance, NPNVdocumentURL, );
Open Issues
- None