Skip to content

Pass the initial URL as an argument to Browser::new, not as a opts property #15636

@paulrouget

Description

@paulrouget

This issue is part of an effort to improve Servo's embedding story. See https://github.com/paulrouget/servoshell/projects/2

Starting Servo from a third party application requires setting the initial URL as an option:

let mut opts = opts::default_opts();
opts.url = ServoUrl::parse(url).ok();
opts::set_defaults(opts);

I would expect to be able to do that instead:

servo::Browser::new(window, url);

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-embeddingC-assignedThere is someone working on resolving the issueC-has-open-prThere is a PR open that resolves the issueE-more-complexVariable effort required; may require a mentor. Recommended solution is clearly described in the iss

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions