diff --git a/testing/puppeteer/firefox/firefox_puppeteer/ui/browser/tabbar.py b/testing/puppeteer/firefox/firefox_puppeteer/ui/browser/tabbar.py index d54d6e8e7501..7aa894b4f26a 100644 --- a/testing/puppeteer/firefox/firefox_puppeteer/ui/browser/tabbar.py +++ b/testing/puppeteer/firefox/firefox_puppeteer/ui/browser/tabbar.py @@ -193,13 +193,11 @@ class TabBar(UIBaseLib): # element corresponding to the active window according to # marionette or a similar ability should be added to marionette. handle = marionette.execute_script(""" - let win = arguments[0].linkedBrowser.contentWindowAsCPOW; + let win = arguments[0].linkedBrowser; if (!win) { return null; } - return win.QueryInterface(Components.interfaces.nsIInterfaceRequestor) - .getInterface(Components.interfaces.nsIDOMWindowUtils) - .outerWindowID.toString(); + return win.outerWindowID.toString(); """, script_args=[tab_element]) return handle