Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Bug 836367 - Remove unlock() from mozb2g, r=mdas

  • Loading branch information...
commit 06d1926e81aaba1a601d05d3b95d9194e96fdac2 1 parent 32d9ed2
Jonathan Griffin jonallengriffin authored
Showing with 0 additions and 31 deletions.
  1. +0 −31 mozb2g/mozb2g/b2gmixin.py
31 mozb2g/mozb2g/b2gmixin.py
View
@@ -166,37 +166,6 @@ def restoreProfile(self):
shutil.rmtree(self.profileDir)
self.profileDir = None
- def unlock(self):
- """
- Unlocks the device, ensuring it will never go back to the lockscreen
- """
- if not self.marionette or not self.marionette.session:
- self.setupMarionette()
-
- success = self.marionette.execute_async_script("""
-let setlock = window.wrappedJSObject.SettingsListener.getSettingsLock();
-let obj = {'screen.timeout': 0};
-setlock.set(obj);
-waitFor(
-function() {
-window.wrappedJSObject.LockScreen.unlock();
-waitFor(
-function() {
-finish(window.wrappedJSObject.LockScreen.locked);
-},
-function() {
-return !window.wrappedJSObject.LockScreen.locked;
-}
-);
-},
-function() {
-return !!window.wrappedJSObject.LockScreen;
-}
-);
-""")
- if not success:
- raise DMError("Unable to unlock device")
-
def getAppInfo(self):
"""
Returns the appinfo, with an additional "date" key.
Please sign in to comment.
Something went wrong with that request. Please try again.