Bug 1352567 - Remove plugin IPC code to support stream types other than NP_NORMAL (seekable and/or file streams), r=jimm

MozReview-Commit-ID: FWl2gcpKy6D
This commit is contained in:
Benjamin Smedberg
2017-10-02 12:49:15 -07:00
committed by Kyle Machulis
parent f8a6de13b2
commit a65df5cd2e
9 changed files with 10 additions and 175 deletions

View File

@@ -1045,13 +1045,7 @@ NPError
_requestread(NPStream* aStream,
NPByteRange* aRangeList)
{
PLUGIN_LOG_DEBUG_FUNCTION;
ENSURE_PLUGIN_THREAD(NPERR_INVALID_PARAM);
BrowserStreamChild* bs =
static_cast<BrowserStreamChild*>(static_cast<AStream*>(aStream->ndata));
bs->EnsureCorrectStream(aStream);
return bs->NPN_RequestRead(aRangeList);
return NPERR_STREAM_NOT_SEEKABLE;
}
NPError