Backed out 3 changesets (bug 1653123, bug 1602115) for perma failures on test_history_length_during_pageload.html. CLOSED TREE
Backed out changeset 6b3c0f542ef3 (bug 1653123) Backed out changeset 951c0fd65a00 (bug 1602115) Backed out changeset 258d0ebd9e34 (bug 1602115)
This commit is contained in:
@@ -2502,35 +2502,6 @@ bool BrowsingContext::CanSet(FieldIndex<IDX_BrowserId>, const uint32_t& aValue,
|
||||
return GetBrowserId() == 0 && IsTop() && Children().IsEmpty();
|
||||
}
|
||||
|
||||
void BrowsingContext::SessionHistoryChanged(int32_t aIndexDelta,
|
||||
int32_t aLengthDelta) {
|
||||
if (XRE_IsParentProcess() || StaticPrefs::fission_sessionHistoryInParent()) {
|
||||
// This method is used to test index and length for the session history
|
||||
// in child process only.
|
||||
return;
|
||||
}
|
||||
|
||||
if (!IsTop()) {
|
||||
// Some tests have unexpected setup while Fission shistory is being
|
||||
// implemented.
|
||||
return;
|
||||
}
|
||||
|
||||
RefPtr<ChildSHistory> shistory = GetChildSessionHistory();
|
||||
if (!shistory || !shistory->AsyncHistoryLength()) {
|
||||
return;
|
||||
}
|
||||
|
||||
nsID changeID = shistory->AddPendingHistoryChange(aIndexDelta, aLengthDelta);
|
||||
uint32_t index = shistory->Index();
|
||||
uint32_t length = shistory->Count();
|
||||
|
||||
// Do artificial history update through parent process to test asynchronous
|
||||
// history.length handling.
|
||||
ContentChild::GetSingleton()->SendSessionHistoryUpdate(this, index, length,
|
||||
changeID);
|
||||
}
|
||||
|
||||
} // namespace dom
|
||||
|
||||
namespace ipc {
|
||||
|
||||
Reference in New Issue
Block a user