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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user