#416: M1381016 M1371657

This commit is contained in:
Cameron Kaiser 2017-08-02 22:46:32 -07:00
parent 0683827d29
commit afc8202404
2 changed files with 6 additions and 1 deletions

View File

@ -154,6 +154,8 @@ nsHTMLEditor::~nsHTMLEditor()
}
RemoveEventListeners();
HideAnonymousEditingUIs();
}
void

View File

@ -2764,7 +2764,10 @@ Http2Session::WriteSegmentsAgain(nsAHttpSegmentWriter *writer,
LOG3(("Http2Session::WriteSegments %p trying to discard %d bytes of data",
this, count));
if (!count) {
if (!count && mDownstreamState == DISCARDING_DATA_FRAME) {
// Only do this short-cirtuit if we're not discarding a pure padding
// frame, as we need to potentially handle the stream FIN in those cases.
// See bug 1381016 comment 36 for more details.
ResetDownstreamState();
ResumeRecv();
return NS_BASE_STREAM_WOULD_BLOCK;