Closed Bug 1719722 Opened 3 years ago Closed 3 years ago

"WebDriver:NewSession" closes open auto-complete popups

Categories

(Remote Protocol :: Marionette, defect)

Firefox 87
defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: kilimra, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:87.0) Gecko/20100101 Firefox/87.0

Steps to reproduce:

When you create a new session (WebDriver:NewSession), even if you do nothing, when you close the session (WebDriver:DeleteSession), it will cause the firefox interface to lose focus.

For example, the address bar menu that is being displayed will disappear.
https://i.imgur.com/ot0K3rP.png
For example, the selected characters in the search box will lose their selection status
https://i.imgur.com/adral6Z.png

But it does not interfere with the focus of the web page
https://i.imgur.com/GaZ9pmK.png


Sorry, I am using a translation tool to post this report and it may not accurately describe the problem.
For this reason, I only use version 87 of firefox.
https://bugzilla.mozilla.org/show_bug.cgi?id=1716780

Actual results:

Expected results:

Marionette should completely avoid interfering with the firefox interface.

The Bugbug bot thinks this bug should belong to the 'Firefox::Address Bar' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Address Bar
Component: Address Bar → Marionette
Product: Firefox → Testing
Status: UNCONFIRMED → NEW
Ever confirmed: true

First thank you for the report, which is kinda uncommon. Nevertheless I can see the closing of the auto-complete list when starting a new WebDriver session. The line that is causing it is:

https://searchfox.org/mozilla-central/rev/4163c8f09b03871e053a61f39de020fa09e02ea9/remote/marionette/driver.js#574

We currently explicitly focus the current tab (web content) to ensure that the first element (per defined tab order) within this tab has the focus. The patch for that landed via bug 1328676. And a valid use case can be found at: https://github.com/mozilla/geckodriver/issues/394.

As such we are not going to revert this change, given that it would affect a lot of users who make use of Marionette / geckodriver in the proposed way. Sorry, but as given this is a wontfix.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WONTFIX
See Also: → 1328676
Summary: Marionette interference firefox UI → "WebDriver:NewSession" closes open auto-complete popups
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.