summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Buckley-Houston <tom@tombh.co.uk>2019-06-19 14:47:51 +0300
committerThomas Buckley-Houston <tom@tombh.co.uk>2019-06-19 14:47:51 +0300
commit4ca05b92360ae1715752220353eb697e2d3738aa (patch)
tree9eb1e0edaf7dce1c03f4b7272b656003adfbe405
parent1d4723f3b09a99f2dd7580f23a336a33164a34db (diff)
Browsh CLI: fix for Marionette race conditionv1.6.3
-rw-r--r--interfacer/src/browsh/firefox.go3
-rw-r--r--interfacer/src/browsh/version.go2
2 files changed, 3 insertions, 2 deletions
diff --git a/interfacer/src/browsh/firefox.go b/interfacer/src/browsh/firefox.go
index 6108ba7..e9c8a7d 100644
--- a/interfacer/src/browsh/firefox.go
+++ b/interfacer/src/browsh/firefox.go
@@ -231,10 +231,11 @@ func installWebextension() {
Shutdown(err)
}
file, err := ioutil.TempFile(os.TempDir(), "browsh-webext-addon")
- defer os.Remove(file.Name())
ioutil.WriteFile(file.Name(), []byte(data), 0644)
args := map[string]interface{}{"path": file.Name()}
sendFirefoxCommand("Addon:Install", args)
+ time.Sleep(100 * time.Millisecond)
+ defer os.Remove(file.Name())
}
// Set a Firefox preference as you would in `about:config`
diff --git a/interfacer/src/browsh/version.go b/interfacer/src/browsh/version.go
index 0d87838..5aaaa2f 100644
--- a/interfacer/src/browsh/version.go
+++ b/interfacer/src/browsh/version.go
@@ -1,3 +1,3 @@
package browsh
-var browshVersion = "1.6.2"
+var browshVersion = "1.6.3"