Skip to content

Commit

Permalink
Browsh CLI: fix for Marionette race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
tombh committed Jun 19, 2019
1 parent 1d4723f commit 4ca05b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion interfacer/src/browsh/firefox.go
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
2 changes: 1 addition & 1 deletion interfacer/src/browsh/version.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package browsh

var browshVersion = "1.6.2"
var browshVersion = "1.6.3"

0 comments on commit 4ca05b9

Please sign in to comment.