Bug 1253358 - no flags on priority frames r=hurley

This commit is contained in:
Patrick McManus 2016-03-03 13:33:04 -05:00
parent 267eda0f68
commit bf8f0696ad
2 changed files with 2 additions and 2 deletions

View File

@ -632,6 +632,7 @@ Http2Session::CreateFrameHeader(charType dest, uint16_t frameLength,
{
MOZ_ASSERT(frameLength <= kMaxFrameData, "framelength too large");
MOZ_ASSERT(!(streamID & 0x80000000));
MOZ_ASSERT(!frameFlags || (frameType != FRAME_TYPE_PRIORITY));
dest[0] = 0x00;
NetworkEndian::writeUint16(dest + 1, frameLength);

View File

@ -738,8 +738,7 @@ Http2Stream::AdjustPushedPriority()
mTxInlineFrameUsed += Http2Session::kFrameHeaderBytes + 5;
mSession->CreateFrameHeader(packet, 5,
Http2Session::FRAME_TYPE_PRIORITY,
Http2Session::kFlag_PRIORITY,
Http2Session::FRAME_TYPE_PRIORITY, 0,
mPushSource->mStreamID);
mPushSource->SetPriority(mPriority);