Bug 1694391 - [remote] Make TabManager.browsers a getter. r=webdriver-reviewers,jdescottes

Differential Revision: https://phabricator.services.mozilla.com/D140723
This commit is contained in:
Henrik Skupin 2022-03-17 10:37:35 +00:00
parent a8f49a3f99
commit 1cf59ce7d1
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ var TabManager = {
* All the found <xul:browser>s. Will return an empty array if
* no windows and tabs can be found.
*/
browsers() {
get browsers() {
const browsers = [];
for (const win of this.windows) {

View File

@ -144,7 +144,7 @@ class FrameTransport {
let browsingContexts = [];
// Fetch all tab related browsing contexts for top-level windows.
for (const { browsingContext } of TabManager.browsers()) {
for (const { browsingContext } of TabManager.browsers) {
if (isBrowsingContextCompatible(browsingContext, { browserId })) {
browsingContexts = browsingContexts.concat(
browsingContext.getAllBrowsingContextsInSubtree()