mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:27:35 +00:00
LibWeb: Add API for setting a document's referrer
This commit is contained in:
parent
6e71e400e6
commit
73f77969a6
2 changed files with 10 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue