mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
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:
parent
a8f49a3f99
commit
1cf59ce7d1
@ -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) {
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user