Bug 1352572 - Return an NPERR_GENERIC_ERROR if plugin tries to call NPN_PostURL(file=true); r=bsmedberg

NPN_PostURL(file=true) is no longer supported in NPAPI.

MozReview-Commit-ID: IyLJSj4bKRR
This commit is contained in:
Lie Ryan
2017-04-08 16:48:47 +00:00
parent 4a8ba4c6cf
commit 0356c22731
2 changed files with 6 additions and 0 deletions

View File

@@ -1197,6 +1197,10 @@ _posturl(NPP aNPP,
PLUGIN_LOG_DEBUG_FUNCTION;
ENSURE_PLUGIN_THREAD(NPERR_INVALID_PARAM);
if (aIsFile) {
PLUGIN_LOG_DEBUG(("NPN_PostURL with file=true is no longer supported"));
return NPERR_GENERIC_ERROR;
}
NPError err;
// FIXME what should happen when |aBuffer| is null?
InstCast(aNPP)->CallNPN_PostURL(NullableString(aRelativeURL),