diff --git a/projects/firefox/build b/projects/firefox/build
index b42b3012753d57d6c3db27fd20ceef846630b48a..22c5b5d7603c6de0c51fd99280035cb43cb03392 100644
--- a/projects/firefox/build
+++ b/projects/firefox/build
@@ -151,6 +151,9 @@ rm -f js/src/configure
 [% END %]
 
 [% IF c("var/linux") %]
+  [% IF c("var/linux-x86_64") %]
+    cp obj-*/testing/geckodriver/x86_64-unknown-linux-gnu/release/geckodriver $distdir
+  [% END %]
   cp -a obj-*/dist/firefox/* $distdir/Browser/
   # Remove firefox-bin (we don't use it, see ticket #10126)
   rm -f $distdir/Browser/firefox-bin
@@ -213,6 +216,8 @@ cp -p obj-*/dist/host/bin/mbsdiff $MARTOOLS/
 cd $distdir
 
 [% IF c("var/linux-x86_64") %]
+  # No need for an unstripped geckodriver
+  strip geckodriver
   mkdir -p $distdir/Debug/Browser/gtk2
   # Strip and generate debuginfo for the firefox binary that we keep, all *.so
   # files, the plugin-container, and the updater (see ticket #10126)
@@ -258,6 +263,10 @@ END;
         tar_src => [ 'Debug' ],
         tar_args => '-cJf ' _ dest_dir _ '/' _ c('filename') _ '/tor-browser-debug.tar.xz',
     }) %]
+[% c('tar', {
+        tar_src => [ 'geckodriver' ],
+        tar_args => '-cJf ' _ dest_dir _ '/' _ c('filename') _ '/geckodriver-linux64.tar.xz',
+    }) %]
 [% END %]
 
 [% c('zip', {
diff --git a/projects/firefox/mozconfig-linux-x86_64 b/projects/firefox/mozconfig-linux-x86_64
index 19d28853bd576edfcd7cdca95a9989763adcdd59..59517cd1cea08a3bececf7fdd4b45daaa224c886 100755
--- a/projects/firefox/mozconfig-linux-x86_64
+++ b/projects/firefox/mozconfig-linux-x86_64
@@ -33,6 +33,8 @@ ac_add_options --disable-webrtc
 # Let's make sure no preference is enabling either Adobe's or Google's CDM.
 ac_add_options --disable-eme
 ac_add_options --enable-proxy-bypass-protection
+# We want to bundle an own geckodriver, so we can use it for QA and other work
+ac_add_options --enable-geckodriver
 
 # Disable telemetry
-ac_add_options MOZ_TELEMETRY_REPORTING=
\ No newline at end of file
+ac_add_options MOZ_TELEMETRY_REPORTING=
diff --git a/projects/tor-browser/build b/projects/tor-browser/build
index 2c72e03fba1d8c7194ea10d5e35cb7db0311d08e..4d44f12da452162d5df5a4b2d08823b9b18233ea 100644
--- a/projects/tor-browser/build
+++ b/projects/tor-browser/build
@@ -292,6 +292,7 @@ SCRIPT_EOF
 cp $rootdir/[% c('input_files_by_name/firefox') %]/mar-tools-*.zip "$OUTDIR"/
 [% IF c("var/linux-x86_64") -%]
   cp $rootdir/[% c('input_files_by_name/firefox') %]/tor-browser-debug.tar.xz "$OUTDIR"/tor-browser-[% c("var/mar_osname") %]-debug.tar.xz
+  cp $rootdir/[% c('input_files_by_name/firefox') %]/geckodriver-linux64.tar.xz "$OUTDIR"/
 [% END -%]
 [% IF c("var/linux") -%]
   cp $rootdir/[% c('input_files_by_name/tor') %]/tor-debug.tar.xz "$OUTDIR"/tor-[% c("var/mar_osname") %]-debug.tar.xz