marionette.restart() needs parameter for additional restart flags
Categories
(Testing :: Marionette Client and Harness, defect, P3)
Tracking
(firefox97 fixed)
Tracking | Status | |
---|---|---|
firefox97 | --- | fixed |
People
(Reporter: whimboo, Assigned: whimboo, Mentored)
References
Details
(Keywords: pi-marionette-client, Whiteboard: [lang=py])
User Story
Before starting to work on the bug please get comfortable with Marionette by going through the following document: https://firefox-source-docs.mozilla.org/testing/marionette/marionette/NewContributors.html
Attachments
(2 files, 3 obsolete files)
Comment 1•7 years ago
|
||
Assignee | ||
Comment 2•7 years ago
|
||
Updated•7 years ago
|
Assignee | ||
Comment 3•6 years ago
|
||
Comment 4•6 years ago
|
||
Assignee | ||
Comment 5•6 years ago
|
||
Comment 6•6 years ago
|
||
Assignee | ||
Comment 7•6 years ago
|
||
Comment 8•6 years ago
|
||
Hi! I am a new contributor and I would like to know if this bug is still to be fixed? Can I try working on it as my first bug?
Assignee | ||
Comment 9•6 years ago
|
||
Sushmita, you are welcome to work on this bug. See the user story in how to get started.
Comment 10•6 years ago
|
||
Hi, Is this bug being worked on? If not i'd like to take a crack on it.
Comment 11•6 years ago
|
||
It’s been a while since the last update from the person interested.
Please have a go (-:
Comment 12•6 years ago
|
||
Hi guys,
I'd like some pointers/comments on this. Just to be sure I am thinking in the right direction.
Looking at the code I have come up with the following idea.
First, adding the boolean to the method. And secondly, introducing a elif to catch the newly introduced parameter and start the application with a clean profile.
def restart(self, clean=False, eRestartNotSameProfile=False, in_app=False, callback=None):
...
self.cleanup()
reraise(exc, "Requested restart of the application was aborted", tb)
elif eRestartNotSameProfile:
self.delete_session()
self.instance.restart(clean=True)
self.raise_for_port(timeout=self.DEFAULT_STARTUP_TIMEOUT)
else:
self.delete_session()
self.instance.restart(clean=clean)
...
This however does not take into effect what would happen if both eRestartNotSameProfile and in_app are True.
Assignee | ||
Comment 13•6 years ago
|
||
So I wouldn't add each of the restart/shutdown flags as separate kwargs for both the restart()
and quit()
methods. Instead do it like what _request_in_app_shutdown()
has. That way we only have to implement it now, and won't have to change it later if other flags are wanted.
Only note that with the safe mode flag set, the JS code of Marionette (driver.js) has to call restartInSafeMode()
instead of quit()
.
Comment 14•6 years ago
|
||
Comment 15•6 years ago
|
||
Hi,
I just posted this patch, its is no where near complete. I just want to get feedback on the thought process that I am on.
Assignee | ||
Updated•6 years ago
|
Comment 16•6 years ago
|
||
Assignee | ||
Comment 17•6 years ago
|
||
Sebastiaan, you created a new review in Phabricator instead of re-using the former one. Not sure what you did locally but make sure that the link to the Phabricator revision in the commit message will be kept before pushing it out. Thanks.
Updated•6 years ago
|
Updated•6 years ago
|
Assignee | ||
Updated•5 years ago
|
Comment 18•4 years ago
|
||
As part of our groups H2 goal to learn how the process works for contributing to mozilla-central, I would like to help out with this bug. Also will help with my goal of improving my Python coding skill. I will work through the docs of getting my mozilla-central environment up and running and will let you know if I have any questions.
Assignee | ||
Comment 19•4 years ago
|
||
Hey David, I was out last week. Given that your comment is 6 days old, I wonder if you hit some blockers in getting the tests run.
Assignee | ||
Comment 20•4 years ago
|
||
No reply from assignee. Moving the bug back into the free to choose bucket list.
Comment 21•4 years ago
|
||
Hello, can I work on this?
Assignee | ||
Comment 22•4 years ago
|
||
Yes, feel free to pick it up, and let us know when you have questions. Therefore you can also join us on Matrix in the #interop channel.
Comment 23•4 years ago
|
||
Updated•4 years ago
|
Updated•4 years ago
|
Assignee | ||
Comment 24•4 years ago
|
||
Renan, I'm very sorry for the late reply and that your review request for the patch totally got under the wire! I will make sure to have a look at it early next week when I'm back at work.
Assignee | ||
Comment 25•4 years ago
|
||
Actually I gave an advice within the Phabricator review. So are you still interested to continue on this bug?
Assignee | ||
Updated•4 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 26•3 years ago
|
||
Quick update here:
- The
eRestartNotSameProfile
flag doesn't exist anymore, and as such isn't needed. - The
eForceQuit
flag is meanwhile handled by Marionette itself and is determined my evaluating the response when notifying thequit-application-requested
observer. So I don't think that we should add a force flag to the Marionette client code. - Safe Mode isn't handled by a flag but as separate option given that it restarts the browser via
Services.startup.restartInSafeMode()
- The
eSilently
flag will be added over on bug 1726465 because it needs further updates to the Marionette code. - If no flag gets passed in the code in driver.js will now have to automatically fallback to
eAttemptQuit
.
Assignee | ||
Comment 27•3 years ago
|
||
Assignee | ||
Comment 28•3 years ago
|
||
Depends on D134323
Updated•3 years ago
|
Updated•3 years ago
|
Comment 29•3 years ago
|
||
Comment 30•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/8179ad2048b2
https://hg.mozilla.org/mozilla-central/rev/d40a900e78d5
Updated•2 years ago
|
Assignee | ||
Comment 31•2 years ago
|
||
Moving bugs for Marionette client due to component changes.
Description
•