Bug 1337537 - Remove the need for TabGroup to be an nsISupports for DocShell::FindItemWithName (r=mystor)

MozReview-Commit-ID: CvnWt9Ny1IF
This commit is contained in:
Bill McCloskey
2017-02-09 13:41:51 -08:00
parent 35d8610c50
commit 55a25f3d46
7 changed files with 29 additions and 26 deletions

View File

@@ -1652,6 +1652,7 @@ nsWindowWatcher::GetWindowByName(const nsAString& aTargetName,
if (startItem) {
// Note: original requestor is null here, per idl comments
startItem->FindItemWithName(aTargetName, nullptr, nullptr,
/* aSkipTabGroup = */ false,
getter_AddRefs(treeItem));
} else {
// Note: original requestor is null here, per idl comments
@@ -2108,6 +2109,7 @@ nsWindowWatcher::SafeGetWindowByName(const nsAString& aName,
nsCOMPtr<nsIDocShellTreeItem> foundItem;
if (startItem) {
startItem->FindItemWithName(aName, nullptr, callerItem,
/* aSkipTabGroup = */ false,
getter_AddRefs(foundItem));
} else {
FindItemWithName(aName, nullptr, callerItem,