Skip to content

HeadlessMode is no longer visible since version 0.9.0 - breaking public API #317

@GilShoshan94

Description

@GilShoshan94

Hi,

HeadlessMode used to be exposed/accessible in version 8.0.0 and since version 9.0.0 it is not.
This seems clearly that it got forgotten to be re-exported in https://github.com/mattsse/chromiumoxide/blob/main/src/browser/mod.rs#L23
From what I can see, the code was restructured (single file browser.rs for the browser module, refactored into a directory with a mod.rs).

In the public API, on BrowserConfigBuilder, there is still the follwowing method:
pub fn headless_mode(self, mode: HeadlessMode) -> Self
The argument requires a HeadlessMode that is not exported anymore.

The fix would simply to re-exported in the mod.rs (line 23)

Thank you in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions