mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 23:09:08 +00:00
LibWeb: Add type for FrameLoader::load
This should enable to destinguish between IFrame, Reload and Navigation motivated loads in order to call the appropriate hooks. This change is motivated as loading the IFrame test page causes the IFrame url to be added to the history and shows up as the current browser location bar.
This commit is contained in:
parent
6105f063cb
commit
a5b8cc2d0b
Notes:
sideshowbarker
2024-07-19 05:01:01 +09:00
Author: https://github.com/kevmeyer
Commit: a5b8cc2d0b
Pull-request: https://github.com/SerenityOS/serenity/pull/2733
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/linusg
7 changed files with 19 additions and 11 deletions
|
@ -79,7 +79,7 @@ void HTMLIFrameElement::load_src(const String& value)
|
|||
return;
|
||||
}
|
||||
|
||||
m_hosted_frame->loader().load(url);
|
||||
m_hosted_frame->loader().load(url, FrameLoader::Type::IFrame);
|
||||
}
|
||||
|
||||
const Document* HTMLIFrameElement::hosted_document() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue