Closed
Bug 1411197
Opened 7 years ago
Closed 7 years ago
in_app quit/restart without a callable callback accidentally performs a shutdown
Categories
(Remote Protocol :: Marionette, enhancement)
Tracking
(firefox58 fixed)
RESOLVED
FIXED
mozilla58
Tracking | Status | |
---|---|---|
firefox58 | --- | fixed |
People
(Reporter: whimboo, Assigned: whimboo)
References
Details
Attachments
(1 file)
While inspecting the quit/restart code lately I noticed that in case a callback is specified but not callable, we do not raise an exception, but silently restart the application via the else case: https://dxr.mozilla.org/mozilla-central/rev/ce1a86d3b4db161c95d1147676bbed839d7a4732/testing/marionette/client/marionette_driver/marionette.py#1091-1095 The else case should really only be executed if callback is None. When fixing this wrong behavior it would be good to get the tests in test_quit_restart.py updated, or new tests added for missing scenarios.
Assignee | ||
Comment 1•7 years ago
|
||
Hm, maybe this is related to the issue I'm currently facing with the callback and no shutdown tests over on bug 1389103. I will take it.
Assignee: nobody → hskupin
Mentor: hskupin
Status: NEW → ASSIGNED
Whiteboard: [lang=py]
Comment hidden (mozreview-request) |
Comment 3•7 years ago
|
||
mozreview-review |
Comment on attachment 8922807 [details] Bug 1411197 - Quit/Restart without a callable callback shouldn't perform a shutdown. https://reviewboard.mozilla.org/r/193958/#review199166
Attachment #8922807 -
Flags: review?(mjzffr) → review+
Pushed by hskupin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/49053213ce32 Quit/Restart without a callable callback shouldn't perform a shutdown. r=maja_zf
Comment 5•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/49053213ce32
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox58:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
Updated•1 year ago
|
Product: Testing → Remote Protocol
You need to log in
before you can comment on or make changes to this bug.
Description
•