Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Backed out 18 changesets (bug 1525720) for mass failures on Windows p…
Browse files Browse the repository at this point in the history
…latform e.g ProcessPriorityManager.cpp on a CLOSED TREE.

Backed out changeset 1f2e86c2d691 (bug 1525720)
Backed out changeset 9b79caa460a0 (bug 1525720)
Backed out changeset e65cb2d4c5a5 (bug 1525720)
Backed out changeset 99f971a02d87 (bug 1525720)
Backed out changeset d25963c72ff7 (bug 1525720)
Backed out changeset 810b73719871 (bug 1525720)
Backed out changeset ee10a8254481 (bug 1525720)
Backed out changeset 1bcf9f586c55 (bug 1525720)
Backed out changeset d3b2ac8d5ca4 (bug 1525720)
Backed out changeset 697774dd8984 (bug 1525720)
Backed out changeset eadeacbe4483 (bug 1525720)
Backed out changeset 32eeee79d628 (bug 1525720)
Backed out changeset 07678a2fa9e7 (bug 1525720)
Backed out changeset 757b4f595cc4 (bug 1525720)
Backed out changeset b255e0a84e12 (bug 1525720)
Backed out changeset 9a255864f75d (bug 1525720)
Backed out changeset 5f1c1b609ec1 (bug 1525720)
Backed out changeset 00d83f1d02e0 (bug 1525720)
  • Loading branch information
raulgurzau committed May 22, 2019
1 parent ab7298f commit 62743ba
Show file tree
Hide file tree
Showing 46 changed files with 729 additions and 1,335 deletions.
9 changes: 4 additions & 5 deletions accessible/generic/RootAccessible.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include "mozilla/dom/CustomEvent.h"
#include "mozilla/dom/Element.h"
#include "mozilla/dom/ScriptSettings.h"
#include "mozilla/dom/BrowserHost.h"

#include "nsIDocShellTreeItem.h"
#include "nsIDocShellTreeOwner.h"
Expand Down Expand Up @@ -670,12 +669,12 @@ ProxyAccessible* RootAccessible::GetPrimaryRemoteTopLevelContentDoc() const {
mDocumentNode->GetDocShell()->GetTreeOwner(getter_AddRefs(owner));
NS_ENSURE_TRUE(owner, nullptr);

nsCOMPtr<nsIRemoteTab> remoteTab;
owner->GetPrimaryRemoteTab(getter_AddRefs(remoteTab));
if (!remoteTab) {
nsCOMPtr<nsIRemoteTab> browserParent;
owner->GetPrimaryRemoteTab(getter_AddRefs(browserParent));
if (!browserParent) {
return nullptr;
}

auto tab = static_cast<dom::BrowserHost*>(remoteTab.get());
auto tab = static_cast<dom::BrowserParent*>(browserParent.get());
return tab->GetTopLevelDocAccessible();
}
4 changes: 2 additions & 2 deletions accessible/ipc/DocAccessibleParent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -672,8 +672,8 @@ void DocAccessibleParent::MaybeInitWindowEmulation() {
rect.MoveToX(rootRect.X() - rect.X());
rect.MoveToY(rect.Y() - rootRect.Y());

auto browserParent = static_cast<dom::BrowserParent*>(Manager());
isActive = browserParent->GetDocShellIsActive();
auto tab = static_cast<dom::BrowserParent*>(Manager());
tab->GetDocShellIsActive(&isActive);
}

nsWinUtils::NativeWindowCreateProc onCreate([this](HWND aHwnd) -> void {
Expand Down
2 changes: 1 addition & 1 deletion browser/components/sessionstore/SessionStore.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -2331,7 +2331,7 @@ var SessionStoreInternal = {
// Tell our caller to redirect the load into this newly created process.
let remoteTab = aBrowser.frameLoader.remoteTab;
debug(`[process-switch]: new tabID: ${remoteTab.tabId}`);
return remoteTab.contentProcessId;
return remoteTab;
},

/**
Expand Down
2 changes: 1 addition & 1 deletion docshell/shistory/ParentSHistory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ nsDocShell* ParentSHistory::GetDocShell() {
}

BrowserParent* ParentSHistory::GetBrowserParent() {
return mFrameLoader->GetBrowserParent();
return static_cast<BrowserParent*>(mFrameLoader->GetRemoteBrowser());
}

already_AddRefed<ChildSHistory> ParentSHistory::GetChildIfSameProcess() {
Expand Down
6 changes: 3 additions & 3 deletions dom/base/nsContentAreaDragDrop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -552,11 +552,11 @@ nsresult DragDataProducer::Produce(DataTransfer* aDataTransfer, bool* aCanDrag,
if (flo) {
RefPtr<nsFrameLoader> fl = flo->GetFrameLoader();
if (fl) {
BrowserParent* bp = fl->GetBrowserParent();
if (bp) {
BrowserParent* tp = static_cast<BrowserParent*>(fl->GetRemoteBrowser());
if (tp) {
// We have a BrowserParent, so it may have data for dnd in case the
// child process started a dnd session.
bp->AddInitialDnDDataTo(aDataTransfer, aPrincipal);
tp->AddInitialDnDDataTo(aDataTransfer, aPrincipal);
}
}
}
Expand Down
3 changes: 1 addition & 2 deletions dom/base/nsDOMAttributeMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ class nsAttrHashKey : public PLDHashEntryHdr {
typedef const nsAttrKey* KeyTypePointer;

explicit nsAttrHashKey(KeyTypePointer aKey) : mKey(*aKey) {}
nsAttrHashKey(const nsAttrHashKey& aCopy)
: PLDHashEntryHdr{}, mKey(aCopy.mKey) {}
nsAttrHashKey(const nsAttrHashKey& aCopy) : mKey(aCopy.mKey) {}
~nsAttrHashKey() {}

KeyType GetKey() const { return mKey; }
Expand Down
Loading

0 comments on commit 62743ba

Please sign in to comment.