Skip to content

Commit

Permalink
chore: add FirefoxUserPrefs (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt authored Mar 12, 2022
1 parent 21654cc commit fbe8ece
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions generated-structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,8 @@ type BrowserTypeLaunchOptions struct {
// Note that Playwright only works with the bundled Chromium, Firefox or WebKit, use
// at your own risk.
ExecutablePath *string `json:"executablePath"`
// Firefox user preferences. Learn more about the Firefox user preferences at [`about:config`](https://support.mozilla.org/en-US/kb/about-config-editor-firefox).
FirefoxUserPrefs map[string]interface{} `json:"firefoxUserPrefs"`
// Close the browser process on SIGHUP. Defaults to `true`.
HandleSIGHUP *bool `json:"handleSIGHUP"`
// Close the browser process on Ctrl-C. Defaults to `true`.
Expand Down
11 changes: 10 additions & 1 deletion patches/main.patch
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ index 61dd9e3ad4e9b83a8132bc61c026d2c18b35d979..fc440fe38af9dfbd4f6d3c7ef6518906
* langs: csharp, java
- `body` <[string]>
diff --git a/docs/src/api/params.md b/docs/src/api/params.md
index f214cf943ae2c95c9377a093f0132e237b9bea2e..393b12018edf730bc98bb0aa233c595f759fa7d0 100644
index f214cf943ae2c95c9377a093f0132e237b9bea2e..a9b810fba267f6c99d70e24f8b08ecac07ed6396 100644
--- a/docs/src/api/params.md
+++ b/docs/src/api/params.md
@@ -146,8 +146,8 @@ Defaults to `'visible'`. Can be either:
Expand Down Expand Up @@ -259,6 +259,15 @@ index f214cf943ae2c95c9377a093f0132e237b9bea2e..393b12018edf730bc98bb0aa233c595f
- `recordVideo` <[Object]>
- `dir` <[path]> Path to the directory to put videos into.
- `size` <[Object]> Optional dimensions of the recorded videos. If not specified the size will be equal to `viewport`
@@ -831,7 +831,7 @@ Firefox user preferences. Learn more about the Firefox user preferences at
[`about:config`](https://support.mozilla.org/en-US/kb/about-config-editor-firefox).

## csharp-java-browser-option-firefoxuserprefs
-* langs: csharp, java
+* langs: csharp, java, go
- `firefoxUserPrefs` <[Object]<[string], [any]>>

Firefox user preferences. Learn more about the Firefox user preferences at
@@ -884,12 +884,14 @@ Slows down Playwright operations by the specified amount of milliseconds. Useful
- %%-browser-option-tracesdir-%%

Expand Down

0 comments on commit fbe8ece

Please sign in to comment.