Extract session specific code from driver.js into a dedicated session module
Categories
(Remote Protocol :: Marionette, task, P2)
Tracking
(firefox88 fixed)
Tracking | Status | |
---|---|---|
firefox88 | --- | fixed |
People
(Reporter: whimboo, Assigned: whimboo)
References
(Blocks 3 open bugs, )
Details
(Whiteboard: [bidi-m1-mvp])
Attachments
(3 files)
The current implementation of Marionette embeds most of the session handling code within the GeckoDriver
class of driver.js
. To be able to share that specific code with the WebDriver BiDi implementation (/remote), all this code needs to be extracted into its own session module like session.js.
Julian, could you maybe have a look at driver.js and figure out how much work this would be? I assume we might have to split this bug into individual smaller pieces.
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 1•3 years ago
|
||
I'm going to take that now given that it's partly blocking me.
Assignee | ||
Comment 2•3 years ago
|
||
This patch creates a new module for the WebDriver session
specific implementation. It no longer requires session data
like capabilities to be directly bound to the GeckoDriver class.
Assignee | ||
Comment 3•3 years ago
|
||
The work here was actually simple, and only took a bit of time. It was mostly a refactoring of code. As such I would drop the points from 13 to just 2.
Assignee | ||
Comment 4•3 years ago
|
||
Depends on D107552
Assignee | ||
Comment 5•3 years ago
|
||
If there is no active WebDriver session the code
related to deleting a session, and resetting other
state should not be run again.
This could actually happen when the
"Marionette:Quit" command is called, which itself
destroys the session, and the follwing socket
connection drop tries to run it again.
Depends on D108168
Pushed by hskupin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8c8e4a03fd2f [marionette] Add session module for WebDriver session. r=marionette-reviewers,jdescottes,jgraham https://hg.mozilla.org/integration/autoland/rev/5f9c65613b0d [marionette] Move current browsing context members to WebDriver session. r=marionette-reviewers,jdescottes,jgraham https://hg.mozilla.org/integration/autoland/rev/1f9f47742739 [marionette] Don't try to destroy a non-existent session. r=marionette-reviewers,jdescottes,jgraham
Comment 7•3 years ago
|
||
Backed out 3 changesets (Bug 1691402) for causing failures in test_session.js CLOSED TREE
Failure log: https://treeherder.mozilla.org/logviewer?job_id=333446143&repo=autoland&lineNumber=1961
https://treeherder.mozilla.org/logviewer?job_id=333444413&repo=autoland&lineNumber=2455
Backout: https://hg.mozilla.org/integration/autoland/rev/e1e254e2d16eea5db8d950e49acd5caa414b9d00
Assignee | ||
Comment 8•3 years ago
|
||
(In reply to Noemi Erli[:noemi_erli] from comment #7)
Backed out 3 changesets (Bug 1691402) for causing failures in test_session.js CLOSED TREE
Failure log: https://treeherder.mozilla.org/logviewer?job_id=333446143&repo=autoland&lineNumber=1961
https://treeherder.mozilla.org/logviewer?job_id=333444413&repo=autoland&lineNumber=2455
No, this is for bug 1697159 but not this one. I'm going to land the set of patches on this bug again, but the appinfo one later once issues are fixed.
Pushed by hskupin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8bf7dc5dcf31 [marionette] Add session module for WebDriver session. r=marionette-reviewers,jdescottes,jgraham https://hg.mozilla.org/integration/autoland/rev/b02976d0757b [marionette] Move current browsing context members to WebDriver session. r=marionette-reviewers,jdescottes,jgraham https://hg.mozilla.org/integration/autoland/rev/46da1dd655f9 [marionette] Don't try to destroy a non-existent session. r=marionette-reviewers,jdescottes,jgraham
Comment 10•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/8bf7dc5dcf31
https://hg.mozilla.org/mozilla-central/rev/b02976d0757b
https://hg.mozilla.org/mozilla-central/rev/46da1dd655f9
Updated•1 year ago
|
Description
•