I had the same issue. It turned on the Firefox has two settings files: prefs.js and user.js. At the start it copies everything from user.js into prefs.js. So set marionette port in both files manually and it'll work.