mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-23 01:39:55 +00:00
When navigating to about:srcdoc we try to populate the session history by calling populate_session_history_entry_document, if the resource is an about:srcdoc this method will rely on the document_resource in the SessionHistoryEntry to have a String in order for it call the right method to create navigation params. However when navigating to about:srcdoc directly, document_resource will have an Empty, this leads populate_session_history_entry_document to call the wrong method to create navigation params. This fixes the issue by populating document_resource with an empty string if it has an Empty and we're dealing with an about:srcdoc. Issue: #23216
106 KiB
106 KiB