1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:47:45 +00:00

LibWeb: Add API for setting a document's referrer

This commit is contained in:
Andreas Kling 2022-08-05 10:55:01 +02:00
parent 6e71e400e6
commit 73f77969a6
2 changed files with 10 additions and 2 deletions

View file

@ -1498,8 +1498,12 @@ bool Document::has_a_style_sheet_that_is_blocking_scripts() const
String Document::referrer() const
{
// FIXME: Return the document's actual referrer.
return "";
return m_referrer;
}
void Document::set_referrer(String referrer)
{
m_referrer = referrer;
}
// https://html.spec.whatwg.org/multipage/browsers.html#fully-active