зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1293991 - Add remaining process/crash checks for methods of the Marionette class. r=automatedtester
MozReview-Commit-ID: 8FhjkRBxZXR --HG-- extra : rebase_source : 261fc5693b35c28f25fc7baa204fd3db008540d4
This commit is contained in:
Родитель
3e93422569
Коммит
4ea0361cfa
|
@ -989,6 +989,7 @@ class Marionette(object):
|
|||
finally:
|
||||
self.set_prefs(original_prefs)
|
||||
|
||||
@do_process_check
|
||||
def enforce_gecko_prefs(self, prefs):
|
||||
"""
|
||||
Checks if the running instance has the given prefs. If not, it will kill the
|
||||
|
@ -1056,6 +1057,7 @@ class Marionette(object):
|
|||
self.cleanup()
|
||||
raise exc, 'Requested restart of the application was aborted', tb
|
||||
|
||||
@do_process_check
|
||||
def restart(self, clean=False, in_app=False):
|
||||
"""
|
||||
This will terminate the currently running instance, and spawn a new instance
|
||||
|
|
Загрузка…
Ссылка в новой задаче