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:
Henrik Skupin 2016-08-10 14:18:37 +02:00
Родитель 3e93422569
Коммит 4ea0361cfa
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -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