Closed Bug 1655528 Opened 4 years ago Closed 4 years ago

Replace uses of nsDocShell::GetAllDocShellsInSubtree in toolkit/components/extensions/

Categories

(WebExtensions :: General, task, P2)

task

Tracking

(Fission Milestone:M6b)

RESOLVED WONTFIX
Fission Milestone M6b

People

(Reporter: u608768, Assigned: u608768)

References

Details

Attachments

(2 obsolete files)

There's currently 3 uses of this function in toolkit/components/extensions/:

  1. ForEachDocShell in ExtensionPolicyService.cpp
  2. ExtensionContent.enumerateWindows (which appears to be dead code)
  3. WebNavigationFrames.iterateDocShellTree

This also removes an unused helper function.

Depends on D85340

Severity: -- → N/A
Priority: -- → P2

After looking into the usages from comment 0 a little more, I'm fairly certain that neither of them (ignoring #2) will do anything with out-of-process docshells. We don't plan on removing GetAllDocShellsInSubtree any time soon, so we can probably just WONTFIX this bug. But I might be missing something -- zombie, can you take a quick look and verify?

Flags: needinfo?(tomica)
Summary: Replace uses of nsDocShell::GetAllDocShellsInSubtree → Replace uses of nsDocShell::GetAllDocShellsInSubtree in toolkit/components/extensions/

(In reply to :kashav from comment #3)

After looking into the usages from comment 0 a little more, I'm fairly certain that neither of them (ignoring #2) will do anything with out-of-process docshells. We don't plan on removing GetAllDocShellsInSubtree any time soon, so we can probably just WONTFIX this bug. But I might be missing something -- zombie, can you take a quick look and verify?

Yeah, for #1, we run that from a process script, so docshells from each process are handled in the same process, that code doesn't need to care about OOP docshells.

For #3, the better approach would be to read all the info (via BCs) from the parent process, not message the child process and then use BCs to read the same info. :)

In any case, #3 would be part of bug 1581859, so yeah, i think we can close this.

Status: NEW → RESOLVED
Closed: 4 years ago
Flags: needinfo?(tomica)
Resolution: --- → WONTFIX
Attachment #9166925 - Attachment is obsolete: true
Attachment #9166926 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: