mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:14:58 +00:00
Ladybird: Allow creating new tabs with plain HTML
This will allow us to internally create a new tab with HTML, to be used by the View Source command.
This commit is contained in:
parent
9c4ce1b80b
commit
a718a1f3a6
10 changed files with 83 additions and 29 deletions
|
@ -566,6 +566,11 @@ void Tab::navigate(QString url_qstring)
|
|||
view().load(url_string);
|
||||
}
|
||||
|
||||
void Tab::load_html(StringView html, URL const& url)
|
||||
{
|
||||
view().load_html(html, url);
|
||||
}
|
||||
|
||||
void Tab::back()
|
||||
{
|
||||
if (!m_history.can_go_back())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue