Bug 1395472 - Don't move background transactions' streams to background group when the pref is off. r=hurley

This commit is contained in:
Kershaw Chang 2017-09-03 23:55:00 -04:00
Родитель 5bb6fceb63
Коммит e8dd9540ef
2 изменённых файлов: 7 добавлений и 2 удалений

Просмотреть файл

@ -1274,7 +1274,8 @@ Http2Stream::UpdatePriorityDependency()
mPriorityDependency = GetPriorityDependencyFromTransaction(trans);
if (mTransactionTabId != mCurrentForegroundTabOuterContentWindowId &&
if (gHttpHandler->ActiveTabPriority() &&
mTransactionTabId != mCurrentForegroundTabOuterContentWindowId &&
mPriorityDependency != Http2Session::kUrgentStartGroupID) {
LOG3(("Http2Stream::UpdatePriorityDependency %p "
" depends on background group for trans %p\n",
@ -1290,6 +1291,8 @@ Http2Stream::UpdatePriorityDependency()
void
Http2Stream::TopLevelOuterContentWindowIdChanged(uint64_t windowId)
{
MOZ_ASSERT(gHttpHandler->ActiveTabPriority());
LOG3(("Http2Stream::TopLevelOuterContentWindowIdChanged "
"%p windowId=%" PRIx64 "\n",
this, windowId));

Просмотреть файл

@ -3473,7 +3473,9 @@ nsHttpConnectionMgr::OnMsgUpdateCurrentTopLevelOuterContentWindowId(
uint64_t previousWindowId = mCurrentTopLevelOuterContentWindowId;
mCurrentTopLevelOuterContentWindowId = winId;
NotifyConnectionOfWindowIdChange(previousWindowId);
if (gHttpHandler->ActiveTabPriority()) {
NotifyConnectionOfWindowIdChange(previousWindowId);
}
LOG(("nsHttpConnectionMgr::OnMsgUpdateCurrentTopLevelOuterContentWindowId"
" id=%" PRIx64 "\n",