Skip to content

Please add method for load html content #173

@NikitaPnch

Description

@NikitaPnch

Hi, thank you for webview linux package, i want to display raw html content inside linux webview

I try to fork package and override loadUrl method something like this

void WebviewHandler::loadUrl(int browserId, std::string url)
{
    std::stringstream ss;
    ss << "<html><body bgcolor=\"white\"><h2>Failed to load URL</h2></body></html>";
    auto it = browser_map_.find(browserId);
    if (it != browser_map_.end()) {
        it->second.browser->GetMainFrame()->LoadURL(GetDataURI(url, "text/html"));
    }
}

but i have some problem with display huge html causing crash my app or html just dont load

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