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:
Kevin Meyer 2020-07-07 17:25:33 +02:00 committed by Andreas Kling
parent 6105f063cb
commit a5b8cc2d0b
Notes: sideshowbarker 2024-07-19 05:01:01 +09:00
7 changed files with 19 additions and 11 deletions

View file

@ -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