Bug 1323003 - Javascript arguments are not iterable in Firefox 45ESR. r=maja_zf a=test-only
authorHenrik Skupin <mail@hskupin.info>
Mon, 12 Dec 2016 16:35:53 +0100
changeset 352916 450277eb1728b1ac8843f684d0a1474462d91c6d
parent 352915 0cfa89b9d33518797597a8dafd33122ae6745514
child 352917 3980264c34c864390c026c964d6c212a5ddc915c
push id6795
push userjlund@mozilla.com
push dateMon, 23 Jan 2017 14:19:46 +0000
treeherdermozilla-esr52@76101b503191 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmaja_zf, test-only
bugs1323003
milestone52.0a2
Bug 1323003 - Javascript arguments are not iterable in Firefox 45ESR. r=maja_zf a=test-only MozReview-Commit-ID: DemHekUvQTI
testing/marionette/puppeteer/firefox/firefox_puppeteer/api/prefs.py
--- a/testing/marionette/puppeteer/firefox/firefox_puppeteer/api/prefs.py
+++ b/testing/marionette/puppeteer/firefox/firefox_puppeteer/api/prefs.py
@@ -121,17 +121,19 @@ class Preferences(BaseLib):
         with self.marionette.using_context('chrome'):
             # Backup original value only once
             if pref_name not in self.archive:
                 self.archive[pref_name] = self.get_pref(pref_name)
 
             retval = self.marionette.execute_script("""
               Components.utils.import("resource://gre/modules/Services.jsm");
 
-              let [pref_name, value, default_branch] = arguments;
+              let pref_name = arguments[0];
+              let value = arguments[1];
+              let default_branch = arguments[2];
 
               let prefBranch;
               if (default_branch) {
                 prefBranch = Services.prefs.getDefaultBranch("");
               }
               else {
                 prefBranch = Services.prefs;
               }