diff --git a/generated-structs.go b/generated-structs.go index ae7c2d52..df5b90f0 100644 --- a/generated-structs.go +++ b/generated-structs.go @@ -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`. diff --git a/patches/main.patch b/patches/main.patch index e26135cd..0e8b136b 100644 --- a/patches/main.patch +++ b/patches/main.patch @@ -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: @@ -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-%%