Closed Bug 1554065 Opened 6 years ago Closed 6 years ago

nsDocShell::DoFindItemWithName seems to pass the wrong requestor to the TabGroup

Categories

(Core :: DOM: Navigation, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla69
Tracking Status
firefox-esr60 --- wontfix
firefox67 --- wontfix
firefox68 --- wontfix
firefox69 --- fixed

People

(Reporter: bzbarsky, Assigned: bzbarsky)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

The whole point of that aRequestor argument to TabGroup::FindItemWithName is to indicate where we've already searched for named windows. But right now, if we start a search in some docshell and call nsDocShell::DoFindItemWithName, we will pass its aRequestor to the tabgroup. That doesn't seem right to me; seems like we should be passing this instead. As things stand, we end up calling back into that toplevel docshell from the tabgroup and searching everything under there again; we only avoid infinite-looping because for that call aSkipTabGroup is set to true.

It looks to me like this bug got introduced in bug 1337537 (and in particular in https://hg.mozilla.org/mozilla-central/rev/3092fa33385e44cef90c76ba00c46eb9439797f2).

The requestor should be ourselves: the toplevel docshell that the tabgroup does
not need to look in when doing the search.

Attachment #9067240 - Attachment description: Bug 1554065. Fix the requestor nsDocShell::DoFindItemWithName nsDocShell::DoFindItemWithName passes to TabGroup::FindItemWithName. r=nika → Bug 1554065. Fix the requestor nsDocShell::DoFindItemWithName passes to TabGroup::FindItemWithName. r=nika
Pushed by bzbarsky@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1a0bbb60153c Fix the requestor nsDocShell::DoFindItemWithName passes to TabGroup::FindItemWithName. r=nika
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla69

Hi. Considering that the regressor was pushed in firefox54, can we set firefox68 and firefox67 as affected? Thanks.

Flags: needinfo?(bzbarsky)

It really doesn't matter too much. Apart from being slightly inefficient, this problem is not observable, so there's no plan to backport the fix.

Flags: needinfo?(bzbarsky)
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: