mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-13 03:29:49 +00:00
Userland+Ladybird: Always specify url to be about:srcdoc in load_html()
After moving to navigables, we started reusing the code that populates session history entries with the srcdoc attribute value from iframes in `Page::load_html()` for loading HTML. This change addresses a crash in `determine_the_origin` which occurred because this method expected the URL to be `about:srcdoc` if we also provided HTML content (previously, it was the URL passed along with the HTML content into `load_html()`).
This commit is contained in:
parent
8e832a174e
commit
3c675e3f25
Notes:
sideshowbarker
2024-07-16 17:12:03 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: 3c675e3f25
Pull-request: https://github.com/SerenityOS/serenity/pull/21129
Reviewed-by: https://github.com/awesomekling
18 changed files with 31 additions and 32 deletions
|
@ -152,7 +152,7 @@ void PresenterWidget::set_file(StringView file_name)
|
|||
m_current_presentation = presentation.release_value();
|
||||
window()->set_title(DeprecatedString::formatted(title_template, m_current_presentation->title(), m_current_presentation->author()));
|
||||
set_min_size(m_current_presentation->normative_size());
|
||||
m_web_view->load_html(MUST(m_current_presentation->render()), "presenter://slide.html"sv);
|
||||
m_web_view->load_html(MUST(m_current_presentation->render()));
|
||||
update_slides_actions();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue