Closed Bug 1684054 Opened 3 years ago Closed 3 years ago

Remove unused focus argument from "WebDriver:SwitchToFrame"

Categories

(Remote Protocol :: Marionette, defect, P1)

Firefox 81
defect

Tracking

(Fission Milestone:MVP, firefox-esr78 unaffected, firefox84 wontfix, firefox85 wontfix, firefox86 fixed)

RESOLVED FIXED
86 Branch
Fission Milestone MVP
Tracking Status
firefox-esr78 --- unaffected
firefox84 --- wontfix
firefox85 --- wontfix
firefox86 --- fixed

People

(Reporter: whimboo, Assigned: whimboo)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [marionette-fission-reserve])

Attachments

(1 file)

Since this command has been ported over to JSWindowActors the focus argument is no longer handled.

Here the code from before:
https://searchfox.org/mozilla-central/rev/38ed718a101aca27db25984413c052ccd8c0ceda/testing/marionette/driver.js#1921-1923
https://searchfox.org/mozilla-central/rev/38ed718a101aca27db25984413c052ccd8c0ceda/testing/marionette/listener.js#796-798

Now we would only have to handle it in:
https://searchfox.org/mozilla-central/rev/38ed718a101aca27db25984413c052ccd8c0ceda/testing/marionette/actors/MarionetteCommandsChild.jsm#492

It would be good to know why some of the Marionette unit tests for focus don't fail. Or maybe we don't have any?

Note that this is a non-standard argument and as such I don't think we have to uplift the patch to 85.

Assignee: nobody → hskupin
Severity: -- → S3
Status: NEW → ASSIGNED
Priority: -- → P1
Whiteboard: [marionette-fission-reserve]

Even with Marionette client defaulting to true for focus, it's actually never missed by any Marionette test. Probably it also doesn't make sense, and is a no-op. As such I would suggest that we remove the argument.

Summary: "WebDriver:SwitchToFrame" no longer handles focus argument → Remove unused focus argument from "WebDriver:SwitchToFrame"
Blocks: 1669172

Tracking marionette-fission-reserve bugs for Fission MVP

Fission Milestone: --- → MVP
Pushed by hskupin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/70dc2d92d90e
[marionette] Remove unused focus argument from "WebDriver:SwitchToFrame". r=marionette-reviewers,jdescottes
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch

The patch landed in nightly and beta is affected.
:whimboo, is this bug important enough to require an uplift?
If not please set status_beta to wontfix.

For more information, please visit auto_nag documentation.

Flags: needinfo?(hskupin)
Flags: needinfo?(hskupin)
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: