Skip to content

Commit

Permalink
miscellaneous enhancements following dda6ff
Browse files Browse the repository at this point in the history
  • Loading branch information
starrify committed Feb 19, 2024
1 parent dda6fff commit a3e5aac
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/browser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -559,11 +559,12 @@ async fn ws_url_from_output(
}
}

#[derive(Debug, Clone)]
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq)]
enum HeadlessMode {
/// The "headful" mode.
False,
/// The old headless mode (default).
/// The old headless mode.
#[default]
True,
/// The new headless mode. See also: https://developer.chrome.com/docs/chromium/new-headless
New,
Expand Down Expand Up @@ -705,6 +706,11 @@ impl BrowserConfigBuilder {
self
}

pub fn headless_mode(mut self, HeadlessMode: mode) -> Self {

Check failure on line 709 in src/browser.rs

View workflow job for this annotation

GitHub Actions / Check

cannot find type `mode` in this scope

Check failure on line 709 in src/browser.rs

View workflow job for this annotation

GitHub Actions / msrv

cannot find type `mode` in this scope

Check failure on line 709 in src/browser.rs

View workflow job for this annotation

GitHub Actions / Test Suite (ubuntu-latest)

cannot find type `mode` in this scope

Check failure on line 709 in src/browser.rs

View workflow job for this annotation

GitHub Actions / Clippy

cannot find type `mode` in this scope
self.headless = mode;

Check failure on line 710 in src/browser.rs

View workflow job for this annotation

GitHub Actions / Check

cannot find value `mode` in this scope

Check failure on line 710 in src/browser.rs

View workflow job for this annotation

GitHub Actions / msrv

cannot find value `mode` in this scope

Check failure on line 710 in src/browser.rs

View workflow job for this annotation

GitHub Actions / Test Suite (ubuntu-latest)

cannot find value `mode` in this scope

Check failure on line 710 in src/browser.rs

View workflow job for this annotation

GitHub Actions / Clippy

cannot find value `mode` in this scope
self
}

pub fn incognito(mut self) -> Self {
self.incognito = true;
self
Expand Down

0 comments on commit a3e5aac

Please sign in to comment.