зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1395472
- Don't move background transactions' streams to background group when the pref is off. r=hurley
This commit is contained in:
Родитель
5bb6fceb63
Коммит
e8dd9540ef
|
@ -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",
|
||||
|
|
Загрузка…
Ссылка в новой задаче