Closed Bug 1378227 Opened 7 years ago Closed 7 years ago

Close command via geckodriver has stopped working after bug 1376128

Categories

(Remote Protocol :: Marionette, enhancement)

Version 3
enhancement
Not set
normal

Tracking

(firefox56 fixed)

RESOLVED FIXED
mozilla56
Tracking Status
firefox56 --- fixed

People

(Reporter: automatedtester, Assigned: ato)

Details

Attachments

(1 file)

When working on bug 1364389 the `close` command has stopped working and after bisecting it it looks like bug 1376128  is the cause.

To recreate the issue just run the #step 1 in https://reviewboard.mozilla.org/r/139270/diff/5#index_header
Hm, is it allowed to still being able to access the session id after the session has been closed? I don't see how this should cause a NoSuchWindowException but more an InvalidSessionException.

Also maybe you could have a look at which changeset in bug 1376128 actually caused this change for you? There are a lot.
Flags: needinfo?(dburns)
Unfortunately I dont have time to look through this. The patches don't work on their own so will leave this for Andreas to do when he gets back.
Flags: needinfo?(dburns)
The bad commit is
https://searchfox.org/mozilla-central/diff/de001d80b777ff0fcfa823a52e8d49b4981af040/testing/marionette/driver.js#1289.
I assume I removed it because the win variable wasn’t used, but
that also accidentally removed the window test.
Status: NEW → ASSIGNED
Blocks: 1364389
So how is the close command related to the get window rect method?
(In reply to Henrik Skupin (:whimboo) [partly available 07/10
-07/14] from comment #5)

> So how is the close command related to the get window rect method?

David’s test opens a window, closes it, and then tries to get the
window rect before having switched back to the default browsing
context:

> session.window_handle = create_window()
> session.close()
> result = session.transport.send("GET", "session/%s/window/rect" % session.session_id)
> assert_error(result, "no such window")

This is a test for the the assertion that was accidentally removed.
Comment on attachment 8884647 [details]
Bug 1378227 - Reintroduce window test for Marionette:GetWindowRect;

https://reviewboard.mozilla.org/r/155502/#review161386

Oh, I see. In that case it's indeed the complete solution. Thanks.
Attachment #8884647 - Flags: review?(hskupin) → review+
Pushed by atolfsen@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/2c9d46ca33bd
Reintroduce window test for Marionette:GetWindowRect; r=whimboo
https://hg.mozilla.org/mozilla-central/rev/2c9d46ca33bd
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
No longer blocks: 1364389
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: